User:FlightTime Public/common.js: Difference between revisions

Content deleted Content added
add link to NewFiles page
Update
Line 1:
// [[User:Krimpet/CH2.js]]
importScript('User:Krimpet/CH2.js');
 
importScript('User:Drilnoth/lefteditlinks.js');
Line 27 ⟶ 25:
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/SpecialUser:NewFilesMlpearc/Status",
"NewFilesStatus", "pt-acctool", "Link to NewFiles pageStatus",
"A", document.getElementById("pt-logout"));
});
Line 34 ⟶ 32:
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/UserWikipedia_talk:MlpearcArbitration_Committee/Workshop#ShopClerks",
"WorkShopClerks", "pt-acctool", "LinkArbitration_Committee/Clerks to Mlpearc's workshopPage",
"A", document.getElementById("pt-logout"));
});
 
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/User:Mlpearc/Arb_clerk_workshop",
"Clerk/Workshop", "pt-acctool", "Lnk to my workshop",
"A", document.getElementById("pt-logout"));
});
Line 43 ⟶ 48:
"http://en.wikipedia.org/wiki/Wikipedia:Requests_for_permissions#Current requests",
"RfP", "pt-acctool", "Link to Requests for Permissions",
"A", document.getElementById("pt-logout"));
});
 
addOnloadHook(function () {
addPortletLink( "p-personal",
"http://en.wikipedia.org/wiki/User:Krinkle/RTRC",
"RTRC", "pt-acctool", "RealTime RecentChanges",
"A", document.getElementById("pt-logout"));
});
Line 54 ⟶ 66:
"Reflinks" // link label
)});
 
/*************
*** Regex menu framework
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Regex_menu_framework>
*** - adds a sidebar menu of user-defined scripts.
*************/
importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js&action=raw&ctype=text/javascript');
 
/* menu links */
// In the function below, add more lines like "regexTool('link text','function_name()')" to add
// links to the sidebar menu. The function name is the function defined in rfmscripts() below.
function rmflinks() {
regexTool('Custom regex','custom()'); // a default tool which performs regex input in a dynamic form
}
/* scripts */
// Below, define the functions linked to from rmflinks() above. These functions can use any JavaScript,
// but there is a set of simplified tools documented at
// http://meta.wikimedia.org/wiki/User:Pathoschild/Script:Regex_menu_framework .
/*************
***
*** Trial Run
***
*************/
 
 
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript');
 
 
// [[UserFile:Krimpet/CH2Krinkle_RTRC.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
 
// [[File:Krinkle_OneClickCommoniser.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/OneClickCommoniser.js&action=raw&ctype=text/javascript');