Knowledge (XXG)

User:Ahecht/Scripts/watchlistcleaner

Source 📝

226:
the remaining pages on your watchlist, one at a time, and examine their revision histories -- this can take a long time on large watchlists. Finally, if you've selected the option to skip removing pages you created, it will examine all pages flagged for removal to see if you made the first edit -- this can be slow if you're removing a large number of pages at once.
225:
The script will then fetch items from your watchlist in batches of 500, which is relatively fast, and show any missing pages or redirects that it identifies as potential pages for removal. If you selected the option to find pages you haven't edited recently or pages you never edited, it will look at
100:
A userscript to remove missing pages (redlinks), redirects, pages you haven't edited recently, and/or pages you've never edited from your watchlist. The script will prompt to ask which types of pages you want to remove, and how many days of history it should look at, and whether it should skip
251:
If you don't hit "Cancel" on the first question it will then process the removals in batches of 50 and notify you of the result. If you selected the backup option, it will also display a message showing where the backup was saved.
221:— Don't remove any pages from your watchlist where you made the initial edit to that page. This won't work for pages you created that have since been deleted, but works for redirects and pages that you haven't edited recently. 92: 229:
Once the script has finished examining pages on your watchlist, it will notify you of how many pages it found to remove, an ask the following questions:
122: 88: 118: 243: 102: 273: 293: 106: 201:— Removes any pages from your watchlist where you haven't made a recent edit to either the page or its talk page. 187:— Doesn't remove pages where the talk page exists (this is common with the talk pages of new users or IP editors) 215:— Removes any pages from your watchlist where you haven't ever made an edit to either the page or its talk page. 145: 141: 255:
If you want more details on the script's progress as its running, you can open your browser's debug console (
101:
removing any pages you created. The script can optionally store a backup of the pages it removes at
278: 21: 195:— Removes pages from your watchlist that are redirects. It does not remove the redirect targets. 72: 151: 268: 171:" link). On some skins, this link may appear in the "Toolbox" or "Tools" menu instead. 287: 135: 256: 47: 17: 236:— Proceeds with removal. Hit "Cancel" to exit without modifying your watchlist 207:— Specifies the maximum number of days for an edit to be considered recent. 199:
Remove pages from Watchlist you haven't recently edited (slow)?
181:— Removes any pages from your watchlist that no longer exist 39:
Removes missing pages and/or redirects from your watchlist.
213:
Remove pages from Watchlist you have never edited (slow)?
174:
The script will prompt you with the following questions:
138:|User:Ahecht/Scripts/watchlistcleaner.js}} 82: 71: 61: 53: 43: 35: 185:Skip removing redlinked pages if talk page exists? 179:Remove redlinked (missing) pages from Watchlist? 93:User:Ahecht/sandbox/Scripts/watchlistcleaner.js 163:When you're on your watchlist, click on the " 8: 205:Minimum number of days since your last edit: 30: 274:Knowledge (XXG):User scripts/List#Watchlist 29: 167:" link on the top toolbar (next to the " 219:Skip removing pages you created (slow)? 123:User:Ahecht/Scripts/watchlistcleaner.js 89:User:Ahecht/Scripts/watchlistcleaner.js 7: 128:However, here's the manual method: 117:Hint: It's much easier if you get 28: 242:— Backs up all removed pages to 234:Remove ### pages from watchlist? 193:Remove redirects from Watchlist? 125:and click "Install" at the top. 244:Special:MyPage/Watchlist_backup 103:Special:MyPage/Watchlist_backup 144:or a skin-specific page, like 1: 105:, which can be used with the 67:    (5 months ago) 107:Special:RecentChangesLinked 310: 113:Installation instructions 146:Special:MyPage/vector.js 142:Special:MyPage/common.js 294:Knowledge (XXG) scripts 279:My other user scripts 240:Backup removed pages? 169:Clear the watchlist 165:Clean the watchlist 121:, then navigate to 32: 98: 97: 31:Watchlist cleaner 301: 170: 166: 152:Clear your cache 139: 33: 309: 308: 304: 303: 302: 300: 299: 298: 284: 283: 265: 168: 164: 161: 133: 119:ScriptInstaller 115: 91: 84: 66: 26: 25: 24: 12: 11: 5: 307: 305: 297: 296: 286: 285: 282: 281: 276: 271: 269:Help:Watchlist 264: 261: 249: 248: 247: 246: 223: 222: 216: 210: 209: 208: 196: 190: 189: 188: 160: 157: 156: 155: 149: 114: 111: 96: 95: 86: 80: 79: 76: 69: 68: 65:March 31, 2024 63: 59: 58: 55: 51: 50: 45: 41: 40: 37: 27: 15: 14: 13: 10: 9: 6: 4: 3: 2: 306: 295: 292: 291: 289: 280: 277: 275: 272: 270: 267: 266: 262: 260: 258: 253: 245: 241: 238: 237: 235: 232: 231: 230: 227: 220: 217: 214: 211: 206: 203: 202: 200: 197: 194: 191: 186: 183: 182: 180: 177: 176: 175: 172: 158: 153: 150: 147: 143: 137: 131: 130: 129: 126: 124: 120: 112: 110: 108: 104: 94: 90: 87: 81: 77: 75: support 74: 70: 64: 60: 56: 52: 49: 46: 42: 38: 34: 23: 19: 257:Help:CONSOLE 254: 250: 239: 233: 228: 224: 218: 212: 204: 198: 192: 184: 178: 173: 162: 134:{{ 127: 116: 99: 36:Description 18:User:Ahecht 154:and enjoy! 136:subst:iusc 44:Author(s) 288:Category 263:See also 20:‎ | 62:Updated 22:Scripts 132:Place 109:tool. 83:Source 57:Stable 54:Status 48:Ahecht 159:Usage 16:< 85:Beta 73:Skin 259:). 140:on 78:All 290:: 148:.

Index

User:Ahecht
Scripts
Ahecht
Skin
User:Ahecht/Scripts/watchlistcleaner.js
User:Ahecht/sandbox/Scripts/watchlistcleaner.js
Special:MyPage/Watchlist_backup
Special:RecentChangesLinked
ScriptInstaller
User:Ahecht/Scripts/watchlistcleaner.js
subst:iusc
Special:MyPage/common.js
Special:MyPage/vector.js
Clear your cache
Special:MyPage/Watchlist_backup
Help:CONSOLE
Help:Watchlist
Knowledge (XXG):User scripts/List#Watchlist
My other user scripts
Category
Knowledge (XXG) scripts

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.