vithrell / engadgetBlockPolitics

// ==UserScript==
// @name        engadgetBlockPolitics
// @namespace   engadgetBlockPolitics
// @description engadgetBlockPolitics
// @include     https://www.engadget.com/
// @version     1
// @grant       none
// ==/UserScript==
var topics = document.getElementsByClassName('th-topic');
for (topic in topics){
   if( topics[topic].innerText == "Politics" ){
     var parent = topics[topic];
     while( parent.tagName.toLowerCase() != "article" ){
       parent = parent.parentNode;
     }
     parent.style.visibility='hidden' 
     parent.style.height = 0
   }
}