Revision as of 07:05, 10 September 2006 view sourceBetacommand (talk | contribs)86,927 editsNo edit summary← Previous edit |
Revision as of 07:11, 10 September 2006 view source Betacommand (talk | contribs)86,927 editsNo edit summaryNext edit → |
Line 1: |
Line 1: |
|
//Written by ], thanks to ] and ] for help with this! |
|
/Written by ], thanks to ] and ] for help with this! |
|
// BEGIN STUBREMOVE CODE |
|
// BEGIN STUBREMOVE CODE |
|
//check if we are editing and we want to stubfix |
|
//check if we are editing and we want to stubfix |
Line 6: |
Line 6: |
|
document.getElementById('wpSummary').value = "Removing stub"; |
|
document.getElementById('wpSummary').value = "Removing stub"; |
|
var contents = document.getElementById('wpTextbox1').value; |
|
var contents = document.getElementById('wpTextbox1').value; |
|
var newcontents = contents.replace(s/\.+?)?\]//g, ""); |
|
var newcontents = contents.replace(/\s/\.+?)?\]//g, ""); |
|
document.getElementById('wpTextbox1').value = newcontents; |
|
document.getElementById('wpTextbox1').value = newcontents; |
|
document.getElementById('wpDiff').click(); |
|
document.getElementById('wpDiff').click(); |