您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Turns the 5 onmouseover menus into onmousedown menus
// ==UserScript== // @name Howrse onMouseDown Menus // @namespace myHowrse // @description Turns the 5 onmouseover menus into onmousedown menus // @include http://www.howrse.com/* // @author daexion // @version 1 // ==/UserScript== var links = document.getElementsByTagName('a'); for(var i=0;i<links.length;++i) { if(links[i].hasAttribute("onmouseover")) if(links[i].getAttribute("onmouseover") == "menuOn('elevage')") { links[i].setAttribute("onmousedown",links[i].getAttribute("onmouseover")); links[i].removeAttribute("onmouseover"); } if(links[i].hasAttribute("onmouseover")) if(links[i].getAttribute("onmouseover") == "menuOn('centre')") { links[i].setAttribute("onmousedown",links[i].getAttribute("onmouseover")); links[i].removeAttribute("onmouseover"); } if(links[i].hasAttribute("onmouseover")) if(links[i].getAttribute("onmouseover") == "menuOn('communaute')") { links[i].setAttribute("onmousedown",links[i].getAttribute("onmouseover")); links[i].removeAttribute("onmouseover"); } if(links[i].hasAttribute("onmouseover")) if(links[i].getAttribute("onmouseover") == "menuOn('classement')") { links[i].setAttribute("onmousedown",links[i].getAttribute("onmouseover")); links[i].removeAttribute("onmouseover"); } if(links[i].hasAttribute("onmouseover")) if(links[i].getAttribute("onmouseover") == "menuOn('profil')") { links[i].setAttribute("onmousedown",links[i].getAttribute("onmouseover")); links[i].removeAttribute("onmouseover"); } }