Jump to content

User:Elvey/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Elvey (talk | contribs) at 15:25, 9 January 2016 (2 kluges, w/ WAG). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
//Prev. code was works; I just needed to know to use/find/see the button.
//What's the following line for?
userHideAllSubsequent=true;

importScript('User:Markhurd/hidetopcontrib.js');

/* User:Technical_13/Scripts/OneClickArchiver */
importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' );// Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]



/* Link to Wikiblame */
addPortletLink('p-tb', "http://wikipedia.ramselehof.de/wikiblame.php?user_lang=en&lang=en&project=wikipedia&article=" + wgPageName, "Wikiblame", "pt-Wikiblame", "Wikiblame");

//WAG that worked -  one way to get it back out from the submenu, and somewhere handy
addPortletLink('p-tb', "https://en.wikipedia.org/w/index.php?action=history&title=" + wgPageName, "HistorY", "pt-HistorE", "HistorE");

//Total kluges based on working WAG above.
addPortletLink('p-tb', "https://en.wikipedia.org/w/index.php?action=history&title=Talk:" + wgPageName, "TalkHist", "pt-TalkHist", "TalkHist");

//WAG2
addPortletLink('p-tb', "https://en.wikipedia.org/w/index.php?action=history&title=" + wgPageName.replace("Talk:", ""), "PageHist", "pt-PageHist", "PageHist");

//Hmm...
addPortletLink('p-tb', "https://en.wikipedia.org/w/index.php?action=edit&preload=Wikipedia%3ARequests_for_undeletion%2FExample&editintro=Wikipedia%3ARequests_for_undeletion%2FIntro&section=new&title=Wikipedia%3ARequests_for_undeletion&create=Request&preloadtitle=" + wgPageName, "ReqUndeletion", "pt-Undelt", "Undelete");


mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );