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