Do we need a consensus?

spek9

Well-Known Member
Here's the finalized, confirmed working Tampermonkey script to hide things Politics from the site if anyone is interested:

Code:
// ==UserScript==
// @name         RIU_Politics
// @namespace    RIU_Politics
// @version      1.2
// @description  Hide Politics from the RIU ticker
// @author       spek9
// @match        https://rollitup.org*
// @match        https://www.rollitup.org*
// @grant        GM.getValue
// @require      https://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==

var $ = unsafeWindow.jQuery;

$(document).ready(function() {

    /* Find and remove the Politics section */

    var nodeMatch = $('.node-title:contains("Politics")');

    if (nodeMatch.length > 0) {
        console.log("Hiding Politics Section");
        nodeMatch.each(function(idx, elmnt) {
            $(elmnt).parent().parent().hide();
        });
    }

    /* Find and remove Politics recent post entries */

    var tickMatch = $('.contentRow-minor:contains("Politics")');

    if (tickMatch.length > 0) {
        console.log("Hiding Politics Ticker Entries");
        tickMatch.each(function(idx, elmnt) {
            $(elmnt).parent().parent().hide();
        });
    }
});
 

Coalcat

Well-Known Member
Just for you, I slapped together a quick Tampermonkey script that hides the Politics section, and any entries from Politics that show up in the recent post section.

It's very quick and dirty, and pretty much represents only a few minutes of effort, and it does it's work in a very cludgy way, but it does work. Tested on Firefox 73.0.1 with Tampermonkey 4.11.

Code:
// ==UserScript==
// @name         RIU_Politics
// @namespace    RIU_Politics
// @version      1.0
// @description  Hide Politics from the RIU ticker
// @author       spek9
// @match        *rollitup.org*
// @grant        GM.getValue
// @require      https://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==

var $ = unsafeWindow.jQuery;

$(document).ready(function() {

    /* Find and remove the Politics section */

    var nodeMatch = $('.node-title:contains("Politics")');

    if (nodeMatch.length > 0) {
        nodeMatch.each(function(idx, elmnt) {
            $(elmnt).parent().parent().hide();
        });
    }

    /* Find and remove Politics recent post entries */

    var tickMatch = $('.contentRow-minor:contains("Politics")');

    if (tickMatch.length > 0) {
        tickMatch.each(function(idx, elmnt) {
            $(elmnt).parent().parent().hide();
        });
    }
});
Look Ma, no Politics!

View attachment 4600197
Or you can just scroll right by it. I have never been in the politics section here. I imagine visiting that would be like going to foreign city to see their dump. I’ll just stick to what I came here for.
 
Top