Knowledge (XXG)

User:Kephir/gadgets/unclutter

Source 📝

421: 36: 473:, you can learn how to change the default behaviour; instead of completely hiding customised signatures, you might want to apply styles to specific users or groups (i.e. IP editors). Unclutter wraps signatures inside a span element and attaches CSS classes to them to allow this. When signature minimisation is disabled, this is the only thing Unclutter does. 165:
helps in freeing Knowledge (XXG) from distractions. It does so by hiding some of the editing hints, warnings, never-to-be-used helpers, policy reminders on talk pages and other unnecessary verbosity. It also adds hiding links to discussion headers and editnotices, wraps and minimises user signatures.
912:
To set options, change values to the right of the colon. The values listed here are the defaults. Any line in the above code may be omitted, except for the first and the last. The last item should not end with a comma; this is a syntax error and will prevent the script from executing.
634:
Signatures have very few distinguishing features both in the wiki markup and in the rendered page; there is no 100% reliable way to identify them. Unclutter's approximate heuristic is: any fragment of the DOM tree starting with a link to a user-related page (user page, user talk page,
701:
Unclutter may be therefore unsuitable for sites with signature policies even more relaxed than English Knowledge (XXG)'s. The only signature format which should not ever cause problems is the default format used by MediaWiki.
946:
Determines whether to scan pages for signatures to process. Articles and special pages are never scanned. Only timestamped signatures are recognised, as non-timestamped signatures are too difficult to identify.
940:
Whether previously unseen discussions should be collapsed or expanded by default. Previously seen discussions are left in the state they were last seen; HTML5 localStorage is used to remember it.
990:
pairs, both enclosed within double or single quotes, separated by commas. The signature minimiser will attach the appropriate annotation to the username specified. For example:
968:
An array of names of users whose signatures are exempted from minimisation. Usernames should be written inside single or double quotes, separated by commas, like this:
263:
Items marked "heuristic" may be potentially incomplete or affect unexpected places, although the selectors have been chosen to be as specific as possible.
925: 934:
Whether to wrap discussions inside divs to make them collapsible. Disabling this might improve performance slightly, if you do not use this feature.
276: 412:
Importing the script will also add a "Toggle Unclutter" item to the toolbox. Clicking it will change whether the stylesheet affects the page.
1008:
is an object containing various information like the username, the DOM node of the minimised signature, etc. See the source code for details.
432:
By default, Unclutter scans non-special non-article pages for timestamped signatures, wraps them up and replaces with a text of the form:
501:
Attached to signify whose signature it is. When referring to this class, some special characters may need to be escaped according to the
280: 425: 251: 116: 368: 111: 448: 1031: 176:
for inexperienced editors, who might find the advice hidden by this script to be occasionally useful. Specifically,
420: 320: 589: 193: 647:) and ending with a timestamp appearing on a non-article page is considered a signature. To protect against 710: 706: 396: 332: 636: 977: 962:
Determines whether Unclutter will set different background colours for signatures of different users.
344: 296: 383: 452: 17: 287: 178:
hiding messages reminding you of Knowledge (XXG) policies does NOT exempt you from these policies.
691:
Contain links to pages in unusual namespaces (like Draft:, Help:, MediaWiki:, Category: or File:)
46: 640: 444: 88: 705:
If you encounter a user whose signature Unclutter cannot recognise, consider asking them to
356: 150: 35: 648: 920:
Whether to enable the stylesheet on page load. Inexperienced users should set this to
1025: 308: 242:
You may want to insert configuration options before importing the script; again, see
180:
New users may wish to install Unclutter with the stylesheet disabled by default, see
438: 146: 402:
Category and template list in the old editor — made collapsible, hidden by default
132:
If all displayed information is important, important information is easy to find.
651:, Unclutter will not recognise, or may recognise less reliably signatures which: 644: 69: 142: 835:/* "username": "annotation" pairs, separated by commas */ 502: 1000:
A JavaScript function which is called before minimisation and may return
428:
reformatting signatures and timestamps in a Knowledge (XXG) discussion.
405:
Discussions on talk pages and other discussion pages — made collapsible
272:
Copyright and policy warnings and reminders in the old editor — hidden
709:. Chances are that their fancy signature is already in violation of 419: 377:
Overly fancy user talk pages — restored default styles (heuristic)
517:
Attached to signatures of editors identified by an IPv6 address.
511:
Attached to signatures of editors identified by an IPv4 address.
249:
The CSS stylesheet will be pulled automatically from the page
125: 527:
The following classes are used in the minimised signature:
1014:
A JavaScript function which is called after minimisation.
924:, otherwise nasty things may happen. At worst, a visit to 694:
Contain links to special pages which are not user-related;
688:
Contain any external links (including interwiki links);
469:
The last link will show the original signature. In the
456: 721:
To configure Unclutter, add the following code before
697:
Contain links to user-related pages of other accounts.
662:("06:46, 27 August 2024 (UTC)"), i.e. as generated by 172:: Enabling the stylesheet installed by Unclutter is 523:
Attached to all signatures of unregistered editors.
290:
browser caches on JavaScript and CSS pages — hidden
105: 87: 68: 60: 52: 42: 682:Do not contain any link to a user-related page; 672:Contain block-level elements, or elements like 588:For example, to hide the log link, add this to 1004:to prevent Unclutter from performing it. The 8: 676:, which are not usually found in signatures; 380:Welcome templates — trimmed down (heuristic) 26: 953: 669:Have a timestamp wrapped in special markup; 574:The user's log link (for actions performed 564:The user's act link (for actions performed 460: 231:'User:Kephir/gadgets/unclutter.js' 25: 658:Have a timestamp in a format other than 99:No issues noticed on Modern and Monobook 7: 480:Attached to the minimised signature. 486:Attached to the original signature. 483:kephir-unclutter-signature-wrapper 470: 243: 181: 24: 722: 399:and editintros — made collapsible 302:— notice hidden; archive box kept 252:User:Kephir/gadgets/unclutter.css 117:User:Kephir/gadgets/unclutter.css 546:The username annotation, if any. 259:Templates and interface affected 112:User:Kephir/gadgets/unclutter.js 34: 685:Contain any images whatsoever; 492:Attached to both of the above. 1: 192:Copy the following line into 937:collapseDiscussionsByDefault 926:Administrators' noticeboards 769:collapseDiscussionsByDefault 558:The contributions page link. 424:Custom-styled Unclutter and 386:preferences notice — hidden 153:The Art of Unix Programming 1048: 707:use the default signature 244:the configuration section 182:the configuration section 139: 33: 727: 600:kephir-unclutter-minisig 594: 534:The initial em-dash (—). 477:kephir-unclutter-minisig 201: 1032:Knowledge (XXG) scripts 992:{ "קיפודנחש": 'kipod' } 928:. You have been warned. 369:proposed deletion/dated 96:Tested mostly on Vector 952:Determines whether to 429: 426:Comments in Local Time 416:Signature minimisation 408:Signatures — minimised 1018:is the same as above. 637:Special:Contributions 423: 965:signaturesExceptions 817:signaturesExceptions 723:importing the script 711:the signature policy 286:Instructions how to 283:editnotices — hidden 959:signaturesColourise 805:signaturesColourise 552:The talk page link. 219:/* configuration */ 30: 18:User:Kephir/gadgets 949:signaturesMinimise 793:signaturesMinimise 679:Contain long text; 655:Have no timestamp; 503:CSS escaping rules 430: 956:found signatures. 943:signaturesProcess 781:signaturesProcess 641:Special:EmailUser 464: 321:off topic warning 275:JavaScript, CSS, 267:By the stylesheet 160: 159: 124: 123: 1039: 1017: 1007: 1003: 993: 989: 970: 923: 917:enableOnPageLoad 908: 905: 902: 899: 896: 893: 890: 887: 884: 881: 878: 875: 872: 869: 866: 863: 860: 857: 854: 851: 848: 845: 842: 839: 836: 833: 830: 827: 824: 821: 818: 815: 812: 809: 806: 803: 800: 797: 794: 791: 788: 785: 782: 779: 776: 773: 770: 767: 764: 761: 758: 755: 752: 749: 746: 745:enableOnPageLoad 743: 740: 737: 734: 731: 675: 665: 661: 625: 622: 619: 616: 613: 610: 607: 604: 601: 598: 540:The user's name. 465: 442: 373: 367: 361: 355: 349: 343: 337: 331: 325: 319: 313: 307: 301: 295: 254: 238: 235: 232: 229: 226: 223: 220: 217: 214: 211: 208: 205: 197: 156: 126: 38: 31: 29: 1047: 1046: 1042: 1041: 1040: 1038: 1037: 1036: 1022: 1021: 1015: 1005: 1001: 994:(past default). 991: 988: 984: 981: 973:userAnnotations 969: 931:wrapDiscussions 921: 910: 909: 906: 903: 900: 897: 894: 891: 888: 885: 882: 879: 876: 873: 870: 867: 864: 861: 858: 855: 852: 849: 846: 843: 840: 837: 834: 831: 828: 826:userAnnotations 825: 822: 819: 816: 813: 810: 807: 804: 801: 798: 795: 792: 789: 786: 783: 780: 777: 774: 771: 768: 765: 762: 759: 757:wrapDiscussions 756: 753: 750: 747: 744: 741: 738: 736:kephirUnclutter 735: 732: 729: 719: 673: 663: 659: 649:false positives 632: 627: 626: 623: 620: 617: 614: 611: 608: 605: 602: 599: 596: 590:your stylesheet 584:The "sig" link. 498: 436: 418: 393: 371: 365: 359: 353: 347: 341: 335: 329: 323: 317: 311: 305: 299: 293: 269: 261: 250: 240: 239: 236: 233: 230: 227: 224: 221: 218: 215: 212: 210:kephirUnclutter 209: 206: 203: 195: 190: 174:not recommended 140: 80: 27: 22: 21: 20: 12: 11: 5: 1045: 1043: 1035: 1034: 1024: 1023: 1020: 1019: 1012: 1011:postProcessSig 1009: 998: 995: 986: 982: 974: 971: 966: 963: 960: 957: 950: 947: 944: 941: 938: 935: 932: 929: 918: 874:postProcessSig 728: 718: 715: 699: 698: 695: 692: 689: 686: 683: 680: 677: 670: 667: 660:H:i, j F Y (T) 656: 631: 628: 595: 586: 585: 582: 579: 572: 569: 562: 559: 556: 553: 550: 547: 544: 541: 538: 535: 532: 525: 524: 521: 518: 515: 512: 509: 506: 499: 496: 493: 490: 487: 484: 481: 478: 467: 466: 417: 414: 410: 409: 406: 403: 400: 392: 389: 388: 387: 381: 378: 375: 374:— trimmed down 363: 362:— trimmed down 351: 339: 327: 315: 303: 291: 284: 273: 268: 265: 260: 257: 202: 189: 186: 158: 157: 137: 136: 133: 130: 122: 121: 120: 119: 114: 107: 103: 102: 101: 100: 97: 92: 85: 84: 83: 82: 78: 73: 66: 65: 62: 58: 57: 54: 50: 49: 44: 40: 39: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 1044: 1033: 1030: 1029: 1027: 1013: 1010: 999: 996: 979: 975: 972: 967: 964: 961: 958: 955: 951: 948: 945: 942: 939: 936: 933: 930: 927: 919: 916: 915: 914: 726: 724: 717:Configuration 716: 714: 712: 708: 703: 696: 693: 690: 687: 684: 681: 678: 671: 668: 657: 654: 653: 652: 650: 646: 642: 638: 629: 593: 591: 583: 580: 577: 573: 570: 567: 563: 560: 557: 554: 551: 548: 545: 542: 539: 536: 533: 530: 529: 528: 522: 519: 516: 513: 510: 507: 504: 500: 494: 491: 488: 485: 482: 479: 476: 475: 474: 472: 471:section below 462: 458: 454: 450: 446: 441:(annotation) 440: 435: 434: 433: 427: 422: 415: 413: 407: 404: 401: 398: 395: 394: 391:By JavaScript 390: 385: 382: 379: 376: 370: 364: 358: 352: 346: 340: 334: 333:controversial 328: 322: 316: 310: 304: 298: 292: 289: 285: 282: 278: 274: 271: 270: 266: 264: 258: 256: 253: 247: 245: 200: 198: 187: 185: 183: 179: 175: 171: 167: 164: 155: 154: 151:chapter 1 of 148: 144: 138: 134: 131: 128: 127: 118: 115: 113: 110: 109: 108: 104: 98: 95: 94: 93: 91: support 90: 86: 77:Developed on 76: 75: 74: 71: 67: 63: 59: 55: 51: 48: 45: 41: 37: 32: 19: 911: 720: 704: 700: 633: 587: 575: 565: 526: 520:unregistered 468: 431: 411: 372:}} 366:{{ 360:}} 354:{{ 348:}} 342:{{ 336:}} 330:{{ 324:}} 318:{{ 312:}} 306:{{ 300:}} 294:{{ 262: 248: 241: 225:importScript 191: 188:Installation 177: 173: 169: 168: 162: 161: 152: 147:Eric Raymond 145:, quoted by 645:Special:Log 630:Limitations 578:this user). 568:this user). 397:Editnotices 345:not a forum 297:talk header 56:Semi-stable 997:processSig 987:annotation 841:processSig 674:<br> 664:~~~~~ 543:annotation 495:signature- 143:Ken Arnold 64:2013-09-22 489:signature 288:WP:BYPASS 196:common.js 163:Unclutter 43:Author(s) 28:Unclutter 1026:Category 983:username 980:list of 954:minimise 880:function 847:function 606:log-link 581:sig-link 571:log-link 561:act-link 555:ctb-link 549:tlk-link 537:username 497:username 350:— hidden 338:— hidden 326:— hidden 314:— hidden 277:category 141:—  79:Chromium 1016:context 1006:context 886:context 853:context 612:display 453:actions 449:contrib 439:Example 384:Twinkle 357:db-meta 184:below. 170:Warning 81:Firefox 72:support 70:Browser 61:Updated 978:braced 895:return 862:return 730:window 204:window 106:Source 53:Status 922:false 898:false 865:false 775:false 194:your 16:< 1002:true 811:true 799:true 787:true 763:true 751:true 618:none 531:dash 514:ipv6 508:ipv4 445:talk 309:calm 281:file 279:and 237:// ] 89:Skin 47:Keφr 461:sig 457:log 149:in 1028:: 985:: 976:A 907:}; 871:}, 838:}, 725:: 713:. 643:, 639:, 592:: 576:on 566:by 459:• 455:• 451:• 447:• 437:— 255:. 246:. 234:); 222:}; 199:: 135:” 129:“ 904:} 901:; 892:{ 889:) 883:( 877:: 868:; 859:{ 856:) 850:( 844:: 832:{ 829:: 823:, 820:: 814:, 808:: 802:, 796:: 790:, 784:: 778:, 772:: 766:, 760:: 754:, 748:: 742:{ 739:= 733:. 666:; 624:} 621:; 615:: 609:{ 603:. 597:. 505:. 463:) 443:( 228:( 216:{ 213:= 207:.

Index

User:Kephir/gadgets

Keφr
Browser
Skin
User:Kephir/gadgets/unclutter.js
User:Kephir/gadgets/unclutter.css
Ken Arnold
Eric Raymond
chapter 1 of The Art of Unix Programming
the configuration section
your common.js
the configuration section
User:Kephir/gadgets/unclutter.css
category
file
WP:BYPASS
talk header
calm
off topic warning
controversial
not a forum
db-meta
proposed deletion/dated
Twinkle
Editnotices

Comments in Local Time
Example
talk

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