How to ignore Port on the Grand Forks Herald website

(Updated 2022-11-10) If you really don’t care what Rob Port has to say, here’s a Greasemonkey script to hide his articles from appearing on the Grand Forks Herald website:

// ==UserScript==
// @name _Remove Port
// @include https://www.grandforksherald.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @grant GM_addStyle
// ==/UserScript==
//- The @grant directive is needed to restore the proper sandbox.

/*--- Use the jQuery contains selector to find content to remove.
Beware that not all whitespace is as it appears.
*/

$(".PromoA:contains('Plain Talk:')").remove();
$(".PromoB:contains('Plain Talk:')").remove();
$(".PromoC:contains('Plain Talk:')").remove();
$(".PromoF:contains('Plain Talk:')").remove();
$(".PromoLatestNews:contains('Plain Talk:')").remove();
$(".PromoA:contains('Port:')").remove();
$(".PromoB:contains('Port:')").remove();
$(".PromoC:contains('Port:')").remove();
$(".PromoF:contains('Port:')").remove();
$(".PromoLatestNews:contains('Port:')").remove();
$(".PromoA:contains('Mailbag:')").remove();
$(".PromoB:contains('Mailbag:')").remove();
$(".PromoC:contains('Mailbag:')").remove();
$(".PromoF:contains('Mailbag:')").remove();
$(".PromoLatestNews:contains('Mailbag:')").remove();

//-- Or use badDivs.hide(); to just hide the content.

Taken almost entirely from https://stackoverflow.com/a/9169236/2152245.

One thought on “How to ignore Port on the Grand Forks Herald website”

Leave a Reply

Your email address will not be published. Required fields are marked *