User:Ahecht/Scripts/refresh

Ahecht's Refresh is a user script that adds "purge all" and "null edit all" options to the "Tools" menu on category pages, template pages, and on Special:WhatLi

User:Ahecht/Scripts/refresh
Authorsen:User:Ahecht, based on code by IKhitron
Status
Release
UpdatedAugust 18, 2026
    (0 days ago)
Source
Beta
User:Ahecht/Scripts/refresh.js
User:Ahecht/sandbox/Scripts/refresh.js

Ahecht's Refresh is a user script that adds "purge all" and "null edit all" options to the "Tools" menu on category pages, template pages, and on Special:WhatLinksHere and Special:Search. Makes forcelinkupdate purges or nulledit on all pages in the category (if activated from a category page), all pages that transclude the template (if activated from a template page), all pages linking to the target page (if activated from Special:WhatLinksHere), or all pages in a search result (if activated from Special:Search).

Based on phab:T170039#3473755 and he:User:IKhitron/101.js. Note that, per phab:T365303, category updates may take a few minutes even after a null edit with this script.

To use this script: Copy the line below, then [[click here]], paste the line, and hit Publish changes.

  • {{subst:Iusc|User:Ahecht/Scripts/refresh.js|User:Ahecht/Scripts/refresh}}
  • Report any issues to me, Ahecht.

Options

By default, the script will reuse the same bubble notification for each page it refreshes. To have each notification in its own bubble, add var refreshReuseBubble = false; to your Special:MyPage/common.js above the line that calls refresh.js.

Other options that can be set via the javascript console:

  • To shuffle the order in which pages are refreshed, open the console and type window.refreshShuffle = true; and press enter before running the script. To reverse the order, use window.refreshReverse = true;
  • For items in a category, the script defaults to sorting by timestamp in descending order (newest first). You can change this by setting window.refreshCatSort='sortkey'; or by setting window.refreshCatDir='ascending'; (or 'asc') before running the script.
  • For search results, the script defaults to sorting by last_edit_desc. You can change this by setting window.refreshSearchSort='VALUE';, where VALUE is one of the options for srsort specified at mw:API:Search.

See also

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.