Help talk:Hide Pages in Watchlist

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconWikipedia Help NA‑class Mid‑importance
WikiProject iconThis page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
NAThis page does not require a rating on the project's quality scale.
MidThis page has been rated as Mid-importance on the project's importance scale.

How to indicate to the user that a page is hidden from view?[edit]

I think the script should indicate that pages are hidden from the watchlist when that is the case. What do you think is the best way to do that? I don't want to make it too attention-grabbing; just like, a line or something to show that a page is hidden. Or perhaps a notice at the top of the watchlist listing all the pages that the user has chosen to ignore? The problem is that eventually people will forget that they are ignoring a page and then later wonder why that page isn't appearing on their watchlist. Gary King (talk) 22:09, 21 March 2009 (UTC)[reply]

I like the idea of the watchlist notice. I don't know if this is possible, but you could insert a statement after "You have ## pages on your watchlist (excluding talk pages)." Dabomb87 (talk) 22:14, 21 March 2009 (UTC)[reply]

Browser support[edit]

This doesn't seem to work in IE 7. With no other scripts running and default preferences, I get the error

Line: 30
Char: 36
Error: Expected identifier, string or number
Code: 0
URL: <whatever Wikipedia URL I'm looking at>
Algebraist 22:15, 21 March 2009 (UTC)[reply]

I tried to Hide User:Closedmouth and Wikipedia talk:Protection Policy, but it didn't work on Mozilla Firefox. I tried clearing the cache, but it didn't hide the pages. Keyboard mouse (talk) 04:57, 25 February 2010 (UTC)[reply]

Are you using Enhanced changes, where pages in your watchlist have an arrow next to them to expand edits made to those pages? Gary King (talk) 05:25, 25 February 2010 (UTC)[reply]

How come does this javascript not affect the watchlistnotifier? -- Mentifisto 21:13, 6 May 2009 (UTC)[reply]

It's not really a surprise that this script doesn't work with that one. At the moment, there are no plans to make them compatible. Gary King (talk) 02:48, 7 May 2009 (UTC)[reply]

basic configuration- what's wrong?[edit]

WatchlistConfig = { ignorePages: [
//	'Talk:Example',
//	'User:Example',
//	'Wikipedia talk:Example',
  'Wikipedia talk:Requests for adminship‎',
], };
importScript('User:Gary King/hide pages in watchlist.js');

Why doesn't the above work? Yes, I've refreshed :-) tedder (talk) 01:42, 7 May 2009 (UTC)[reply]

The script only works when Enhanced Changes is disabled (it is disabled by default) and it has only been tested in Firefox, although it should work in IE. Gary King (talk) 02:49, 7 May 2009 (UTC)[reply]
This is firefox, and I don't even know how to turn on enhanced changes. Is there a way I can debug it? Does Twinkle interfere with it? tedder (talk) 02:54, 7 May 2009 (UTC)[reply]
No, it works with Twinkle and Friendly. Gary King (talk) 03:44, 7 May 2009 (UTC)[reply]

Same thing is happening to me, Firefox 3.0.10, with enhanced changes disabled. I have disabled Greasemonkey and none of my other extensions could interfere. ··gracefool 12:47, 11 May 2009 (UTC)[reply]

This is probably irrelevant, but in IE6 it was necessary to omit the comma after the ']' to make it work. Just a tiny chance I suppose that it might be the same bug in FF 3.0.10.--Kotniski (talk) 13:13, 11 May 2009 (UTC)[reply]
My best bet is for both User:Tedder and User:Gracefool to remove the final comma; so instead of 'Wikipedia talk:Requests for adminship‎',, it would be 'Wikipedia talk:Requests for adminship‎', and instead of 'Wikipedia:AutoWikiBrowser/Typos',, it would be 'Wikipedia:AutoWikiBrowser/Typos'. That worked for me. Gary King (talk) 18:33, 11 May 2009 (UTC)[reply]

(deindenting) I removed the final comma, and even the other redundant comma. So here's my current setup:

WatchlistConfig = { ignorePages: [
//	'Talk:Example',
//	'User:Example',
//	'Wikipedia talk:Example',
  'Wikipedia talk:Requests for adminship‎'
]};
importScript('User:Gary King/hide pages in watchlist.js');

It still doesn't work for me. tedder (talk) 16:23, 15 May 2009 (UTC)[reply]

This should fix it for you. I played around with the code, and for some reason, discovered that when I deleted the word "adminship" then typed it out by hand again, it worked. In the diff I linked to, both edits look the same, but for some reason MediaWiki considers them to be different words. That's most likely what was causing the problem, because after I typed out the word by hand, the script worked again. Gary King (talk) 16:33, 15 May 2009 (UTC)[reply]

New MediaWiki function[edit]

A few weeks ago, I committed a change to MediaWiki that would give each entry on your watchlist a unique CSS class. Now that the site's been updated, pages can be edited by editing your monobook.css file, as follows.

Wikipedia talk:Hide Pages in Watchlist is watchlisted, but you don't want to show Wikipedia:Hide Pages in Watchlist:

watchlist-4-Hide_Pages_in_Watchlist { display:none; }

Now we don't have to use JS hacks anymore. What do you think? (X! · talk)  · @501  ·  11:01, 15 June 2009 (UTC)[reply]

Sounds great, thanks!!--Kotniski (talk) 11:36, 15 June 2009 (UTC)[reply]
How would it know the namespace? Dabomb87 (talk) 14:26, 15 June 2009 (UTC)[reply]
The number represents the namespace (0 is article space, 1 is article talk, 2 is User, 3 is user talk, 4 is Wikipedia, and 5 is Wikipedia talk). The rest can be found on Wikipedia:Namespace#Programming. --auburnpilot talk 14:46, 15 June 2009 (UTC)[reply]
It doesn't seem to be working for me. I edited User:Dank/monobook.css based on the above example, applying it to WT:RFA and watchlisted the page, but WP:RFA is still showing up in my watchlist. - Dank (push to talk) 14:48, 15 June 2009 (UTC)[reply]
 Works for me Dabomb87 (talk) 15:04, 15 June 2009 (UTC)[reply]
Well, I believe I copied the above code right, substituting Requests_for_adminship, and then purged; check out the link and see. Why is WP:RFA still showing up in my watchlist? Should I blank my monobook.js file for testing? - Dank (push to talk) 15:19, 15 June 2009 (UTC)[reply]
Did you mean bypass? Purging and bypassing your cache are different actions. Dabomb87 (talk) 15:23, 15 June 2009 (UTC)[reply]
I mean ctrl-shift-R or ctrl-F5 in Firefox. - Dank (push to talk) 15:33, 15 June 2009 (UTC)[reply]

(outdent) Heh, scratch that. It's not working for me either. Dabomb87 (talk) 16:16, 15 June 2009 (UTC)[reply]

Okay, I'll comment it out until it gets fixed. - Dank (push to talk) 17:33, 15 June 2009 (UTC)[reply]
OOps, it's display:none; not display.none; (X! · talk)  · @796  ·  18:06, 15 June 2009 (UTC)[reply]
Thanks. watchlist-4-etc. is now working to hide WP:RFA from my watchlist, but what I was really hoping for was showing WP:RFA and hiding WT:RFA, and watchlist-5-etc. doesn't work for me doing that. It's not urgent; I'll come back in a couple of weeks to see how it's coming. - Dank (push to talk) 19:15, 15 June 2009 (UTC)[reply]

CSS version?[edit]

Is anyone using the CSS version that replaces this script? My first shot didn't get it working, it'd be nice to see some examples and full CSS files. tedder (talk) 02:17, 15 January 2010 (UTC)[reply]

..and here's an example of what I'm trying to use:
.watchlist-0-Requests_for_page_protection { display: none; }
Thanks, tedder (talk) 02:22, 15 January 2010 (UTC)[reply]
This worked for me. You have to bypass your browser's cache to make it work. Also, it doesn't work with Enhanced changes enabled. Gary King (talk) 04:21, 15 January 2010 (UTC)[reply]
Got it. I wasn't reloading the cache on the css page, just on the watchlist page. FYI for posterity, my css: User:Tedder/monobook.css. tedder (talk) 04:49, 15 January 2010 (UTC)[reply]

Hiding More Than 3 Pages in the Watchlist[edit]

Is there a way to make more than 3 CSS codes be active at once (to hide more than 3 pages in your watchlist at once)? Keyboard mouse (talk) 19:49, 17 April 2010 (UTC)[reply]

Just keep adding CSS lines. There is no limit. Check your syntax, as you probably added an entry incorrectly. Gary King (talk) 23:08, 17 April 2010 (UTC)[reply]

.css and .js pages[edit]

In your preferences, under the "Appearance" tab there are many skins. Is the correct page monobook.css, regardless of what skin you have, or is it the .css page for that specific skin? Keyboard mouse (talk) 00:14, 24 April 2010 (UTC)[reply]

monobook.css is only for the Monobook skin. There are links to the correct .css page in the Appearance tab. Gary King (talk) 00:24, 24 April 2010 (UTC)[reply]
This page should go to the correct link to your skin's .css page. Add your code there. mc10 (t/c) 23:51, 11 December 2010 (UTC)[reply]

Hiding pages with / in them[edit]

I have Wikipedia:Manual of Style/Linking on my list, but it still shows up in my watchlist. I assume this is because of the / in the title, as this particular page shows up a different colour on my .css page. Is there a way around this? Lachlanusername (talk) 08:38, 20 September 2011 (UTC)[reply]

Similar to the other items in your CSS page, you simply replace the / with an underscore _. So it would be .watchlist-5-Manual_of_Style_Linking . Gary King (talk · scripts) 18:54, 20 September 2011 (UTC)[reply]
It's gone the same colour as the others now, but still shows up in my watchlist. :S Lachlanusername (talk) 04:01, 21 September 2011 (UTC)[reply]
Because you're using a lowercase "l". It should be "Linking". Gary King (talk · scripts) 05:13, 23 September 2011 (UTC)[reply]

Make hide filter earlier[edit]

Currently, if you click the "Hide bots" link, it simply filters the output of the search after it has queried the last edit of each page in the watchlist and sorted it. What would be more useful (I believe) is to filter the bot edits as part of the query so that the last non-bot-edit will show up in the results. For example, page XYZ's edit history is:

  • 11:23 by MotherOfAllBots
  • 10:12 by AHumanUser

If I view my watchlist, the 11:23 edit appears. If I click the "Hide bots" link, page XYZ disappears from the watchlist completely. It would be more useful if it, instead, displayed the 10:12 edit. As it stands now, I can't use the "hide bots" function, and have to click on the history for each page in the watchlist, even if shown as a bot edit, to make sure there wasn't a human edit before it that I haven't seen.

BTW, why doesn't the history page show the "bot" flag? —[AlanM1 (talk)]— 01:10, 21 August 2012 (UTC)[reply]

skin.css and vector.css[edit]

The instructions state that you should "go to your skin.css page", but when I click that link I am actually taken to my vector.css page. Was the page renamed? If so, maybe the references to skin.css should be replaced by references to vector.css. Thanks, --Viennese Waltz 12:41, 11 July 2014 (UTC)[reply]

No, it means <your skin>.css where you should replace <your skin> with whatever the name of the skin you are currently using. In most cases nowadays this will be vector as that is now the default. Older users may be using something else, you can set it in your preferences. You can also put css code in User:Viennese Waltz/common.css which will result in it being applied to all skins. This is useful if you switch skins, or might do so in the future. SpinningSpark 12:57, 11 July 2014 (UTC)[reply]
Ah got it, thanks. --Viennese Waltz 13:14, 11 July 2014 (UTC)[reply]

Hiding a whole namespace excluding the namespace's subpages[edit]

Is there a way to hide a whole namespace excluding the namespace's subpages? I want to hide all edits made to the User namespace (e.g. User:Wikipedian) but still show all edits made to the namespace's subpages (e.g. User:Wikipedian/List of helpful tools (updated regularly)). 85.76.16.175 (talk) 16:08, 25 September 2020 (UTC)[reply]

I'd like to hide most talk pages except specific articles. I ended up watching 100+ articles for many subjects of interest, but don't edit most (so talk is overload): only am interested in actual article updates.--dchmelik (t|c) 10:52, 13 August 2022 (UTC)[reply]