Knowledge (XXG)

User:Rummskartoffel/auto-watchlist-expiry

Source 📝

265: 239: 213: 95:
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
292:
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.
334:
The duration to use when reverting an edit using the "Undo" feature. This will not affect other methods of reverting, such as rollback or Twinkle. If not set, the value of
74: 289:
as shown above to configure the watchlist durations to use. Durations must be specified in either hours, days, weeks, or months, or as "infinite".
277:
The script will work without these preferences enabled, but you'll have to tick the "Watch this page" checkbox yourself every time.
351: 182:"/search/?title=User:Rummskartoffel/auto-watchlist-expiry.js&action=raw&ctype=text/javascript" 105: 258: 254: 250: 232: 228: 224: 206: 202: 198: 43: 17: 312:
The duration to use when deleting a page. If not set, the script won't affect page deletions.
60: 264: 238: 212: 87: 345: 321:
The duration to use when creating a new page. If not set, the value of
81: 303:
The duration to use when editing, creating a page or reverting.
193:
You'll probably want to enable the following preferences:
35:
Watchlists pages you edit for a duration of your choosing
243:
Add pages I create and files I upload to my watchlist
80: 70: 59: 49: 39: 31: 8: 269:Add pages and files I delete to my watchlist 75:User:Rummskartoffel/auto-watchlist-expiry.js 26: 217:Add pages and files I edit to my watchlist 25: 7: 24: 273:(if you have delete permissions) 263: 237: 211: 104:Put the following two lines in 1: 55:    (16 months ago) 285:Set the following values on 96:VisualEditor's source mode. 368: 287:window.autoWatchlistExpiry 66:Vector, Monobook, Timeless 110: 352:Knowledge (XXG) scripts 88:auto-watchlist-expiry 27:auto-watchlist-expiry 158:"infinite" 146:"6 months" 134:"2 weeks" 119:autoWatchlistExpiry 28: 18:User:Rummskartoffel 152:"create" 140:"delete" 93: 92: 359: 337: 330: 324: 317: 308: 299: 288: 272: 271: 270: 267: 246: 245: 244: 241: 220: 219: 218: 215: 189: 186: 183: 180: 177: 174: 171: 168: 165: 162: 159: 156: 153: 150: 147: 144: 141: 138: 135: 132: 129: 128:"edit" 126: 123: 120: 117: 114: 29: 367: 366: 362: 361: 360: 358: 357: 356: 342: 341: 335: 328: 322: 315: 306: 297: 286: 283: 268: 262: 249: 242: 236: 223: 216: 210: 197: 191: 190: 187: 184: 181: 178: 175: 172: 169: 166: 163: 160: 157: 154: 151: 148: 145: 142: 139: 136: 133: 130: 127: 124: 121: 118: 115: 112: 102: 54: 22: 21: 20: 12: 11: 5: 365: 363: 355: 354: 344: 343: 340: 339: 332: 326: 319: 313: 310: 304: 301: 282: 279: 275: 274: 247: 221: 188:// Backlink: ] 111: 106:your common.js 101: 98: 91: 90: 85: 78: 77: 72: 68: 67: 64: 57: 56: 51: 47: 46: 44:Rummskartoffel 41: 37: 36: 33: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 364: 353: 350: 349: 347: 338:will be used. 333: 327: 325:will be used. 320: 314: 311: 305: 302: 296: 295: 294: 290: 281:Configuration 280: 278: 266: 260: 259:Watched pages 256: 252: 248: 240: 234: 233:Watched pages 230: 226: 222: 214: 208: 207:Watched pages 204: 200: 196: 195: 194: 109: 107: 99: 97: 89: 86: 83: 79: 76: 73: 69: 65: 63: support 62: 58: 53:April 7, 2023 52: 48: 45: 42: 38: 34: 30: 19: 291: 284: 276: 192: 103: 100:Installation 94: 251:Preferences 225:Preferences 199:Preferences 32:Description 331:(optional) 318:(optional) 309:(optional) 300:(required) 84:repository 255:Watchlist 229:Watchlist 203:Watchlist 40:Author(s) 346:Category 316:"create" 307:"delete" 261: → 257: → 253: → 235: → 231: → 227: → 209: → 205: → 201: → 50:Updated 336:"edit" 329:"undo" 323:"edit" 298:"edit" 170:loader 113:window 82:GitHub 71:Source 16:< 176:load 61:Skin 348:: 185:); 164:mw 161:}; 108:: 179:( 173:. 167:. 155:: 149:, 143:: 137:, 131:: 125:{ 122:= 116:.

Index

User:Rummskartoffel
Rummskartoffel
Skin
User:Rummskartoffel/auto-watchlist-expiry.js
GitHub
auto-watchlist-expiry
your common.js
Preferences
Watchlist
Watched pages
Tick
Preferences
Watchlist
Watched pages
Tick
Preferences
Watchlist
Watched pages
Tick
Category
Knowledge (XXG) scripts

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