MediaWiki:Watcheditlist/Check all

From Wikipedia
Jump to navigation Jump to search

There are several ways to select a number of checkboxes at once. They all require Javascript to be enabled in your browser.


Shift-clicking

A MediaWiki feature allows the selection of an entire range of boxes by holding in the shift key while clicking on the two boxes at both ends of the range.


Run code from URL field

Open your watchlist editing page, then copy and paste the following code into your browser's URL bar, and press Enter. This should select all checkboxes on any page.


javascript:var t=document.getElementsByTagName('input'); for (var i=0; i<t.length; i++) if (t[i].type=='checkbox') t[i].checked=true; void 0



Run code from a bookmarklet

Create a bookmark in your browser with the same code above in the Location/URL field. Using this bookmark on any page should select all the checkboxes.