User:Whiteguru/common.js
Appearance
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 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. A guide 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 appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Whiteguru/common.css. |
//testing new scripts//
importScript( 'User:Danski454/stubsearch.js' ); // Backlink: [[User:Danski454/stubsearch.js]]
importScript('User:Lourdes/AfDstarted.js'); // Linkback: [[User:Lourdes/AfDstarted.js]]
importScript('User:Lourdes/AfDclosing.js'); // Linkback: [[User:Lourdes/AfDclosing.js]]
importScript('User:Lourdes/AfDList.js'); // Linkback: [[User:Lourdes/AfDList.js]]
importScript('User:Lourdes/Backlinks.js'); // Linkback: [[User:Lourdes/Backlinks.js]]
//mw.loader.load( '/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:RedWarn/.js]]
//Ends testing //
//adds Lupin Anti-Vandal tool for recent changes//
//mw.loader.load('/w/index.php?title=User:Lupin/recent2.js&action=raw&ctype=text/javascript'); // [[User:Lupin/recent2.js]]//
//Ends Anti Vandal tool addition//
//adds short desc helper//
importScript('User:Galobtter/Shortdesc helper.js');
//Adds Page Curation//
importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]
//Ends add Page Curation//
//Another test
$.when( mw.loader.using('mediawiki.util'), $.ready ).then( function() {
mw.util.addPortletLink( 'p-personal', '/wiki/User:Whiteguru/Tools', 'Tools', 'id', 'My Tools', 'null', '#pt-sandbox');
} );
//Ends Test
//Sandbox2
$.when( mw.loader.using('mediawiki.util'), $.ready ).then( function() {
mw.util.addPortletLink( 'p-personal', '/wiki/User:Whiteguru/sandbox2', 'sandbox2', 'id', 'reassess', 'null', '#pt-sandbox');
} );
//Ends Test
//New Trial
importScript('User:VoA/monobook.js');
//[[Category:Wikipedians who use RC script]]
//Ends Trial
mw.loader.using("mediawiki.util", function() {
mw.util.addPortletLink(
"p-cactions",
"https://tools.wmflabs.org/copyvios/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase() + "&title=" + encodeURIComponent(mw.config.get("wgPageName")),
"Copyvio check",
"t-copyvio-check",
"Check this page for copyright violations"
);
// Adds toolbox links to search Google web, news archive, books, scholar, and images for the title of the page.
//NPP Before
importScript( 'User:Novem Linguae/Scripts/NPPLinks.js' ); // Backlink: [[User:Novem Linguae/Scripts/NPPLinks.js]]
//Ends BEFORE
addOnloadHook(function () {
if (mw.config.get('wgCanonicalNamespace') == "Special")
return; // no links for special pages
var title = mw.config.get('wgTitle');
if (mw.config.get('wgCanonicalNamespace') != "")
title = title.replace(/^.*\//, ""); // subpage name only
var query = encodeURIComponent('"'+title+'" -Wikipedia' );
mw.util.addPortletLink('p-tb', 'http://www.google.com/search?&q='+query,
'Web search', 't-googlesearch', 'Search Google for "'+title+'"', 'W');
mw.util.addPortletLink('p-tb', 'http://www.google.com/search?&tbm=nws&tbs=ar:1&q='+query,
'News search', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');
mw.util.addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=0&as_pub=-icon&q='+query,
'Books search', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');
mw.util.addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query,
'Scholar search', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');
mw.util.addPortletLink('p-tb', 'http://www.google.com/images?safe=off&tbm=isch&q='+query,
'Images search', 't-googleimagesearch', 'Search Google Images for "'+title+'"', 'I');
mw.util.addPortletLink('p-tb', 'https://www.jstor.org/action/doBasicSearch?Query=%22'+query+'%22&acc=on&wc=on',
'JSTOR', 't-jstor', 'Search JSTOR for "'+title+'"', 'S');
});
//
});
$("#t-copyvio-check > a").attr("target", "_blank");
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:Salix_alba/Citoid.js'); // Backlink: [[User:Salix_alba/Citoid.js]]
//importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]//
importScript('User:Anomie/useridentifier.js'); // Backlink: [[User:Anomie/useridentifier.js]]
importScript('User:SD0001/shortdescs-in-category.js'); // Backlink: [[User:SD0001/shortdescs-in-category.js]]
var user_orphan_cutoff = 1
importScript('User:DannyS712/deOrphan.js'); // Backlink: [[User:DannyS712/deOrphan.js]]
//importScript('User:Technical 13/Scripts/OrphanStatus.js'); // Backlink: [[User:Technical 13/Scripts/OrphanStatus.js]]//
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]