User:Reo On/modern.js

/* */

// - custom edit toolbar - // Adresa buttonů - http://commons.wikimedia.org/wiki/Category:ButtonToolbar

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", "speedTip": " – ", "tagOpen": "", "sampleText": "Insert text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png", "speedTip": "obrázek s parametry", "tagOpen": "|||", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5e/Nuvola-inspired_Edit_Bar_for_MediaWik-button_sig.png", "speedTip": "Comment", "tagOpen": "", "sampleText": " --KOMENTÁŘ-- "}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/7a/Button_ip_partag%C3%A9e.png", "speedTip": "Welcome", "tagOpen": "\x7B{Subst:W-all}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_templatelink.png", "speedTip": "Botan PAHÝL", "tagOpen": "\x7B{Botanický pahýl}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/99/Button_reflink_advanced_2.png", "speedTip": "ENTO Pah", "tagOpen": "\x7B{Entomologický pahýl}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/99/Button_reflink_advanced_2.png", "speedTip": "MYKO Pah", "tagOpen": "\x7B{Mykologický pahýl}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/99/Button_reflink_advanced_2.png", "speedTip": "ORNITO Pah", "tagOpen": "\x7B{Ornitologický pahýl}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4a/Button_welcome.png", "speedTip": "welcome - constructive", "tagOpen": " Welcome to Wikipedia. Everyone is welcome to make constructive contributions to Wikipedia, but at least one of your recent edits, such as the one you made to XXX, did not appear to be constructive and has been  reverted (undone) by Reo (me). :: Please use the sandbox for any test edits you would like to make, and take a look at the welcome page to learn more about contributing to this encyclopedia. Note that human editors do monitor recent changes to Wikipedia articles, and administrators have the ability to block users from editing if they repeatedly engage in vandalism. :: The following is the log entry regarding this warning: XXX was [XXX changed] by IPIP (t). Thank you. Have a nice time with Wikipedia! x7E\x7E\x7E\x7E.",     "tagClose": "",     "sampleText": ""};   mwCustomEditButtons[mwCustomEditButtons.length] = {     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png",     "speedTip": "|rour|",     "tagOpen": "|",     "tagClose": "",     "sampleText": ""};   mwCustomEditButtons[mwCustomEditButtons.length] = {     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d1/Button_mysignature.png",     "speedTip": "PODPIS", // předpokládám, že .... ;-)     "tagOpen": "x7E\x7E\x7E\x7E",     "tagClose": "",     "sampleText": ""}; };

// User:Lupin/popups.js

mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s');

//From http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510 function addSinceTab { var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; if (window.location.href.indexOf("&action=history&gotosince=true")!=-1) { do_since_I_last_edited }   else if (!/wiki\/Special:|w\/index.php?title=Special:/.test(window.location.href)) { var thetitle=document.title.slice(0, String(document.title).indexOf(" - ")); var l=addlilink(tabs, "/w/index.php?title="+thetitle+"&action=history&gotosince=true", 'Changes since I last edited', ''); l.lastChild.title="Changes since I last edited"; } } function do_since_I_last_edited { var csub=document.getElementById("contentSub"); var msg=document.createElement("p"); msg.appendChild(document.createTextNode                       ("Parsing history... please wait...")); msg.className="error"; csub.insertBefore(msg, csub.firstChild)

var username=document.getElementById("pt-userpage").textContent; var hists=document.getElementById("pagehistory").getElementsByTagName('li'); for (n=0;n<hists.length;n++) { if (hists[n].getElementsByTagName("span")[0].getElementsByTagName('a')[0].textContent==username) { document.location=hists[n].childNodes[1].href; return; }       }

msg.replaceChild(document.createTextNode                        ("You have not edited this page! (recently)"),                         msg.firstChild); }

$(addSinceTab);

//Variables pro nastavení drop down menu na stránkách, přidávám tab na zkratky

var cactions = { svars: Array(       ['New pages',              mw.config.get('wgScript')+'?title=Special:NewPages&action=view'],        ['User talk templates',    mw.config.get('wgScript')+'?title=Wikipedia:Template_messages/User_talk_namespace&action=view'],        ['AIV reports',            mw.config.get('wgScript')+'?title=Wikipedia:Administrator_intervention_against_vandalism&action=view'],        ['Speedy deletion',        mw.config.get('wgScript')+'?title=Wikipedia:Criteria_for_speedy_deletion&action=view']        ['edit my js',             mw.config.get('wgScript')+'?title=User:Reo_On/monobook.js=view']    ) };

//Global watchlist - http://toolserver.org/~luxo/gwatch/buttons.html document.write(' ');

importScript('User:Dr pda/prosesize.js'); //User:Dr pda/prosesize.js

//BOOKMARKS from User:Alex Smotrov importScript('user:js/popupBookmarks.js')