TMD comments hider

hide comments of some users on Torrents.md / ascunde comentarii pe TMD

当前为 2015-05-24 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name TMD comments hider
  3. // @description hide comments of some users on Torrents.md / ascunde comentarii pe TMD
  4. // @grant unsafeWindow
  5. // @include *torrentsmd.*
  6. // @include *torrentsmoldova.*
  7. // @version 1.0
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
  9. // @namespace https://greasyfork.org/users/3718
  10. // ==/UserScript==
  11. jQuery(function($)
  12. {
  13. var ignoreUser = ['Jonothan', 'Executioner']; //username here
  14. $('#forumPosts .forumPostName a[href*="userdetails.php?id"] b').each(function (i, v)
  15. {
  16. ($.inArray(v.innerHTML, ignoreUser) + 1) && $(v).closest('.forumPostName').css('background-color', 'rgba(247, 12, 12, 0.16)').next('.main').empty();
  17. });
  18. });
  19.  
  20. // ($.inArray(v.innerHTML, ignoreUser) + 1) && $(v).closest('.forumPostName').empty().next('.main').empty();