User:Mathglot/common.js

// Add unsigned helper per comment by Tryptofish at User_talk:Jytdog version 869882861 of 00:15, November 21, 2018 importScript('User:Anomie/unsignedhelper.js'); // Linkback: User:Anomie/unsignedhelper.js // User:Dr pda/prosesize mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');

// Add JS to prevent poor "Article" tab behavior on redirect TPs // See: WP:US/R#Redirect page tab behavior (Special:permalink/896318209#Redirect page tab behavior) // Commented out 2019-09-06; too many undesired side effects. // $("#p-namespaces a")[0].href += '?redirect=no'; // $("#p-views a")[0].href += '?redirect=no'; // read tab links to the redirect itself

// Temporarily add articles to Watchlist for one week, or one month. User:SD0001/T-Watch importScript('User:SD0001/T-Watch.js');

// Add rev ids to History, contribs, watch, from script User:BrandonXLF/ShowRevisionID importScript('User:BrandonXLF/ShowRevisionID.js'); // User:BrandonXLF/ShowRevisionID.js

/* This script adds "Source links" below "What links here" in the sidebar. "What links here" will include pages using a template with the link. "Source links" tries to search for pages where the link is in the source. To use the script, add the following line to Special:MyPage/common.js: */ importScript('User:PrimeHunter/Source links.js'); // Linkback: User:PrimeHunter/Source links.js

// User:PerfektesChaos/js/lintHint as reco by u:Tholme @T-Talk:Lorem ipsum#Linter error related to recent changes? mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&maxage=86400&ctype=text/javascript" ); // Adds a link to possible inlinks to the left sidebar importScript('User:Lourdes/Backlinks.js'); // Linkback: User:Lourdes/Backlinks.js

// User:Qwerfjkl/scripts/generatedoi.js is a replacement for reftag.js; see WP:VPT importScript('User:Qwerfjkl/scripts/generatedoi.js'); // Backlink: User:Qwerfjkl/scripts/generatedoi.js

//Table-editor adds a few table editing buttons to the toolbar. importScript('User:Kephir/gadgets/table-editor.js');   //

//pinkify links to unreliable sources and predatory journals; link:User:Headbomb/unreliable.js importScript( 'User:Headbomb/unreliable.js' );

//Add mute smiley to sigs of blocked users with TPA revoked: WP:US/R mw.loader.load( '/w/index.php?title=User:EpicPupper/mark-rocked.js&action=raw&ctype=text/javascript' ); // Backlink: User:EpicPupper/mark-rocked.js

// Add Nardog's script to convert opaque VE numeric-named references (WP:VECRUFT) to user-friendly names mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript'); // And to unpipe piped links that go to the same destination as the target mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/Unpipe.js&action=raw&ctype=text/javascript');

// Add Novem Linguae's script to highlight sources green, yellow, or red depending on their reliability. // Too dark; will try again if I can configure my own colors. // importScript( 'User:Novem Linguae/Scripts/CiteHighlighter.js' ); // Backlink: User:Novem Linguae/Scripts/CiteHighlighter.js

// Add Novem Linguae's script to Highlight usernames based on their permissions and edit count. // Too dark; will try again if I can configure my own colors. //importScript( 'User:Novem Linguae/Scripts/UserHighlighterSimple.js' ); // Backlink: User:Novem Linguae/Scripts/UserHighlighterSimple.js

// Add Trappist the monk/HarvErrors.js script to spot orphan sfn's and such. Adjust classes for different colors: // * ttm_harv_err – default color is DarkOrange #FF8C00 // * ttm_harv_warn – default color is some-sort-of brown #AC6600 // * ttm_harv_err_dup – default color is some-sort-of purple #C3F mw.loader.load( '/w/index.php?title=User:Trappist_the_monk/HarvErrors.js&action=raw&ctype=text/javascript' ); // mw.loader.load( '/w/index.php?title=User:Mathglot/HarvErrors.js&action=raw&ctype=text/javascript' );

// Per WP:VPI : importScript('User:SD0001/W-Ping.js'); // User:SD0001/W-Ping.js

// Per User scripts/Requests mw.hook( 'LinkClassifier' ).add( function ( linkClassifier ) {   linkClassifier.cats['redirect-with-possibilities'] = [ 'Category:Redirects with possibilities' ].sort; } ); importScript('User:Anomie/linkclassifier.js'); // Linkback: User:Anomie/linkclassifier.js importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: User:Anomie/linkclassifier.css

//Tell the Remember the dot syntax highlighter gadget to ignore unclosed br and hr tags syntaxHighlighterSiteConfig = { voidTags: ["br", "hr", "BR", "HR", "wbr", "WBR"], }