Description | Watchlists pages you edit for a duration of your choosing |
---|---|
Author(s) | Rummskartoffel |
Updated | April 7, 2023 (14 months ago) |
Skin support | Vector, Monobook, Timeless |
Source | User:Rummskartoffel/auto-watchlist-expiry.js |
GitHub repository | auto-watchlist-expiry |
Automatically watchlists every page you edit or delete for a user-definable duration (you can still pick a different time using the dropdown, though). Pages already on your watchlist are disregarded. Tested in Vector, Monobook and Timeless. Works with the 2010 source editor, VisualEditor, and VisualEditor's source mode.
Put the following two lines in your common.js:
window.autoWatchlistExpiry = { "edit": "2 weeks", "delete": "6 months", "create": "infinite" };
mw.loader.load("/?title=User:Rummskartoffel/auto-watchlist-expiry.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Rummskartoffel/auto-watchlist-expiry.js]]
You'll probably want to enable the following preferences:
The script will work without these preferences enabled, but you'll have to tick the "Watch this page" checkbox yourself every time.
Set the following values on window.autoWatchlistExpiry
as shown above to configure the watchlist durations to use. Durations must be specified in either hours, days, weeks, or months, or as "infinite".
The maximum valid duration for any option is 1 year (12 months, 52 weeks etc.) due to MediaWiki limitations I can't do anything about. If any duration is invalid or too high, the script won't do anything except print an error message to the browser console.
"edit"
(required)"delete"
(optional)"create"
(optional)"edit"
will be used."undo"
(optional)"edit"
will be used.Description | Watchlists pages you edit for a duration of your choosing |
---|---|
Author(s) | Rummskartoffel |
Updated | April 7, 2023 (14 months ago) |
Skin support | Vector, Monobook, Timeless |
Source | User:Rummskartoffel/auto-watchlist-expiry.js |
GitHub repository | auto-watchlist-expiry |
Automatically watchlists every page you edit or delete for a user-definable duration (you can still pick a different time using the dropdown, though). Pages already on your watchlist are disregarded. Tested in Vector, Monobook and Timeless. Works with the 2010 source editor, VisualEditor, and VisualEditor's source mode.
Put the following two lines in your common.js:
window.autoWatchlistExpiry = { "edit": "2 weeks", "delete": "6 months", "create": "infinite" };
mw.loader.load("/?title=User:Rummskartoffel/auto-watchlist-expiry.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Rummskartoffel/auto-watchlist-expiry.js]]
You'll probably want to enable the following preferences:
The script will work without these preferences enabled, but you'll have to tick the "Watch this page" checkbox yourself every time.
Set the following values on window.autoWatchlistExpiry
as shown above to configure the watchlist durations to use. Durations must be specified in either hours, days, weeks, or months, or as "infinite".
The maximum valid duration for any option is 1 year (12 months, 52 weeks etc.) due to MediaWiki limitations I can't do anything about. If any duration is invalid or too high, the script won't do anything except print an error message to the browser console.
"edit"
(required)"delete"
(optional)"create"
(optional)"edit"
will be used."undo"
(optional)"edit"
will be used.