Posted By

Feb30th1712 on 02/17/08


Tagged

script greasemonkey


Versions (?)

bid.yahoo.com.tw


 / Published in: JavaScript
 

  1. // ==UserScript==
  2. // @name bid.yahoo.com.tw
  3. // @namespace http://Feb30th1712.tw/
  4. // @include http://tw.search.bid.yahoo.com/search/ac?*
  5. // ==/UserScript==
  6. var objs;
  7. objs = document.getElementById("yausimg").getElementsByTagName("a");
  8. for (index = 0; index < objs.length; index++)
  9. {
  10. objs[index].setAttribute("href", objs[index].getAttribute("href") + "#yaupopwarn");
  11. }
  12. objs = document.getElementById("yaupage").getElementsByTagName("a");
  13. for (index = 0; index < objs.length; index++)
  14. {
  15. objs[index].setAttribute("href", objs[index].getAttribute("href") + "#yausmchinf");
  16. }
  17. var obj;
  18. obj = document.getElementById("yauadysmv");
  19. if (obj != null)
  20. {
  21. obj.style.display = "none";
  22. }
  23. obj = document.getElementById("yaumedsky");
  24. if (obj != null)
  25. {
  26. obj.style.display = "none";
  27. }
  28. obj = document.getElementById("yauadysmh");
  29. if (obj != null)
  30. {
  31. obj.style.display = "none";
  32. }
  33. obj = document.getElementById("ysmcmbf_s");
  34. if (obj != null)
  35. {
  36. obj.style.display = "none";
  37. }
  38. obj = document.getElementById("ysmcmbf_w");
  39. if (obj != null)
  40. {
  41. obj.style.display = "none";
  42. }

Report this snippet  

You need to login to post a comment.