User:David1010/monobook.js

// install User:Cacycle/wikEd in-browser text editor document.write('');

//---BASIC SCRIPTS - function addLink(where, url, name, id, title, key, after){ //* where is the id of the toolbar where the button should be added; //  i.e. one of "p-cactions", "p-personal", "p-navigation", or "p-tb". // //* url is the URL which will be called when the button is clicked. //  javascript: urls can be used to do more complex things. // //* name is what will appear as the name of the button. // //* id is the id of the button; it's best to define one. //  Use a prefix to make sure its unique. Optional. // //* title is the tooltip title that gives a longer description //  of the button; if you define a accesskey, mention it here. Optional. // //* key is the char you want for the accesskey. Optional. // //* after is the id of the button you want to follow this one. Optional. // var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); var tabs = document.getElementById(where).getElementsByTagName('ul')[0]; if(after) { tabs.insertBefore(li,document.getElementById(after)); } else { tabs.appendChild(li); } if(id) { if(key && title) { ta[id] = [key, title]; } else if(key) { ta[id] = [key, '']; } else if(title) { ta[id] = ['', title];} } // re-render the title and accesskeys from existing code in wikibits.js akeytt; return li; } // ***********Add LI link-script*********** function addlilink(tabs, url, name, id, title, key){ var na = document.createElement('a'); na.href = url; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.appendChild(na); tabs.appendChild(li); if(id) { if(key && title) { ta[id] = [key, title]; } else if(key) { ta[id] = [key, '']; } else if(title) { ta[id] = ['', title]; } } // re-render the title and accesskeys from existing code in wikibits.js akeytt; return li; } // ***********addlimenu*********** function addlimenu(tabs, name, id) { var na = document.createElement('a'); na.href = ''; var mn = document.createElement('ul'); na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); if(id) li.id = id; li.className = 'tabmenu'; li.appendChild(na); li.appendChild(mn); tabs.appendChild(li); return li; } //***********addTab script*********** function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; addlilink(tabs, url, name, id, title, key); } // ***********addToolboxLink script*********** function addToolboxLink(url, name, id){ var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0]; //   addlilink(tb, url, name, id); addlilink(tb, '/wiki/Special:Newpages', 'ახალი გვერდები', ''); addlilink(tb, '/wiki/Special:Log/newusers', 'ახალი მომხმარებლები', ''); addlilink(tb, '/wiki/Special:Log', 'ჟურნალები', ''); } //***********დამატებითი ღილაკები*********** function InsertButtonsToToolBar { //მისალმების ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_user.png", "speedTip": "მისალმება", "tagOpen": "", "tagClose": "-\~\~\~", "sampleText": ""} //ჩემი ხელმოწერის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d1/Button_mysignature.png", "speedTip": "ჩემებური ხელმოწერა", "tagOpen": "", "tagClose": "–\~\~\~", "sampleText": ""} //სურათის ჩასმის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png", "speedTip": "სურათი +", "tagOpen": "thumb|right|px|", "sampleText": "FileName.jpg"} //ტექსტის გაფერადების ღილაკი (საწყისი:შავი) mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/76/Button_atelier_graphique.PNG", "speedTip": "ტექსტის გაფერადება", "tagOpen": '\n', "tagClose": "\n ", "sampleText": "გასაფერადებელი ტექსტი"} //თარგი გაკეთდას ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9d/Button_fait.png", "speedTip": "გაკეთდა", "tagOpen": "", "tagClose": "–\~\~\~\~", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_smiley_face_smile.png", "speedTip": "ვიღიმი", "tagOpen": "", "tagClose": "", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_blocage.png", "speedTip": "ვწუხვარ", "tagOpen": "{", "tagClose": "", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png", "speedTip": "ვაპაჭუნებ", "tagOpen": "", "tagClose": "", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png", "speedTip": "ვიკრიჭები", "tagOpen": "{", "tagClose": "", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/26/Button_Tongue.png", "speedTip": "ენა", "tagOpen": "{", "tagClose": "", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/61/KlaviSi%3F%3F%3F.png", "speedTip": "რაო?", "tagOpen": "", "tagClose": "", "sampleText": ""} //სმაილის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a6/1c9ff4afd5be.jpg", "speedTip": "ავი", "tagOpen": "", "tagClose": "", "sampleText": ""} //რჩეულის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9e/Button_star_better.png", "speedTip": "რჩეული", "tagOpen": "", "tagClose": "", "sampleText": ""} //თანხმობის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png", "speedTip": "ჰო", "tagOpen": "*", "tagClose": "-\~\~\~\~", "sampleText": ""} //უარის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/98/Button_oppose.png", "speedTip": "არა", "tagOpen": "*", "tagClose": "", "sampleText": "-\~\~\~\~"} //ნეიტრალური mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4f/Button_neutral.png", "speedTip": "ჰმმ", "tagOpen": "*", "tagClose": "-\~\~\~\~", "sampleText": ""} //მოიცა mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/23/Button_wait.png", "speedTip": "მოიცა", "tagOpen": "*", "tagClose": "-\~\~\~\~", "sampleText": ""} //გაფრთხილება mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Jadernyhrib-button.png", "speedTip": "გაფრთხილება", "tagOpen": "", "tagClose": "-\~\~\~\~", "sampleText": ""} //გაფრთხილება2 mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/33/Button_exclamation.png", "speedTip": "გაფრთხილება", "tagOpen": "", "tagClose": "-\~\~\~\~", "sampleText": ""} //საავტორო უფლებები mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/72/Button_copy_vio_plagio.png", "speedTip": "საავტორო უფლებები დაცულია", "tagOpen": "", "tagClose": "", "sampleText": ""} //საავტორო უფლებები mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/91/Button_pd.png", "speedTip": "საავტორო უფლებები არ ვრცელდება", "tagOpen": "", "tagClose": "", "sampleText": ""} //შერწყმა mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/70/Button_fusion.png", "speedTip": "შერწყმა", "tagOpen": "", "tagClose": "", "sampleText": ""} //ვიკიფიცირება mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/65/Button_wikificare.png", "speedTip": "ვიკიფიცირება", "tagOpen": "", "tagClose": "", "sampleText": ""} //გადათარგმნა mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/0b/Button_fuente.png", "speedTip": "ითარგმნება", "tagOpen": "", "tagClose": "", "sampleText": ""} //ბრჭყალები mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png", "speedTip": "ბრჭყალები", "tagOpen": "„", "tagClose": "“", "sampleText": ""} //მრავალმნიშვნელოვანი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png", "speedTip": "მრავალმნიშვნელოვანი", "tagOpen": "", "tagClose": "", "sampleText": ""} //წასაშლელი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f8/Button_suppr.png", "speedTip": "წასაშლელი", "tagOpen": "", "tagClose": "", "sampleText": ""} //სქოლიოს ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png", "speedTip": "სქოლიო", "tagOpen": " ", "sampleText": ""} } addOnloadHook( InsertButtonsToToolBar ); window.onload = Main; function Main { addToolboxLink; }

//---Hot Cat- /* Script: User:TheDJ/Gadget-HotCat.js */
 * HotCat: Adds an easy way to add, modify and remove categories
 * Documentation: User:TheDJ/HotCat
 * Originally written by: Magnus Manske
 * This version was forked from http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&oldid=10204404
 * In sync with version: http://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&oldid=19600669
 * Major changes:
 * - all code for the uploadForm has been removed
 * - autocommit is disabled
 * - will be enabled on pages without categories so that you can easily add them
 * - uses javascript:void as a dummy value for href in order to avoid a conflict with popups.
 * - checks for and removes it if a category is added
 * - does not use JSconfig for configuration options like its Commons original
 * - tries to detect other categories and if possible, add to the end of them.
 * - fixes a bug in the suggestion list with titles containing : character
 * - Uses opensearch API to look for categories. Allows for case insensitive search.
 * - Postfix blacklisting in addition to prefix blacklisting.
 * User:TheDJ 2009-04-18
 * User:TheDJ 2009-04-18