User:Mathglot/common.js

// Longer Nav pop-up previews (default: 600 chars) for Nav pop-ups gadget (see WP:VPT#Navigation pop-ups problem) window.popupMaxPreviewCharacters = 10000; // …

// Longer Nav pop-up previews (default: 600 chars) for Nav pop-ups gadget (see WP:VPT#Navigation pop-ups problem)
window.popupMaxPreviewCharacters = 10000;

// 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]]
importScript('User:Mathglot/Backlinks.js'); // Linkback: [[User:Mathglot/Backlinks.js]]

// [[User:Qwerfjkl/scripts/generatedoi.js]] is a replacement for reftag.js; see [[WP:VPT#doi citation tool down]]
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#Upgrade opt-in Appearance gadget to show blocked users without talk page access]]
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#Subscribing to a Draft so I'm notified at the five-month delete-warning]] :
importScript('User:SD0001/W-Ping.js'); // [[User:SD0001/W-Ping.js]]

// Per [[Wikipedia:User scripts/Requests#Usage]]
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"],
}

// [[User:Vanderwaalforces/checkTranslationAttribution.js]] – checks whether articles that are translations from other language Wikipedias have been properly attributed:
mw.loader.load('/w/index.php?title=User:Vanderwaalforces/checkTranslationAttribution.js&action=raw&ctype=text/javascript');

// Add BHG's bareurl script:
importScript( 'User:BrownHairedGirl/BareURLinline.js' ) // linkback: [[User:BrownHairedGirl/BareURLinline.js]]

// Add icons to copy section links to clipboard; see [[User:Polygnotus/Scripts/SectionLinks]]
// Too big; use class sect-link, class sect-link-perm, class sect-link-oldid.
// importScript( 'User:Polygnotus/Scripts/SectionLinks.js' ); // Backlink: [[User:Polygnotus/Scripts/SectionLinks.js]]
// importScript( 'User:Polygnotus/tmp/SectionLinks2.js' // comment out, to see if it interferes with [[User talk:BrandonXLF/ShowRevisionID]] script

// [[mw:VisualEditor/Suggestion Mode]]
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=User:DLynch_(WMF)/alwaysbesuggesting.js&action=raw&ctype=text/javascript' );

// [[WP:MTD]] A script to DRAFTIFY articles incl  cleanup and notification.
importScript( 'User:MPGuy2824/MoveToDraft.js' ); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]

// Style Locked users in discussions: [[User:GeneralNotability/mark-locked]] 
mw.loader.load('//en.wikipedia.org/wiki/User:GeneralNotability/mark-locked.js?action=raw&ctype=text/javascript');

// Watchlist: usurp Talk:XYZ, and on mouseover, pop-up a Preview of article XYZ instead
importScript('User:DVRTed/talk2article.js'); // No doc, but see WP:US/R#Alter watchlist so that hovering...

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.