Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google News - 'Top Stories' Hider - Userscript
// ==UserScript==
// @name Google News - Top Stories Hider
// @namespace http://www.elijahlynn.net
// @version 0.1
// @description Permanently hides the Top Stories section on Google News
// @author Elijah Lynn
// @match https://news.google.com/*
// @grant none
// @downloadURL https://gist.githubusercontent.com/ElijahLynn/75f75ef17592d31b4152175b31584ae1/raw
// @updateURL https://gist.githubusercontent.com/ElijahLynn/75f75ef17592d31b4152175b31584ae1/raw
// ==/UserScript==
(function() {
'use strict';
var topStories = document.querySelectorAll("[data-label='Top Stories']")[0];
topStories.style.display = 'none';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment