Remove social sharing/following icons

Remove soical sharing icons and must not be the same as name

  1. // ==UserScript==
  2. // @name Remove social sharing/following icons
  3. // @homepage https://gf.qytechs.cn/en/scripts/36844-remove-social-sharing-icons
  4. // @supportURL https://gf.qytechs.cn/en/scripts/36844-remove-social-sharing-icons/feedback
  5. // @description:en Remove soical sharing/following icons and must not be the same as name. F*K pinterest BTW lol
  6. // @version 0.2.4.1 beta
  7. // @include *
  8. // @exclude *facebook.com*
  9. // @exclude *twitter.com*
  10. // @exclude *instagram.com*
  11. // @exclude *weibo*
  12. // @exclude *office*
  13. // @exclude *microsoft*
  14. // @exclude *greasyfork*
  15. // @exclude *youtube*
  16. // @exclude *pinterest.com*
  17. // @exclude *google*?*+*
  18. // @excludd *meme*
  19. // @noframes
  20. // @grant none
  21. // @run-at document-idle
  22. // @namespace https://gf.qytechs.cn/users/12687
  23. // @description Remove soical sharing icons and must not be the same as name
  24. // ==/UserScript==
  25.  
  26.  
  27. var styleEl = document.createElement('style');
  28. styleEl.type = 'text/css';
  29. styleEl.innerHTML = "\
  30. div[class*=community],\
  31. div[class^=pop],\
  32. div[class*='-share'],\div[class*=sharing],\div[class^=share],\
  33. div[class^=soc],\div[class^=add],\div[class^=subs],\div[class^=plus],\div[class^=follow],\
  34. div[id^=social],\
  35. i[class*=social],\
  36. img[class*=social],\img[src*='facebook.'],\
  37. img[src*='fb-'],\img[src*='FB-'],\img[src*='tweet?'],\img[src*='twe'],\img[src*='witt'],\
  38. span[class*=sharing],\span[class*='social-'],\span[class*=twitter],\span[class*='share-'],\
  39. a[aria-label=facebook],\a[aria-label=tumblr],\
  40. a[href*='addthis'],\
  41. a[href*='com/+'],\
  42. a[href*='instagram'],\
  43. a[href*='javascript:share'],\
  44. a[href*='/pin'],\
  45. a[href*='share?'],\
  46. a[href*='/share'],\
  47. a[href*='//plus.goo'],\a[href*='//www.faceb'],\a[href*='//twit'],\a[href*='//www.inst'],\
  48. a[href*='tweet?'],\
  49. a[title*='follow'],\a[lable=facebook],\a[lable=twitter],\a[lable=instagram],\
  50. div[title*='faceb'],\div[title*='twitt'],\div[title*='insta'],\div[title*='goog'],\
  51. a[class*='-trigger'],\a[onclick*='social']{display: none !important;}\
  52. ";
  53. document.documentElement.appendChild(styleEl);
  54.  
  55. var styleEl2 = document.createElement('style');
  56. styleEl2.type = 'text/css';
  57. styleEl2.innerHTML = "\
  58. div>li[id*='share']{display: none !important;}\
  59. ";
  60. document.documentElement.appendChild(styleEl2);
  61.  
  62. //removes opening of share link (possible false postive)
  63. function NoOpen(e){return 1}
  64. this.open=NoOpen;
  65. window.open=NoOpen;
  66. open=NoOpen;
  67.  
  68. window.open = function(){
  69. return;
  70. }
  71.  
  72. //Check this for disqus removal:https://gf.qytechs.cn/en/scripts/9578-remove-disqus-and-other-social-media-from-hindustan-times but bad/broken jsQuery
  73. //recommended to use extensions/add-ons with icon replace.

QingJ © 2025

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