Disable Best Of Link

This disables the Best Of link at the top of MetaFilter.com

当前为 2014-06-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Disable Best Of Link
  3. // @namespace http://www.onfocus.com/
  4. // @description This disables the Best Of link at the top of MetaFilter.com
  5. // @include http://*.metafilter.com/
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. (function(){
  11. var a = document.getElementsByTagName('a');
  12. for(var i = 0; i < a.length; i++) {
  13. if ((a[i].href=='http://bestof.metafilter.com/') || (a[i].href=='https://bestof.metafilter.com/')) {
  14. a[i].href='javascript:void(0)';
  15. break;
  16. }
  17. }
  18. })();