משתמש:Yonatan/monobook.js
מראה
(הופנה מהדף משתמש:Yonatanh/monobook.js)
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
// This function is used to include scripts from other Wikipedia pages in mine. I got it from [[:en:User:Omegatron/monobook.js]] who got it from [[:en:User:Quarl/monobook.js]].
function winc(s) {
s = s.replace(/^\[\[/, '').replace(/\]\]$/, '');
document.write('<scr' + 'ipt type="text/javascript" src="'
+ 'http://he.wikipedia.org/w/index.php?title=' + s
+ '&action=raw&ctype=text/javascript&dontcountme=s"></scr'
+ 'ipt>');
}
/* Included functions */
winc('[[משתמש:yonidebest/monobook.js/checkquery.js]]'); /* Reviews the parameters of page url. */
/* Included Tabs and links */
winc('[[משתמש:yonidebest/monobook.js/quickdelete.js]]'); /* Adds an option to mark problematic images */
winc('[[משתמש:yonidebest/monobook.js/templateSC.js]]'); /* Adds link to warn users on their talk page in the diff page */
winc('[[משתמש:yonidebest/monobook.js/edittop.js]]'); /* Adds a link to edit the top (intro) section of an article */
winc('[[משתמש:yonidebest/monobook.js/vote.js]]'); /* Adds a link that checks if the user has voting privileges. */
//winc('[[משתמש:yonidebest/monobook.js/removeimagelinks.js]]'); /* Adds a link that removed image in image pages. */
winc('[[משתמש:yonidebest/monobook.js/fastrevert.js]]'); /* Adds a fast revert link. */
/* Other fixes and enhancements */
winc('[[משתמש:yonidebest/monobook.js/talkIPTool.js]]'); /* Adds extra warning template to anonymous talk pages */
winc('[[משתמש:yonidebest/monobook.js/checkpercentage.js]]'); /* Allow to check who's winning in vote pages. */
winc('[[משתמש:yonidebest/monobook.js/search.js]]'); /* Allows the use of shortcuts in the wiki search. */
winc('[[משתמש:yonidebest/monobook.js/navsearch.js]]'); /* Add an "advanced search" option. */
winc('[[משתמש:yonidebest/monobook.js/replaceText.js]]'); /* Add a search & replace option in edit mode. */
winc('[[משתמש:yonidebest/monobook.js/addSizes.js]]'); /* Adds added/removed byte in history page. */
//Made by Eran
function addDeleteOption() {
ta['del'] = ['', 'מחק דף זה'];
if (!document.getElementById) return;
var reqDel=wgPageName;
x = document.getElementById('ca-move');
if(!x) return;
y = document.createElement('li');
y.id = 'ca-move';
z = document.createElement('a');
z.href = 'http://he.wikipedia.org/w/index.php?title=ויקיפדיה:בקשות_ממפעילים&action=edit§ion=1&pleasedelete=yes&pagefordel='+reqDel;
if (x.children) {
z.appendChild(document.createTextNode('מחיקה'));
y.appendChild(z);
document.getElementById('p-cactions').children[1].insertBefore(y,x.nextSibling);
} else {
z.appendChild(document.createTextNode('מחיקה'));
y.appendChild(z);
document.getElementById('p-cactions').childNodes[3].insertBefore(y,null);
}
}
$(function (){
if(location.href.match(/pleasedelete=yes/)) {
txtLoc=location.href;
reqDel=decodeURI(txtLoc.substring(txtLoc.indexOf('pagefordel=')+11,txtLoc.length));
document.getElementById('wpSummary').value = '[[' + reqDel + ']]';
document.getElementById('wpTextbox1').value = document.getElementById('wpTextbox1').value + '\n*[['+reqDel+']] ~~'+'~~';
document.getElementById('editform').submit();
}
});
addOnloadHook(addDeleteOption);
importUserScript(9);