您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This takes political-ish posts on Facebook and hides them so you just see a white box. useful when you need a break from everything but cute animal videos. Currently hides posts with the following words: Drumpf Trump Clinton elect (and all variations) hate debate
当前为
// ==UserScript== // @name Remove Political posts from Facebook // @namespace jengolbeck.com // @description This takes political-ish posts on Facebook and hides them so you just see a white box. useful when you need a break from everything but cute animal videos. Currently hides posts with the following words: Drumpf Trump Clinton elect (and all variations) hate debate // @include * // @version 1 // @grant none // ==/UserScript== function hide_political() { divs=document.getElementsByClassName("_5pbx userContent"); for(i=0;i<divs.length;i++) {if (divs[i].innerHTML.toLowerCase().indexOf('Trump') != -1 || divs[i].innerHTML.toLowerCase().indexOf('Clinton') != -1 || divs[i].innerHTML.toLowerCase().indexOf(' elect') != -1|| divs[i].innerHTML.toLowerCase().indexOf('shooting') != -1 || divs[i].innerHTML.toLowerCase().indexOf('Drumpf') != -1 || divs[i].innerHTML.toLowerCase().indexOf(' hate') != -1 || divs[i].innerHTML.toLowerCase().indexOf(' debate') != -1 ) {divs[i].parentNode.parentNode.style.visibility='hidden'; } } } window.setInterval(function(){ hide_political(); }, (5000));