Remove inoreader ADS

Remove inoreader.com's advertisement in reading list, and upgrade button.

当前为 2015-01-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Remove inoreader ADS
  3. // @description Remove inoreader.com's advertisement in reading list, and upgrade button.
  4. // @version 2
  5. // @grant none
  6. // @include https://www.inoreader.com/feed/*
  7. // @include https://www.inoreader.com/folder/*
  8. // @include https://www.inoreader.com/all_articles
  9. // @include https://www.inoreader.com/starred
  10. // @include https://www.inoreader.com/dashboard
  11. // @include https://www.inoreader.com/trending
  12. // @include https://www.inoreader.com/liked
  13. // @include https://www.inoreader.com/commented
  14. // @include https://www.inoreader.com/recent
  15. // @include https://www.inoreader.com/web_pages
  16. // @include https://www.inoreader.com/channel
  17. // @include https://www.inoreader.com/my_channel
  18. // @namespace https://raw.githubusercontent.com/Hacksign/configs/master/firefox/plugins/greasemonkey/inoreader.user.js
  19. // ==/UserScript==
  20. tools_div = document.getElementById('sb_rp_tools');
  21. if (tools_div) {
  22. tools_div.style.right = '90px';
  23. }
  24. notifications_div = document.getElementById('sb_rp_notifications');
  25. if (notifications_div) {
  26. notifications_div.style.right = '50px';
  27. }
  28. gear_div = document.getElementById('sb_rp_gear');
  29. if (gear_div) {
  30. gear_div.style.right = '10px';
  31. }
  32. upgrade_div = document.getElementById('sb_rp_upgrade');
  33. if (upgrade_div) {
  34. document.getElementById('sb_rp_upgrade').style.display = 'none';
  35. }
  36. reader_pane_div = document.getElementById('reader_pane');
  37. if (reader_pane_div) {
  38. reader_pane_div.addEventListener('DOMNodeInserted', function (e) {
  39. if (e.originalTarget.id && e.originalTarget.id.indexOf('leaderboard_ad-') != - 1) {
  40. e.originalTarget.parentNode.removeChild(e.originalTarget);
  41. } else if (e.originalTarget.classList && e.originalTarget.classList.contains('dashboard_gadgets')) {
  42. //find and remove ads div in dashboard page
  43. sub_divs = e.originalTarget.getElementsByTagName('div');
  44. for (i = 0; i < sub_divs.length; ++i) {
  45. if (sub_divs[i].classList && sub_divs[i].classList.contains('header_control')) {
  46. if (!sub_divs[i].innerHTML.trim()) {
  47. e.originalTarget.parentNode.removeChild(e.originalTarget);
  48. }
  49. }
  50. }
  51. }
  52. }, false);
  53. }

QingJ © 2025

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