Remove social sharing/following icons

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

目前为 2018-12-07 提交的版本。查看 最新版本

// ==UserScript==
// @name Remove social sharing/following icons
// @homepage		https://gf.qytechs.cn/en/scripts/36844-remove-social-sharing-icons
// @supportURL		https://gf.qytechs.cn/en/scripts/36844-remove-social-sharing-icons/feedback
// @description:en Remove soical sharing/following icons and must not be the same as name
// @version 0.2.1 beta
// @include *
// @exclude *facebook.com*
// @exclude *twitter.com*
// @exclude *instagram.com*
// @exclude *weibo*
// @exclude *office*
// @exclude *microsoft*
// @exclude *greasyfork*
// @exclude *youtube*
// @exclude *pinterest.com*
// @noframes
// @grant none
// @run-at       document-idle
// @namespace https://gf.qytechs.cn/users/12687
// @description Remove soical sharing icons and must not be the same as name
// ==/UserScript==


var styleEl = document.createElement('style');
styleEl.type = 'text/css';
styleEl.innerHTML = "\
div[class*=community],\
div[class^=pop],\
div[class*='-share'],\
div[class*=sharing],\
div[class^=share],\
div[class^=soc],\
div[id^=social],\
i[class*=social],\
img[class*=social],\
img[src*='facebook.'],\
img[src*='fb-'],\
img[src*='FB-'],\
img[src*='tweet?'],\
img[src*='twe'],\
img[src*='witter'],\
span[class*=sharing],\
span[class*=social-icon],\
span[class*=twitter],\
a[aria-label=facebook],\
a[aria-label=tumblr],\
a[href*='addthis'],\
a[href*='com/+'],\
a[href*='instagram'],\
a[href*='javascript:share'],\
a[href*='/pin'],\
a[href*='share?'],\
a[href*='/share'],\
a[href^='https://plus.goo'],\
a[href^='https://www.faceb'],\
a[href^='https://twit'],\
a[href^='https://www.inst'],\
a[href*='tweet?'],\
a[title*='follow'],\
a[onclick*='social']{display: none !important;}\
";
document.documentElement.appendChild(styleEl);

//removes opening of share link (possible false postive)
function NoOpen(e){return 1}
this.open=NoOpen;
window.open=NoOpen;
open=NoOpen;

window.open = function(){
return;
}

//Check this for disqus removal:https://gf.qytechs.cn/en/scripts/9578-remove-disqus-and-other-social-media-from-hindustan-times
setInterval(function(){ 
  $(".ggl_page_row").remove();
  $(".story_comment").remove();
  $(".follow").remove();
  $(".follows").remove();
  $('a').filter(function(index) { return $(this).text() === "facebook"; }).closest("section").remove();
}, 1500);

QingJ © 2025

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