Hovermenu

Menu

  1. // ==UserScript==
  2. // @name Hovermenu
  3. // @description Menu
  4. // @include http://trophymanager.com/*
  5. // @include https://trophymanager.com/*
  6. // @version 0.0.1.20160928163653
  7. // @namespace https://gf.qytechs.cn/users/68506
  8. // ==/UserScript==
  9.  
  10.  
  11. // @version 1
  12.  
  13. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  14. // Customize Section: Customize TrophyBuddy to suit your personal preferences ///
  15. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  16. // ///
  17.  
  18. var hovermenu = "yes"; // switch to "yes" to bring back the old hover menu style from TM1.1 (adapted from TM Auxiliary and slightly modified) ///
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. var myurl=document.URL;
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. if (hovermenu == "yes") {
  35.  
  36. var load,execute,loadAndExecute;load=function(a,b,c){var d;d=document.createElement("script"),d.setAttribute("src",a),b!=null&&d.addEventListener("load",b),c!=null&&d.addEventListener("error",c),document.body.appendChild(d);return d},execute=function(a){var b,c;typeof a=="function"?b="("+a+")();":b=a,c=document.createElement("script"),c.textContent=b,document.body.appendChild(c);return c},loadAndExecute=function(a,b){return load(a,function(){return execute(b)})};
  37.  
  38. loadAndExecute("//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js", function() {
  39.  
  40. $.noConflict();
  41. jQuery(document).ready(function($) {
  42. $('#top_menu ul li a').bind('mouseover', function() {
  43. top_menu["change"]($(this).attr('top_menu'), false);
  44. });
  45. });
  46. });
  47.  
  48. }
  49.  
  50.  
  51.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址