Howrse Menu Click Not Hover

Changes the menu to on mouse click instead of hover.

  1. // ==UserScript==
  2. // @name Howrse Menu Click Not Hover
  3. // @namespace hmcnh
  4. // @include http://*.howrse.*/*
  5. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
  6. // @require https://greasyfork.org/scripts/1003-wait-for-key-elements/code/Wait%20for%20key%20elements.js?version=2765
  7. // @version 1.2
  8. // @author Janiss
  9. // @description Changes the menu to on mouse click instead of hover.
  10. // ==/UserScript==
  11.  
  12. waitForKeyElements ("#menu", menu, true);
  13.  
  14. function menu()
  15. {
  16. $("#menu a[class*='highlight']").each(function(){ $(this).attr('onclick', $(this).attr('onmouseover')); $(this).removeAttr('onmouseover'); });
  17. }