User:Epicgenius/sortcategories.js: Difference between revisions

Content deleted Content added
test
test
Line 6:
// Determine if we need to go to the editing page.
var loc = window.___location.href;
if (loc.indexOf('veactionaction=edit') < 0 && loc.indexOf('action===submit') < 0) {
alert("Go to source mode to use this script.");
} else if (loc.indexOf('action=edit') < 0 && loc.indexOf('action=submit') < 0) {
alert("Go to the edit page to use this script.");
} else {