Bitcoin Forum
October 18, 2019, 12:41:25 AM *
News: 10th anniversary art contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Browser Addon That Helps You Ignore Spammy Comments  (Read 461 times)
CapnSparrow
Jr. Member
*
Offline Offline

Activity: 39
Merit: 27


View Profile
January 16, 2019, 06:21:06 PM
Last edit: January 16, 2019, 08:15:39 PM by CapnSparrow
Merited by suchmoon (7), DarkStar_ (4), bones261 (3), LoyceV (2), o_e_l_e_o (2), ETFbitcoin (1), 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.
1571359285
Hero Member
*
Offline Offline

Posts: 1571359285

View Profile Personal Message (Offline)

Ignore
1571359285
Reply with quote  #2

1571359285
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1571359285
Hero Member
*
Offline Offline

Posts: 1571359285

View Profile Personal Message (Offline)

Ignore
1571359285
Reply with quote  #2

1571359285
Report to moderator
1571359285
Hero Member
*
Offline Offline

Posts: 1571359285

View Profile Personal Message (Offline)

Ignore
1571359285
Reply with quote  #2

1571359285
Report to moderator
DarkStar_
Legendary
*
Online Online

Activity: 1484
Merit: 2038


https://bitcoin.watfordfc.com


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.

suchmoon
Legendary
*
Offline Offline

Activity: 2100
Merit: 4097


Pedal-powered plaguebot


View Profile
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
Jr. Member
*
Offline Offline

Activity: 39
Merit: 27


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

Your link is broken.

Fixed, thanks.
ETFbitcoin
Legendary
*
Offline Offline

Activity: 1792
Merit: 2053

Use SegWit and enjoy lower fees.


View Profile WWW
January 16, 2019, 07:14:31 PM
 #5

I just tried it and it works well. Few suggestion,
1. just like DarkStar_ said, collapse spam post would be great
2. Add user whitelist option. Few popular member such as suchmoon got blocked by your script Cheesy

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

Perhaps OP want cleaner code or develop it faster

suchmoon
Legendary
*
Offline Offline

Activity: 2100
Merit: 4097


Pedal-powered plaguebot


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

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

LOL

Serves me right for promoting an ICO.

jackg
Copper Member
Legendary
*
Online Online

Activity: 1526
Merit: 1320


https://bit.ly/2FR9nyn - free python tutorials


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

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: 2100
Merit: 4097


Pedal-powered plaguebot


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

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
Hero Member
*****
Offline Offline

Activity: 1302
Merit: 889


Bitcoin realist


View Profile
January 16, 2019, 08:15:52 PM
Last edit: January 16, 2019, 08:32:47 PM by hatshepsut93
 #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.

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.

DarkStar_
Legendary
*
Online Online

Activity: 1484
Merit: 2038


https://bitcoin.watfordfc.com


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

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

CapnSparrow
Jr. Member
*
Offline Offline

Activity: 39
Merit: 27


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

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
Hero Member
*****
Offline Offline

Activity: 1302
Merit: 889


Bitcoin realist


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

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.

CapnSparrow
Jr. Member
*
Offline Offline

Activity: 39
Merit: 27


View Profile
January 16, 2019, 08:39:16 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?
DarkStar_
Legendary
*
Online Online

Activity: 1484
Merit: 2038


https://bitcoin.watfordfc.com


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

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)

mikeywith
Hero Member
*****
Online Online

Activity: 560
Merit: 1328


be constructive or S.T.F.U


View Profile
January 16, 2019, 08:45:34 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.

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.

DarkStar_
Legendary
*
Online Online

Activity: 1484
Merit: 2038


https://bitcoin.watfordfc.com


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

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)

CapnSparrow
Jr. Member
*
Offline Offline

Activity: 39
Merit: 27


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

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
Hero Member
*****
Online Online

Activity: 560
Merit: 1328


be constructive or S.T.F.U


View Profile
January 16, 2019, 09:21:05 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.


DarkStar_
Legendary
*
Online Online

Activity: 1484
Merit: 2038


https://bitcoin.watfordfc.com


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


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.

hatshepsut93
Hero Member
*****
Offline Offline

Activity: 1302
Merit: 889


Bitcoin realist


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


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.

Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!