Bitcoin Forum
April 16, 2024, 08:00:34 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Browser Addon That Helps You Ignore Spammy Comments  (Read 576 times)
CapnSparrow (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 53


View Profile
January 16, 2019, 06:21:06 PM
Last edit: January 16, 2019, 08:15:39 PM by CapnSparrow
Merited by suchmoon (7), Welsh (6), DarkStar_ (4), bones261 (3), LoyceV (2), ABCbits (2), o_e_l_e_o (2), LeGaulois (1), Pmalek (1)
 #1

I see too many rubbish and spammy comments throughout the forum. They are usually written without reading the OP and they usually contain repeated stuff which is useless for readers. I've noticed that these posters have something in common: they have ads (mostly ICO) in their signatures.

I respect everbody's freedom to post whatever they want. I'll also use my freedom to use a browser addon to hide those useless comments. I've been using it for some time and now I want to share it with the community.

NOTE: Although I consider the addon stable, please note that it's still in beta. It may give false positive results in some circumstances.

How does it work? When a post has an ICO related ad in its signature, the whole post is automatically made transparent by the addon. If the user hovers mouse on it, it becomes readable and when unhovers then it gets transparent again. There is a treshold of 1000 merits, users above that don't get blocked by the addon.

Installation: The addon is a "user script". So in order to install it you first have to install Tampermonkey for Chrome or Greasemonkey for Firefox. Once you install it, click the link below to install my addon:

https://gist.github.com/CapnSparrow/d1f4f3d48c776279895a497a2eabe266/raw/084c8bea6b6207337c5334f394f174466b9d39b9/bitcointalk-poor-comment-blocker.user.js

Is this safe? Yes. It works offline in your browser and is open source.

Source code: https://gist.github.com/CapnSparrow/d1f4f3d48c776279895a497a2eabe266

I hope you enjoy it. Feedback is welcome.
1713297634
Hero Member
*
Offline Offline

Posts: 1713297634

View Profile Personal Message (Offline)

Ignore
1713297634
Reply with quote  #2

1713297634
Report to moderator
1713297634
Hero Member
*
Offline Offline

Posts: 1713297634

View Profile Personal Message (Offline)

Ignore
1713297634
Reply with quote  #2

1713297634
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
DarkStar_
Legendary
*
Offline Offline

Activity: 2758
Merit: 3282


View Profile WWW
January 16, 2019, 06:28:36 PM
 #2

Your link is broken. Here's a rehosted version you can use to install it: https://gist.github.com/DarkStarFTW/9b281cc74f6f81fff249c685315fb451/raw/6102f0f07b549d1daeb89f03100bb3ef1b79d91c/spamcomment.user.js

(disclaimer: not responsible for any damages from installing the script. code looks fine though)



A suggestion: Could you also collapse the spammy post, so that it doesn't take up as much space? Kind of like how reddit works. It would make browsing threads much easier, as you wouldn't have to scroll endlessly to get past posts from ICO spam.

taking a break - expect delayed responses
suchmoon
Legendary
*
Offline Offline

Activity: 3640
Merit: 8908


https://bpip.org


View Profile WWW
January 16, 2019, 06:52:21 PM
 #3

Nice. Although using jQuery is a bit of an overkill. Regular DOM functions are robust enough nowadays.
CapnSparrow (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 53


View Profile
January 16, 2019, 07:08:56 PM
 #4

Your link is broken.

Fixed, thanks.
suchmoon
Legendary
*
Offline Offline

Activity: 3640
Merit: 8908


https://bpip.org


View Profile WWW
January 16, 2019, 07:29:41 PM
 #5

Few popular member such as suchmoon got blocked by your script Cheesy

LOL

Serves me right for promoting an ICO.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
January 16, 2019, 07:34:14 PM
 #6

Few popular member such as suchmoon got blocked by your script Cheesy

LOL

Serves me right for promoting an ICO.

I pmd the fix to you auchmoon which is probably a lot easier than op making his code more complex.

Although there are a lot of good quality posts that come from newbies promoting icos.
suchmoon
Legendary
*
Offline Offline

Activity: 3640
Merit: 8908


https://bpip.org


View Profile WWW
January 16, 2019, 08:04:20 PM
 #7

I pmd the fix to you auchmoon which is probably a lot easier than op making his code more complex.

Thanks mate, I'm back from the dead invisible.

Actually I don't know, I'm not using the script but it's a solid hack, should be good Smiley
hatshepsut93
Legendary
*
Offline Offline

Activity: 2940
Merit: 2144



View Profile
January 16, 2019, 08:15:52 PM
Last edit: January 16, 2019, 08:32:47 PM by hatshepsut93
 #8

I suggest you to remove "casino" and "dice" from your blocklist, there are some high-paying Bitcoin signature campaigns (FortuneJack and others) with this word in their signatures, so your script actually filters some decent posters. Filtering ICO spammers should be just enough.

Check this thread to see all the bitcoin-paid signature campaigns to avoid false-positives in your script.

Also, your logic of minimal merit to bypass blocking doesn't calculate earned merit and uses only raw merit instead, on practice it will let pass people with 0 earned merit while sometimes ignoring those with hundreds of earned merit.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
DarkStar_
Legendary
*
Offline Offline

Activity: 2758
Merit: 3282


View Profile WWW
January 16, 2019, 08:30:36 PM
 #9

I suggest you to remove "casino" and "dice" from your blocklist, there are some high-paying Bitcoin signature campaigns (FortuneJack and others) with this word in their signatures, so your script actually filters some decent posters. Filtering ICO spammers should be just enough.

Stake is causing quite a bit of spam too. 777Coin, BitVest and Bitsler both have a bunch of spam megathread posters as well who make spammy comments outside of spam megathreads, so it's not a bad idea to filter them. FortuneJack does seem to have decent posters though

taking a break - expect delayed responses
CapnSparrow (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 53


View Profile
January 16, 2019, 08:32:51 PM
 #10

Nice. Although using jQuery is a bit of an overkill. Regular DOM functions are robust enough nowadays.

You're right but that's a challenge for me. If someone makes the required code conversion I'll happily update the source.

2. Add user whitelist option. Few popular member such as suchmoon got blocked by your script Cheesy

I've just implemented a treshold of 1000 merits. Users above that won't get hunted. However I'm not sure if that number is fine; what do you guys think?

A suggestion: Could you also collapse the spammy post, so that it doesn't take up as much space? Kind of like how reddit works. It would make browsing threads much easier, as you wouldn't have to scroll endlessly to get past posts from ICO spam.

I'll look into this if I find some time.

I suggest you to remove "casino" and "dice" from your blocklist, there are some high-paying Bitcoin signature campaigns (FortuneJack and others) with this word in their signatures, so your script actually filters some decent posters. Filtering ICO spammers should be just enough.

Check [ur=https://bitcointalk.org/index.php?topic=615953.0l]this thread[/url] to see all the bitcoin-paid signature campaigns to avoid false-positives in your script.

Hmm. Philosophy of the addon is "blocking users who are posting around for the sake of ads and not for adding to discussions". I'm not aware what kind of deals are available between users and advertisers. Does the case you point doesn't encourage users to post useless stuff? What are they get paid for?
hatshepsut93
Legendary
*
Offline Offline

Activity: 2940
Merit: 2144



View Profile
January 16, 2019, 08:35:05 PM
 #11

I suggest you to remove "casino" and "dice" from your blocklist, there are some high-paying Bitcoin signature campaigns (FortuneJack and others) with this word in their signatures, so your script actually filters some decent posters. Filtering ICO spammers should be just enough.

Stake is causing quite a bit of spam too. 777Coin, BitVest and Bitsler both have a bunch of spam megathread posters as well who make spammy comments outside of spam megathreads, so it's not a bad idea to filter them.

Sure, but there's probably some good posters even in those campaigns. OP's idea with taking merit into account can prevent false-positives, but it needs to be improved to calculate earned merit.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
CapnSparrow (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 53


View Profile
January 16, 2019, 08:39:16 PM
 #12

Also, your logic of minimal merit to bypass blocking doesn't calculate earned merit and uses only raw merit instead, on practice it will let pass people with 0 earned merit while sometimes ignoring those with hundreds of earned merit.

I'm kind of new to the forum. Could you clarify the difference between raw merit and earned merit?
DarkStar_
Legendary
*
Offline Offline

Activity: 2758
Merit: 3282


View Profile WWW
January 16, 2019, 08:42:18 PM
 #13

Also, your logic of minimal merit to bypass blocking doesn't calculate earned merit and uses only raw merit instead, on practice it will let pass people with 0 earned merit while sometimes ignoring those with hundreds of earned merit.

I'm kind of new to the forum. Could you clarify the difference between raw merit and earned merit?

When the forum first introduced the merit system, everyone was given enough merit to keep their current rank. For example, since I was Legendary at the time, I was given 1000 free merits. I currently have 1537 merits. 537 of those were earned by me, and 1000 of them were given to me for free.

There are a bunch of people with over 1000 merits, but make spammy posts (ex BTCEvo in my opinion, who has 1007 merits but posts that repeat what has already been said/don't make sense. Only 7 of those were earned by them)

taking a break - expect delayed responses
mikeywith
Legendary
*
Offline Offline

Activity: 2198
Merit: 6330


be constructive or S.T.F.U


View Profile
January 16, 2019, 08:45:34 PM
 #14

I suggest you to remove "casino" and "dice" from your blocklist

there are also  ICO signatures with very good quality posts like the "HoweyCoins" signature.

I am not against any sort of signatures, but this browser is suppose to give you a spam-free experience and with those words being removed from the blocklist it will only make it less efficient for sure.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DarkStar_
Legendary
*
Offline Offline

Activity: 2758
Merit: 3282


View Profile WWW
January 16, 2019, 08:47:17 PM
 #15

I suggest you to remove "casino" and "dice" from your blocklist

there are also  ICO signatures with very good quality posts like the "HoweyCoins" signature.

Reference for HoweyCoins: https://bitcointalk.org/index.php?topic=3920469.0

Basically a joke from theymos that some notable members are promoting for fun (and not money)

taking a break - expect delayed responses
CapnSparrow (OP)
Jr. Member
*
Offline Offline

Activity: 51
Merit: 53


View Profile
January 16, 2019, 09:01:05 PM
 #16

Quote
When the forum first introduced the merit system, everyone was given enough merit to keep their current rank. For example, since I was Legendary at the time, I was given 1000 free merits. I currently have 1537 merits. 537 of those were earned by me, and 1000 of them were given to me for free.

There are a bunch of people with over 1000 merits, but make spammy posts (ex BTCEvo in my opinion, who has 1007 merits but posts that repeat what has already been said/don't make sense. Only 7 of those were earned by them)

Is it possible to find that out via the UI? If that's not the case I think the only thing we can do is to increase the treshold.
mikeywith
Legendary
*
Offline Offline

Activity: 2198
Merit: 6330


be constructive or S.T.F.U


View Profile
January 16, 2019, 09:21:05 PM
 #17


Reference for HoweyCoins: https://bitcointalk.org/index.php?topic=3920469.0

Basically a joke from theymos that some notable members are promoting for fun (and not money)

 i know what HoweyCoins ICO is , i wouldn't be "shilling" it otherwise !.  i meant if we were to make exceptions for "dice" and "casino" and allowing signatures for campaigns you mentioned in your comment then this will open the door for ICOs too.


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DarkStar_
Legendary
*
Offline Offline

Activity: 2758
Merit: 3282


View Profile WWW
January 16, 2019, 09:51:46 PM
 #18


Reference for HoweyCoins: https://bitcointalk.org/index.php?topic=3920469.0

Basically a joke from theymos that some notable members are promoting for fun (and not money)

 i know what HoweyCoins ICO is , i wouldn't be "shilling" it otherwise !.  i meant if we were to make exceptions for "dice" and "casino" and allowing signatures for campaigns you mentioned in your comment then this will open the door for ICOs too.

I know, I was pointing it out for CapnSparrow who is new and likely would have not known.

Quote
When the forum first introduced the merit system, everyone was given enough merit to keep their current rank. For example, since I was Legendary at the time, I was given 1000 free merits. I currently have 1537 merits. 537 of those were earned by me, and 1000 of them were given to me for free.

There are a bunch of people with over 1000 merits, but make spammy posts (ex BTCEvo in my opinion, who has 1007 merits but posts that repeat what has already been said/don't make sense. Only 7 of those were earned by them)

Is it possible to find that out via the UI? If that's not the case I think the only thing we can do is to increase the treshold.

Unfortunately not.

taking a break - expect delayed responses
hatshepsut93
Legendary
*
Offline Offline

Activity: 2940
Merit: 2144



View Profile
January 16, 2019, 10:15:00 PM
Merited by DarkStar_ (4)
 #19


Is it possible to find that out via the UI? If that's not the case I think the only thing we can do is to increase the treshold.

Here's my attempt at this: https://gist.github.com/Tiramisu77/155f1e076c58728efc06131c7226baee

The results are not guaranteed to be always correct, because the function assumes that the user has maxed up their activity throughout the period between today and the day merit system went live, it also assumes that Legendaries rank-up at 902 activity (in reality it's random between 775 and 1030).

Also, I couldn't find the exact date when merit system went live, so I used Jan 24, 2018, please correct me if I'm wrong.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18504


View Profile
January 16, 2019, 10:28:44 PM
 #20

I am in two minds about this.

On one hand, the spam problem is huge. The majority of topics, and even some entire boards, are unreadable due to bounty spam. I don't blame anyone who wants to try to hide all this nonsense for either an easier forum experience or simply their own sanity, and good work from OP to create this script.

On the other hand, everyone has to start somewhere. While the majority of bounty spammers will be bounty spammers for life, there are undoubtedly a small number who will mature over their time in the forum and become useful contributors. They will never achieve that if senior members are ignoring all their posts, not responding to their questions, and not involving them in discussions. By ignoring them all, we'll also be preventing the few good ones from earning any merit.

As I said, I have no issues with people who want to use this, but it feels too much like newbie jail for me.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!