Knowledge

User:NQ/WatchlistResetConfirm.js

Source 📝

138: 110:
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by
111:
others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
94: 90: 206:
https://en.wikipedia.org/search/?title=Knowledge:Village_pump_(technical)&oldid=746997333#Watchlist:_.22Are_you_sure_you_want_to_mark_all_pages_as_visited.3F.22
115:
to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
116: 112: 148: 185: 78: 43: 144: 67: 32: 8: 59: 27: 319:}); ############################################################################ */ 277:$ watchlistReset.css('display', 'inline'); //already hidden in css 291:
if (!confirm('Are you sure you want to mark all pages as visited?' )) {
256:/* ############################################################################ 245:* A copy of the GPL is available at https://www.gnu.org/licenses/gpl-2.0.txt 74: 39: 160:
After saving, you have to bypass your browser's cache to see the changes.
184:
toolbar button. For details and instructions about other browsers, see
17: 231:* of the License, or (at your option) any later version. See the 224:* as published by the Free Software Foundation; either version 2 137: 822:/* Uses ] to reset the watchlist without refreshing the page */ 217:* Licensed under the terms of the GNU General Public License 199:/*Adds a confirmation dialogue to the Watchlist Reset button 270:$ watchlistReset = $ ('#mw-watchlist-resetbutton'); 104: 132: 284:$ watchlistReset.on('click', function(event) { 106: 97:| Latest revision (diff) | Newer revision → (diff) 65: 238:* GNU General Public License for more details. 23: 989:'mw-changeslist-line-not-watched' 66:Revision as of 01:11, 8 December 2016 by 53: 422://if already hidden in css; recommended 14: 965:'.mw-changeslist-line-watched' 147:seems to have a documentation page at 125:be executed when previewing this page. 977:'mw-changeslist-line-watched' 50: 31: 653:'Mark all pages as visited?' 388:'#mw-watchlist-resetbutton' 156: 103: 88: 871:'setnotificationtimestamp' 192: 1050: 58:. The present address (URL) is a 136: 13: 1: 149:User:NQ/WatchlistResetConfirm 7: 186:Knowledge:Bypass your cache 30:of this page, as edited by 10: 1055: 1035: 1034: 1028: 1027: 1021: 1020: 1014: 1013: 1007: 1006: 1003: 1002: 996: 995: 956: 955: 934: 933: 894: 893: 878: 877: 862: 861: 837: 836: 830: 829: 826: 825: 819: 818: 815: 814: 778: 777: 741: 740: 713: 712: 673: 672: 660: 659: 644: 643: 628: 627: 603: 602: 599: 598: 583: 582: 552: 551: 548: 547: 532: 531: 498: 497: 464: 463: 430: 429: 426: 425: 395: 394: 373: 372: 369: 368: 338: 337: 334: 333: 327: 326: 323: 322: 316: 315: 309: 308: 302: 301: 295: 294: 288: 287: 281: 280: 274: 273: 267: 266: 260: 259: 253: 252: 249: 248: 242: 241: 235: 234: 228: 227: 221: 220: 214: 213: 210: 209: 203: 202: 196: 195: 193: 117:appropriate village pump 298:event.preventDefault(); 833:// Code adapted from ] 51:01:11, 8 December 2016 927:'editToken' 95:← Previous revision 180:key and click the 697:'Confirm' 637:'Confirm' 410:'display' 155: 154: 129: 128: 1046: 1040: 1039: 1033: 1032: 1026: 1025: 1019: 1018: 1012: 1011: 1005: 1001: 1000: 994: 993: 990: 987: 984: 981: 978: 975: 972: 969: 966: 963: 960: 954: 953: 950: 947: 944: 941: 938: 932: 931: 928: 925: 922: 919: 916: 913: 910: 907: 904: 901: 898: 892: 891: 888: 885: 882: 876: 875: 872: 869: 866: 860: 859: 856: 853: 850: 847: 844: 841: 835: 834: 828: 824: 823: 817: 813: 812: 809: 806: 803: 800: 797: 794: 791: 788: 785: 782: 776: 775: 772: 769: 766: 763: 760: 757: 754: 751: 748: 745: 739: 738: 735: 732: 729: 726: 723: 720: 717: 711: 710: 707: 704: 701: 698: 695: 692: 689: 686: 683: 680: 677: 671: 670: 667: 664: 658: 657: 654: 651: 648: 642: 641: 638: 635: 632: 626: 625: 622: 619: 616: 613: 610: 607: 601: 597: 596: 593: 590: 587: 581: 580: 577: 574: 571: 568: 565: 562: 559: 556: 555:$ watchlistReset 550: 546: 545: 542: 539: 536: 530: 529: 526: 523: 520: 517: 514: 511: 508: 505: 502: 496: 495: 492: 489: 486: 483: 480: 477: 474: 471: 468: 462: 461: 458: 455: 452: 449: 446: 443: 440: 437: 434: 428: 424: 423: 420: 417: 416:'inline' 414: 411: 408: 405: 402: 399: 398:$ watchlistReset 393: 392: 389: 386: 383: 380: 377: 376:$ watchlistReset 371: 367: 366: 363: 360: 357: 354: 351: 348: 345: 342: 336: 332: 331: 325: 321: 320: 314: 313: 307: 306: 300: 299: 293: 292: 286: 285: 279: 278: 272: 271: 265: 264: 258: 257: 251: 247: 246: 240: 239: 233: 232: 226: 225: 219: 218: 212: 208: 207: 201: 200: 189: 176:: Hold down the 140: 133: 107: 85: 82: 62:to this version. 57: 56: 52: 48: 47: 28:current revision 1054: 1053: 1049: 1048: 1047: 1045: 1044: 1043: 1042: 1041: 1037: 1030: 1023: 1016: 1009: 998: 991: 988: 985: 982: 979: 976: 973: 970: 967: 964: 961: 958: 951: 948: 945: 942: 939: 936: 929: 926: 923: 920: 917: 914: 911: 908: 905: 902: 899: 896: 889: 886: 883: 881:entirewatchlist 880: 873: 870: 867: 864: 857: 854: 851: 848: 845: 842: 839: 832: 821: 810: 807: 805:'reset' 804: 801: 798: 795: 792: 789: 786: 783: 780: 773: 770: 767: 764: 761: 758: 755: 752: 749: 746: 743: 736: 733: 730: 727: 724: 721: 718: 715: 708: 705: 702: 699: 696: 693: 690: 687: 685:'reset' 684: 681: 678: 675: 668: 665: 662: 655: 652: 649: 646: 639: 636: 633: 630: 623: 620: 617: 614: 611: 608: 605: 594: 591: 588: 585: 578: 575: 572: 569: 566: 563: 560: 557: 554: 543: 540: 537: 534: 527: 524: 521: 518: 515: 512: 509: 506: 503: 500: 493: 490: 487: 484: 481: 478: 475: 472: 469: 466: 459: 456: 453: 450: 447: 444: 441: 438: 435: 432: 421: 418: 415: 412: 409: 406: 403: 400: 397: 390: 387: 384: 381: 378: 375: 364: 361: 358: 355: 352: 349: 346: 343: 340: 329: 318: 311: 304: 297: 290: 283: 276: 269: 263:$ (function() { 262: 255: 244: 237: 230: 223: 216: 205: 198: 191: 190: 179: 130: 120: 102: 101: 100: 99: 98: 87: 86: 83: 72: 70: 54: 37: 35: 20: 12: 11: 5: 1052: 592:preventDefault 507:'body' 194: 177: 170:Microsoft Edge 153: 152: 141: 131: 127: 126: 105: 68: 60:permanent link 33: 22: 21: 15: 9: 6: 4: 3: 2: 1051: 1036: 1029: 1022: 1015: 1008: 1004: 997: 957: 935: 895: 879: 863: 838: 831: 827: 820: 816: 779: 742: 714: 674: 661: 645: 629: 618:messageDialog 606:windowManager 604: 600: 584: 553: 549: 535:windowManager 533: 519:windowManager 499: 491:WindowManager 470:windowManager 465: 457:MessageDialog 436:messageDialog 431: 427: 396: 374: 370: 339: 335: 330:/* Using ] */ 328: 324: 317: 310: 303: 296: 289: 282: 275: 268: 261: 254: 250: 243: 236: 229: 222: 215: 211: 204: 197: 187: 183: 175: 171: 167: 163: 162:Google Chrome 159: 150: 146: 142: 139: 135: 134: 124: 118: 114: 109: 108: 96: 92: 80: 76: 71: 64: 63: 61: 45: 41: 36: 29: 19: 181: 173: 169: 165: 161: 157: 122: 26:This is the 25: 24: 971:removeClass 145:user script 887:'' 790:&& 612:openWindow 541:addWindows 121:This code 525:$ element 983:addClass 946:function 756:function 725:function 567:function 359:function 79:contribs 44:contribs 762:closing 663:actions 647:message 178:⇧ Shift 166:Firefox 113:A guide 18:User:NQ 915:tokens 865:action 799:action 744:opened 731:opened 679:action 561:submit 513:append 347:loader 182:Reload 174:Safari 897:token 703:flags 691:label 631:title 586:event 573:event 353:using 158:Note: 143:This 84:(gpl) 55:(gpl) 16:< 940:done 909:user 855:post 793:data 787:data 768:data 750:then 719:then 172:and 123:will 91:diff 75:talk 40:talk 1038:}); 1031:}); 1024:}); 1017:}); 999:}); 937:}). 921:get 852:(). 849:Api 840:new 802:=== 716:}). 595:(); 544:(); 494:(); 476:new 467:var 460:(); 442:new 433:var 404:css 312:}); 49:at 992:); 980:). 968:). 959:$ 949:() 903:mw 858:({ 843:mw 781:if 709:}] 669:}, 528:); 510:). 501:$ 485:ui 479:OO 451:ui 445:OO 419:); 391:); 382:$ 362:() 356:(, 341:mw 168:, 164:, 93:) 77:| 69:NQ 42:| 34:NQ 1010:} 986:( 974:( 962:( 952:{ 943:( 930:) 924:( 918:. 912:. 906:. 900:: 890:, 884:: 874:, 868:: 846:. 811:{ 808:) 796:. 784:( 774:{ 771:) 765:, 759:( 753:( 747:. 737:{ 734:) 728:( 722:( 706:: 700:, 694:: 688:, 682:: 676:{ 666:: 656:, 650:: 640:, 634:: 624:{ 621:, 615:( 609:. 589:. 579:{ 576:) 570:( 564:( 558:. 538:. 522:. 516:( 504:( 488:. 482:. 473:= 454:. 448:. 439:= 413:, 407:( 401:. 385:( 379:= 365:{ 350:. 344:. 305:} 188:. 151:. 119:. 89:( 81:) 73:( 46:) 38:(

Index

User:NQ
current revision
NQ
talk
contribs
permanent link
NQ
talk
contribs
diff
← Previous revision
A guide
appropriate village pump

user script
User:NQ/WatchlistResetConfirm
Knowledge:Bypass your cache












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