მომხმარებელი:Rastrelli F/monobook.js
ვიკიციტატიდან
შენიშვნა: შენახვის შემდეგ შესაძლოა დაგჭირდეთ ბრაუზერის ქეშის გაწმენდა ცვლილებების სანახავად. Mozilla / Firefox / Safari: დააჭირეთ Shift Reload-ზე დაწკაპებისას, ან დააჭირეთ Ctrl-Shift-R (Cmd-Shift-R Apple Mac-ზე); IE: დააჭირეთ Ctrl Refresh-ზე დაწკაპებისას, ან დააჭირეთ Ctrl-F5; Konqueror:: მხოლოდ დააწკაპეთ Reload ღილაკს, ან დააჭირეთ F5; Opera შესაძლოა საჭირო გახდეს ქეშის სრულიად გაწმენდა Tools→Preferences-დან.
// install [[User:Cacycle/wikEd]] in-browser text editor document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript"></' + 'script>'); //-------------------BASIC SCRIPTS --------------------------------- function addLink(where, url, name, id, title, key, after){ 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); } 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/9/9d/Button_halt.png", "speedTip": "გაფრთხილება", "tagOpen": "{{გაფრთხილება|", "tagClose": "\~\~\~\~}}", "sampleText": ""} //თარგ ვანდალის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/64/Wiki_vand.gif", "speedTip": "ვანდალი", "tagOpen": "{{ვანდალი}}", "tagClose": "", "sampleText": ""} //თარგ გადაუმოწმებელიას ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_exclamation_1.png", "speedTip": "გადაუმოწმებელია", "tagOpen": "{{გადაუმოწმებელია}}", "tagClose": "", "sampleText": ""} //თარგ წყაროს ღილაკი 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/2/28/Button_info.png", "speedTip": "ფაქტი", "tagOpen": "{{ფაქტი}}", "tagClose": "", "sampleText": ""} //თარგ რჩეულის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b6/Button_article_de_qualite.png", "speedTip": "რჩეული", "tagOpen": "{{რჩეული}}", "tagClose": "", "sampleText": ""} //თარგ წასაშლელის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a5/Button_not_done.png", "speedTip": "წასაშლელი", "tagOpen": "{{წასაშლელი}}", "tagClose": "", "sampleText": ""} //თარგ ვიკიპედიას ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/cb/Button_wikipedia.png", "speedTip": "ვიკიპედია", "tagOpen": "{{ვიკიპედია}}", "tagClose": "", "sampleText": ""} //ფაილის ჩასმის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png", "speedTip": "ფაილი +", "tagOpen": "[[ფაილი:", "tagClose": "|thumb|right|px|]]", "sampleText": "FileName.jpg"} //ტექსტის გაფერადების ღილაკი (საწყისი:შავი) mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/76/Button_atelier_graphique.PNG", "speedTip": "ტექსტის გაფერადება", "tagOpen": '<font color="black\">\n', "tagClose": "\n</font>", "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": "{{(:D}}", "tagClose": "", "sampleText": ""} //სიცილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/26/Button_Tongue.png", "speedTip": "ენა", "tagOpen": "{{(:P}}", "tagClose": "", "sampleText": ""} //ჩემი ხელმოწერის ღილაკი mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d1/Button_mysignature.png", "speedTip": "ჩემებური ხელმოწერა", "tagOpen": "R. \~\~\~\~\~", "tagClose": "", "sampleText": ""} } addOnloadHook( InsertButtonsToToolBar ); window.onload = Main; function Main() { addToolboxLink(); }