Spamblock needed
-
burnout426 Volunteer last edited by admin
I've been playing with a Tampermonkey script to hide all those spam posts (the annoying ones at least) in the "Opera for Windows" section. I'm limiting threads in the list to subjects that only contain printable ascii and hiding the rest.
// ==UserScript== // @name Block Spam on Opera Forums // @namespace https://example.com/ // @version 0.1 // @description try to take over the world! // @author You // @match https://forums.opera.com/category/11/opera-for-windows // @grant none // ==/UserScript== (function() { 'use strict'; var titles = document.querySelectorAll("tr.Item > td.Discussion > h3 > a.Title"); for (var i = 0; i < titles.length; ++i) { var subject = titles[i].textContent; if (!(/^[\x20-\x7E]*$/.test(subject))) { // select ancestor tr.Item and hide it titles[i].parentNode.parentNode.parentNode.style.display = "none"; } } })();
In the case that the page is all spam posts, the thread table will be empty and you'd just go on to the next page.
A more advanced script could auto-flag those posts.
But, something like this could be done (for the English section) server-side to automatically put the new thread up for moderation.
-
browzer1 last edited by
I posted (in the wrong forum) about this very thing and got a very snarky response from Leo.
-
burnout426 Volunteer last edited by admin
// @match https://forums.opera.com/category/11/opera-for-windows
Make that:
// @match https://forums.opera.com/category/11/opera-for-windows*
-
burnout426 Volunteer last edited by admin
Just to make it nicer, I switch the script to use forEach:
// ==UserScript== // @name Hide Spam Posts in 'Opera for Windows' Forum // @namespace burnout426 // @version 0.1 // @description try to take over the world! // @author Michael A. Puls II // @match https://forums.opera.com/category/11/opera-for-windows* // @grant none // ==/UserScript== (function() { 'use strict'; document.querySelectorAll("tr.Item > td.Discussion > h3 > a.Title").forEach(function(title) { if (!(/^[\x20-\x7E]*$/.test(title.textContent))) { // Hide ancestor tr.Item title.parentNode.parentNode.parentNode.style.display = "none"; } }); })();
Still been working really well at hiding all the spam posts.
-
Deleted User last edited by
+1.
your 2nd proposal would also reduce the number of vapid threads with pointless complaints from n00bs about opera's alleged shortcomings etc and thus improve the overall signal/noise ratio and quality of the forum.
-
burnout426 Volunteer last edited by
Ok, so how to we get the ball rolling on implementing something? Who's handling the forum code these days? Would they consider the "first post needs approval" policy? If not, what are they willing to implement?
-
blackbird71 last edited by
Sigh! Given that there are roughly 4.7 quintillion character combinations in a 12-character user name, at 150 spams a day (which seems the spammer's current pace for a 'good' day) and averaging 2.5 spams per user-name before the name gets banned, it will take roughly at least 215 trillion years to exhaust all user-name character combinations by banning. Somehow, I have a feeling that the present mechanism of banning user-names for spam control isn't working --
-
blackbird71 last edited by
Hold tight - we're working on a solution
Well, thus far it seems to be working. Or at least, it's working for the Asian spam that was so afflicting the forums.