Utilisateur:Till034/monobook.js
Aller à la navigation
Aller à la recherche
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
- Opera : appuyez sur Ctrl + F5.
//<nowiki> if(document.getElementById("firstHeading").firstChild.data=="Fichiers les plus demandés"){ var a = document.getElementsByClassName("special").item(0).childNodes; for(var i=1; i<a.length; i++) { var c = a.item(i).childNodes.item(0); if(c){ c.setAttribute("href","/index.php?title=Sp%C3%A9cial:T%C3%A9l%C3%A9verser&wpDestFile="+c.firstChild.data.slice(8)); } } } var button = { "imageFile": "images/e/e1/User_Till034_button-gold.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "gold icon", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{or}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button); var button2 = { "imageFile": "images/0/00/User_Till034_button-silver.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "silver icon", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{argent}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button2); var button3 = { "imageFile": "images/7/79/User_Till034_button-bronze.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "bronze icon", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{bronze}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button3); var button4 = { "imageFile": "images/9/9f/User_Till034_button-karma.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "karma icon", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{karma}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button4); var button5 = { "imageFile": "images/d/d7/User_Till034_button-exp.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "exp icon", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{experience}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button5); var button6 = { "imageFile": "images/f/f5/User_Till034_button-br.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "new line", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "<br>", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button6); var button7 = { "imageFile": "images/e/e2/User_Till034_button-npc.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "NPC infobox", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{NPC infobox\n| race = \n| level = NA\n| region = NA\n}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button7); var button8 = { "imageFile": "images/3/3e/User_Till034_button-item.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "Item infobox", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{Item infobox\n| rarity =\n| type =\n| value =\n}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button8); var button9 = { "imageFile": "images/5/56/User_Till034_button-skill.png", // image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "Skill infobox", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "{{Skill infobox\n| description =\n| recharge=\n| profession = \n| slot = \n| twohand = \n| weapon_slot =\n}}", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button9); var button10 = { "imageFile": "images/e/eb/User_Till034_button-DPL-type.png", // image to be shown on the button (may be a full URL too),22x22 pixels "speedTip": "Type listing DPL for NPC type pages e.g. Bat", // text shown in a tooltip when hovering the mouse over the button "tagOpen": "<DPL>\ncategory=\nuses=Template:NPC infobox\nsuppresserrors=yes\n</DPL>", // the text to use to mark the beginning of the block "tagClose": "", // the text to use to mark the end of the block (if any) "sampleText": "" // the sample text to place inside the block }; mwCustomEditButtons.push(button10); var z = document.getElementById("mw-htmlform-description"); if(z){ var row = document.createElement("tr"); var td = document.createElement("td"); var a1 = document.createElement("a"); var a1_text = document.createTextNode("User image"); a1.setAttribute("href","javascript:userImageTag()"); a1.setAttribute("style","margin:10px;"); a1.appendChild(a1_text); var a2 = document.createElement("a"); var a2_text = document.createTextNode("ArenaNet image icon"); a2.setAttribute("href","javascript:arenaNetImageIcon()"); a2.setAttribute("style","margin:10px;"); a2.appendChild(a2_text); var a3 = document.createElement("a"); var a3_text = document.createTextNode("Icon"); a3.setAttribute("href","javascript:imageIcon()"); a3.setAttribute("style","margin:10px;"); a3.appendChild(a3_text); var a4 = document.createElement("a"); var a4_text = document.createTextNode("Clear"); a4.setAttribute("href","javascript:clearDesc()"); a4.setAttribute("style","margin:10px;"); a4.appendChild(a4_text); td.appendChild(a1); td.appendChild(a2); td.appendChild(a3); td.appendChild(a4); row.appendChild(td); z.childNodes[0].insertBefore(row, z.childNodes[0].childNodes[4]); function userImageTag() { var a = document.getElementById("wpUploadDescription"); var user = document.getElementById("pt-userpage").childNodes[0].childNodes[0].data; var b = document.getElementById("wpDestFile"); b.value = "Utilisateur "+user+" "+b.value; a.innerHTML = a.innerHTML+"{{Image utilisateur|"+user+"}}\n"; } function arenaNetImageIcon() { var a = document.getElementById("wpUploadDescription"); a.innerHTML = a.innerHTML+"{{Image ArenaNet|icône}}\n"; } function imageIcon() { var a = document.getElementById("wpUploadDescription"); a.innerHTML = a.innerHTML+"[[Catégorie:Icônes]]\n"; } function clearDesc() { var a = document.getElementById("wpUploadDescription"); a.innerHTML = ""; var b = document.getElementById("wpDestFile"); b.value = document.getElementById("wpUploadFile").files[0].name; } } //</nowiki>