User:Gxnx0xmx0xn/monobook.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 63:
var menuPrefix = "ca-";
}
if(typeof WikimarkConfigPopup == 'undefined') {
var wmPopup = 0;
}
else if( WikimarkConfigPopup == 1 ) {
var wmPopup = 1;
}
if(typeof WikimarkConfigViewMenu == 'undefined') {
Line 103 ⟶ 96:
}
if(typeof WikimarkConfigPopShow == 'undefined') {
WikimarkConfigPopShow=0;
}
if(typeof WikimarkConfigPopHide == 'undefined') {
WikimarkConfigPopHide=0
}
var myBkmShowOnHover = WikimarkConfigPopShow;
var myBkmHideOnHover = WikimarkConfigPopHide;
var wikimarklinkprefix = wgServer+wgScript;
Line 131 ⟶ 115:
}
addPortletLink (addMenulocation, 'javascript:doAddWikiMark()', 'WikiMark yo', menuPrefix+'addwikimark', 'WikiMark this page', '', addNextto);
addPortletLink (viewMenulocation, wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage, 'My WikiMarks', menuPrefixV+'showwikimark', 'Open your WikiMarks', '', viewNextto);
if(wmPopup == 0) {
addPortletLink (viewMenulocation, wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage, 'My WikiMarks', menuPrefixV+'showwikimark', 'Open your WikiMarks', '', viewNextto);
}
else {
myBookmarksLoad();
}
}
Line 160 ⟶ 139:
}
var f;
// f=document.createElement("IFRAME");
f=window.open(wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage+"&action=edit&output=embed")
f.id="WikiMarksLoader";
// f.setAttribute("src", wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage+"&action=edit&output=embed");
// f.style.width = 640+"px";
// f.style.height = 480+"px";
if(wikimarkNewpageName == wikimarkNewpage) {
var wikimarkLinktext = wikimarkNewpage;
Line 179 ⟶ 154:
e.wpSave.click();
f.close();
// jsMsg("'''"+wikimarkNewpageName+"''' has been added to your WikiMarks.");
// var iframe = document.getElementById('WikiMarksLoader');
// jsMsg("'''"+wikimarkNewpageName+"''' has been added to your WikiMarks.");
// iframe.style.display="block";
};
// f.src=wikimarklinkprefix+"?title=User:"+wikimarkEncodedUserName+wikimarkspage+"&action=edit",document.body.appendChild(f);
// document.body.appendChild(f);
}