No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
// Begin Regex menu framework stuff | |||
/************* | /************* | ||
*** Regex menu framework | *** Regex menu framework | ||
Line 19: | Line 20: | ||
// but there is a set of simplified tools documented at | // but there is a set of simplified tools documented at | ||
// http://meta.wikimedia.org/wiki/User:Pathoschild/Script:Regex_menu_framework . | // http://meta.wikimedia.org/wiki/User:Pathoschild/Script:Regex_menu_framework . | ||
// End Regex menu framework stuff |
Revision as of 20:40, 23 March 2011
// Begin Regex menu framework stuff /************* *** 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. *** - script is at http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js&action=raw&ctype=text/javascript *** - but we will keep our own local copy, with the common skins. *************/ importScriptURI('http://wiki.simplemachines.org/skins/common/Regex_menu_framework.js'); /* 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 . // End Regex menu framework stuff