The Soapbox

Hoo TV

Joined: 08/29/2012 Posts: 25858
Likes: 46752


This is why God invented Tampermonkey (step-by-step how-to inside)


Of course, you don't need to actually use it. If you just exercise self-discipline and simple ignore them, while hinting that you're using Tampermonkey, it still really fuzzes 'em up.

Here's a quick script that will remove the posts of all the trolls configured (as well as all posts that feed the trolls. It was developed and tested in Chrome, but it should be compatible with all modern browsers.

Using Chrome as an example, install the Tampermonkey extension at:

https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en-US&utm_source=ext_sidebar

Enable Tampermonkey, click on "Create a new script". Tampermonkey provides template code for a script. Replace the template script code entirely with the text of the script provided below, i.e., between the "------------------" demarcations.

------------------
// ==UserScript==
// @name Soapbox Troll Removal
// @namespace SoapboxTrollRemoval
// @description Removes the troll posts from TheSoapbox message board
// @match http*://townhall.sportswar.com/message_board/soapbox/*
// @version 1
// @grant none
// @run-at document-end
// @require http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==
var $ = window.jQuery;
(function() {
'use strict';

// Add troll usernames here
$("div.mbThreadText:contains('Hokieesith')" ).parent().remove();
$("div.mbThreadText:contains('hoothat')" ).parent().remove();
$("div.mbThreadText:contains('ResistHoo')" ).parent().remove();
$("div.mbThreadText:contains('ryno hoo')" ).parent().remove();
})();
------------------

Then, with Tampermonkey (and the script) enabled, refresh the page where there were posts made by the trolls you just configured for removal, and *poof*, they're gone, and gone for good, too, at least until you either disable Tampermonkey or the script.


Some hobbit fuzzed up about Tampermonkey in 1-2-3



[Post edited by Hoo TV at 05/06/2024 4:45PM]

(In response to this post by BKhoo)

Link: Tampermonkey


Posted: 05/06/2024 at 3:56PM



+0

Insert a Link

Enter the title of the link here:


Enter the full web address of the link here -- include the "http://" part:


Current Thread:
  Lol ** -- ResistHoo 05/06/2024 1:02PM
  I know....the irony is lost on this one. ** -- hoobedda 05/06/2024 1:07PM
  Which one? ** -- Hoo TV 05/06/2024 12:44PM
  Stole my planned joke, so no plus for you. -- Late 80s Hokie 05/06/2024 1:51PM
  This doesn’t help ** -- WahooMatt05 05/06/2024 12:28PM

Notice: Trying to get property 'queue' of non-object in /data/www/sportswar.com/wp-includes/script-loader.php on line 2781

Warning: Invalid argument supplied for foreach() in /data/www/sportswar.com/wp-includes/script-loader.php on line 2781
vm307