User:Master son/common.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//
// 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');