I need to hide all the contributions of a particular user. (e.g. "Adumbrativus") from this page.
So this entry will be hidden.
25 December 2022
Javaris Crittenton 10:34 −23 Adumbrativus talk contribs (Remove "convicted murderer"; the charge was dropped)
I am already using a similar script with Tampermonkey.
I am trying to find what changes needs to be done in this script so that it will hide the user on Wikipedia recent changes page.
Update:
I am using this script on a non-english wikipedia and I am able to hide the username. But I need to hide the entire line and not just username.
// ==UserScript==
// @name Hide usernames from the "Recent changes" page
// @description Hide usernames on non english wikis
// @version 0.1
// @author double-beep
// @match https://mr.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:%E0%A4%85%E0%A4%B2%E0%A5%80%E0%A4%95%E0%A4%A1%E0%A5%80%E0%A4%B2_%E0%A4%AC%E0%A4%A6%E0%A4%B2*
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/waitForKeyElements.js
// @require https://code.jquery.com/jquery-3.6.3.min.js
//
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikipedia.org
// @grant none
// ==/UserScript==
/* globals waitForKeyElements */
(function() {
const blacklisted = ['अभय नातू', 'InternetArchiveBot'];
waitForKeyElements('.mw-changeslist-line-inner-userLink', ([element]) => {
const userLink = element.querySelector('.mw-userlink');
const username = userLink?.textContent.trim();
if (!blacklisted.includes(username)) return; // not blacklisted
element.style.display = 'none';
}, false);
})();
from How can I hide a user from the Wikipedia "Recent changes" page?
No comments:
Post a Comment