NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Reddit live fixer
// @namespace https://openuserjs.org/users/ustp
// @version 0.2
// @description remove reddit live broadcast
// @author You
// @match https://*.reddit.com/*
// @icon https://www.google.com/s2/favicons?domain=reddit.com
// @grant none
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @updateURL https://openuserjs.org/meta/ustp/Reddit_live_fixer.meta.js
// @downloadURL https://openuserjs.org/install/ustp/Reddit_live_fixer.user.js
// @license MIT
// ==/UserScript==
(function () {
console.log('reddit script loaded');
var $el = null;
var intervalId = window.setInterval(function () {
$('h3').each(function () {
if ($(this).text() == "Top livestream" || $(this).text() == "Top broadcast") {
console.log('FUCK THIS!');
$el = $(this).closest('div').parent('div').parent('div').parent('div').parent('div').parent('div');
$el.remove();
}
});
}, 1000);
})();