User:Gxnx0xmx0xn/gn0Marks.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 6:
// See User:Gxnx0xmx0xn/gn0Marks for more info on installation.
 
//////////////////////////
//----------------------//
// //
// ---gn0m0n.com ----//
//----------------------//
// //
////////////// ----------//
////////////// ----------//
////////////// ----------//
////////////// ----------//
////////////// ----------//
////////////// ----------//
//////////////////////////
// PS: I don't really know JavaScript so this is probably a klugey solution. But it works for me.
Line 23:
//Reading configuration or setting defaults if not present:
if(typeof markThisTabTitleConfig == 'undefined') {
if(vulgar===0|typeof vulgar == 'undefined') {var markThisTitle="Add to gn0Marks";}
else {if(vulgar==1) {var markThisTitle="Mark this shit";}}
}
else {
Line 31 ⟶ 30:
 
if(typeof myMarksTitleConfig == 'undefined') {
if(vulgar===0|typeof vulgar == 'undefined') { var myMarksTitle="My gn0Marks";}
else {if(vulgar==1) {var myMarksTitle="My motherfuckin' gn0Marks";}}
}
else {
Line 176 ⟶ 174:
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.");}}
};
}