This script is for PERSONAL use only!

You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate Fandom's Terms of Use.
(See the customization policy)

This script makes it possible to prevent a list of pages from being displayed on your wiki activity page. Unfortunately, the script will only run after the page has already loaded so the entries will appear for a couple of seconds at first before the script removes them.


In order to let it work properly you will need to added it add the top of your personal JS files. To implement your pages you will need to define the pagelist variable, for example:

var pagelist = ["Talk:ShowHide", "Script Request"];
Note: pagelist is an array literal, all page names must be in quotes and separated by commas inside the square brackets.

Removing Entire Namespaces (User:..., Forum:..., etc)

If you want to hide an entire namespace (the part before the colon (":") in page names) then you can do so using CSS instead of JavaScript. This is preferred as the effect is immediate instead of delayed, the pages will never show up then disappear when using CSS; but it is not possible to be selective about this, all pages in that namespace will never show up. If you want to be selective then you must use the above script instead.

.activity-ns-110, .activity-ns-111 {
     display: none;

In the above example, 110 is "Forum:..." and 111 is "Forum talk:...". A partial list of namespaces is given below, although some are already hidden by default. Just add more .activity-ns-NUMBER entries to the comma separated list to hide more namespaces.

ID Namespace Description
-2 Media Used for direct linking to images. For example, Media:Wiki.png links directly to the image page.
-1 Special Special pages. Used by MediaWiki code and extensions
0 Mainspace Articles
1 Talk Article discussion
2 User Personal user pages
3 User talk Pages for discussion with users
4 Project/Sitename Wiki-related content
5 Project talk/Sitename talk Discussion of Project pages
6 Image/File File descriptions
7 Image talk/File talk File discussion
8 MediaWiki System messages and configuration
9 MediaWiki talk Discussion of MediaWiki pages
10 Template Templates
11 Template talk Template discussion
12 Help Help pages, also see Shared Help
13 Help talk Discussion about Help pages
14 Category Categories
15 Category talk Category discussion
110 Forum Old forum pages
111 Forum talk Discussion about old forum pages
500 User blog Blog pages
501 User blog comment User blog comments
502 Blog Blog listing pages
503 Blog talk Blog listing page discussion. Generally unused
828 Module Lua module pages
829 Module talk Lua module discussion pages
1200 Message Wall Pages used for the Wall extension. Touch only if you know what are you doing.
1201 Thread Message Wall thread namespace
1202 Message Wall Greeting Pages used for content above message boxes on Message Walls
2000 Board Board namespace. Used for storing board descriptions
2001 Board Thread Forum threads

The complete list of namespaces and their aliases in a wiki can be retrieved using api.php:


For example|namespacealiases&format=jsonfm