User:Gxnx0xmx0xn/gn0Marks.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 147:
}
var wikimarkNewpageName = wikimarkNewpage;
// if(wikimarksect == 1) {
// var newpageURL = ___location.href;
// if(newpageURL.indexOf("#")) {
// anchor = newpageURL.split("#");
// newpageSect = anchor[1];
// var wikimarkNewpageLink = wikimarkNewpage;
// wikimarkNewpage = wikimarkNewpage + "#" + newpageSect;
// wikimarkNewpage = wikimarkNewpage.replace(/_/g, " ");
// wikimarkNewpageName = wikimarkNewpageLink + " (Section: " + newpageSect + ")";
// }
// }
var f;
f=window.open(wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage+"&action=edit&output=embed")
f.id="WikiMarksLoader";
if(wikimarkNewpageName == wikimarkNewpage) {
var wikimarkLinktext = wikimarkNewpage;
}
else {
var wikimarkLinktext = wikimarkNewpage+"|"+wikimarkNewpageName;
}
var f;
f=window.open(wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage+"&action=edit&output=embed")
f.id="WikiMarksLoader";
f.onload=function() {
// var wikimark_cmt = "Adding [["+wikimarkNewpage+"]] to my WikiMarks list.";
e=f.document.editform;
e.wpTextbox1.value+=listtype+"["+"["+wikimarkLinktext+"]"+"]\n";
// e.wpSummary.value=wikimark_cmt;
e.wpSave.click();
f.close(); // This closes the gn0Marks window. You can comment it out if you prefer.