User:The Transhumanist/QuickPortal.js: Difference between revisions

Content deleted Content added
improve hover note
change url to include "Portal:"
Line 133:
// Development note: store pagename in local storage
 
// Invoke a function by its name; this one is like clicking "edit source"
// (The function itself is defined further down the page, using the word "function").
matchingPortal();
Line 175:
 
// Development note: goto matching portal, otherwise, create it
alert(window.var currentPath = ___location).pathname;
alert(currentPath);
var regex = /\//;
var newPath = currentPath.replace(regex, '/Portal:');
alert(newPath);
//window.___location.assign(___location.protocol + "//" + ___location.host + "/" + newPath);
}