User:Master son/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:Master son/common.css. |
//
// Commons Helper
//
// [[User:Krimpet/CH2.js]]
//importScript('User:Krimpet/CH2.js');
//importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]
//
// [[User:Splarka/dabfinder.js]]
//importScript('User:Splarka/dabfinder.js');
//
// [[User:Mr.Z-man/refToolbar.js]]
//importScript('User:Mr.Z-man/refToolbar.js');
//
// QUI Status
//
//importScript('User:TheDJ/qui.js');
//Interiot's javascript edit counter
//
//if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
//document.write('<script type="text/javascript" src="'
//+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
//+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
//
// addPurge
//
//addOnloadHook(function () {
//var hist; var url;
//if (!(hist = document.getElementById('ca-history') )) return;
//if (!(url = hist.getElementsByTagName('a')[0] )) return;
//if (!(url = url.href )) return;
//mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
//'purge', 'ca-purge', 'Purge server cache for this page', 'u');
//});
//
//User Tabs
//
//addOnloadHook(function() {
//if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) //no subpages or history
//return;
//if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
//var username = encodeURIComponent( wgTitle );
//mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + username, "Contribs", "ca-contrib", "User contributions");
//mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=move&user=" + username, "Page moves", "ca-pagemoves", "Page moves by this user");
//mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&user=" + username, "Block log", "ca-blog", "Blocks by this user");
//mw.util.addPortletLink("p-cactions", "http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki_p&user=" + username, "Edit count", "ca-editcount", "Edit count from Interiot's toolserver script");
//}
//});
//
// Navigation Popups
//
// [[User:Lupin/popups.js]]
// importScript('User:Lupin/popups.js');
//
// Assessment color and detail to article side
//
// [[User:Outriggr/metadata.js]]
//document.write('<script type="text/javascript" src="'
// + 'http://en.wikipedia.org/w/index.php?title=User:Outriggr/metadata.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//
//
// [[User:Outriggr/metadatatest.js]] <nowiki>
//importScript('User:Outriggr/metadatatest.js');
//assessmentMyTemplateCode = ["{{U.S. Roads WikiProject|class=|importance=}}",
// "{{Wisconsin WikiProject|class=|importance=}}",
// "{{WikiProject Universities|class=|importance=}}",
// "{{WikiProject Open Source/Banner|}}",
// "{{WPFS|class=|importance=}}",
// "{{WPLinux|class=}}",
// "{{WikiProject Microsoft Windows|class=|importance=}}",
// "{{WikiProject Computing|class=|importance=}}",
// //"{{Wikipedia:WikiProject C++/Article|class=}}" // won't work in this code
// ];
//assessmentDefaultProject = "U.S. Roads WikiProject";
//</nowiki>
//
//
// STATUS CHANGER
//
// addOnloadHook(function (){
// var subpage = "/Status";
// var scheme = "/StatusTemplate";
// var subpagelink = wgServer + "/w/index.php?title=User:" + encodeURIComponent(wgUserName + subpage);
// var logout = document.getElementById( 'pt-logout' );
// //Add the links
// mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=in", "In", "pt-status-in", "I'm in!", "", logout);
// mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=busy", "Busy", "pt-status-busy", "I'm busy!", "", logout);
// mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=inout", "In-Out", "pt-status-inout", "I'm out!", "", logout);
// mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=out", "Out", "pt-status-out", "I'm In between!", "", logout);
// mw.util.addPortletLink("p-personal", subpagelink + "&action=edit&newstatus=stress", "Stressed", "pt-status-stress", "I'm Stressed!", "", logout);
// if (location.href.indexOf("&action=edit&newstatus=") == -1) return; //Are we here to auto-edit the status?
// //Get new status
// var statusRegExp = /&action=edit&newstatus=(.*)/;
// var status = statusRegExp.exec(location.href)[1];
// //Modify the form
// document.getElementById('wpTextbox1').value = "{{User:"+wgUserName+scheme+"|"+status+"}}";
// document.getElementById('wpSummary').value = "Status: "+status;
// document.getElementById('wpMinoredit').checked = 'checked';
// //Submit it!
// document.getElementById('editform').submit();
// });
//
// Shortcuts Extension
// [[User:Jsimlo/shortcuts.js]]
//
//document.write('<script type="text/javascript" src="'
// + 'http://en.wikipedia.org/w/index.php?title=User:Jsimlo/shortcuts.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//
//function shortcutsInit ()
//{
// shortcutsAddLink ('Roads', 'User:Master son/US Roads');
// shortcutsAddLink ('Cleanup', 'Category:U.S. road articles needing attention');
// shortcutsAddLink ('USRD UC', 'Category:Unassessed U.S. road transport articles');
// shortcutsAddLink ('USRD UI', 'Category:Unassessed importance U.S. road transport articles');
// shortcutsAddLink ('CANRD UC', 'Category:Unassessed Canada road transport articles');
// shortcutsAddLink ('CANRD UI', 'Category:Unknown-importance Canada road transport articles');
// shortcutsAddLink ('RC List', 'Special:Recentchangeslinked/User:Master son/US Roads/Sub');
//}
//
//wlUnwatch Extension
//
//if (wgCanonicalSpecialPageName && wgCanonicalSpecialPageName=='Watchlist' && wgAction=='view')
//addOnloadHook(function () {
// var frm = document.getElementsByTagName('form')[0];
// frm.parentNode.insertBefore(document.createTextNode(' | '), frm);
// var lnk = document.createElement('a');
// lnk.appendChild(document.createTextNode('Unwatch…'));
// lnk.href = 'javascript:importScript("User:Alex_Smotrov/wlunwatch.js")';
// frm.parentNode.insertBefore(lnk, frm);
//})
//
//Twinkle
//
//importScript('User:AzaToth/twinkle.js');
//
//Friendly
//
//importScript('User:Ioeth/friendly.js');