User:Gxnx0xmx0xn/gn0Marks.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 146:
}
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")
Line 172:
e.wpSummary.value=wikimark_cmt;
e.wpSave.click();
// f.close(); // This closes the gn0Marks window. You can comment it out if you prefer.
if(vulgar===0|typeof vulgar == 'undefined') {jsMsg("You're the man now, dawg. '''"+wikimarkNewpageName+"''' has been added to your gn0Marks.");}
else {if(vulgar==1) {jsMsg("Fuck yeah. '''"+wikimarkNewpageName+"''' has been added to your gn0Marks.");}}