grue (OP)
Legendary
Offline
Activity: 2058
Merit: 1434
|
Signature advertisements have gotten more and more "creative" and annoying over the past few years. Unlike forum banner ads, they can't be hidden and can show up multiple times per page so they can significantly clutter up each topic. Blocking them with ABP is futile because the filters are limited to blocking a particular user's signature. To address this problem, I have developed a script that detects "annoying" signatures and blocks them. It doesn't use a blacklist, but rather a scoring system for each signature. If the score exceeds a certain threshold, the signature is hidden. Preliminarily testing shows that most signature advertisements are blocked (exceptions are ads with little formatting). Screenshot: (note how only the annoying ads in the first 3 signatures are blocked, but the tame signature at the bottom is untouched) ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FDFqT3Fd.png&t=665&c=ut0egi6QzS7uLA) Download (updated 2018-03-13; reason: changed host to github.com): UserscriptSignatureAdblock.user.js (0.5.1) Installation: Firefox extensionhttps://addons.mozilla.org/en-US/firefox/addon/bitcointalk-signature-adblock/Works for mobile and desktop versions, but only recommended for mobile. Dekstop users should use the userscript.
|
|
|
|
cazkooo
Legendary
Offline
Activity: 1540
Merit: 1013
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 03:48:28 PM |
|
Interesting, how do you score the signature? does it according to the post of that person made? tame signatures means a signature with less characters? doesnt this means lower rank signature like mine will be visible? there are tons of low rank that spam the most on forum
|
|
|
|
izanagi narukami
Legendary
Offline
Activity: 2030
Merit: 1028
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:03:59 PM |
|
I just installed it and it works ![Shocked](https://bitcointalk.org/Smileys/default/shocked.gif) My current signature vanish but my upper post before ( using rollin.io member's signature ) still exist
|
|
|
|
Lauda
Legendary
Offline
Activity: 2674
Merit: 2965
Terminated.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:19:48 PM |
|
We've been asking for it, and we've received it. Even though this might not be the permanent solution that we've been looking for, it's a great temporary one. Great work grue. However, was there not a option to disable all signatures?
|
"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" 😼 Bitcoin Core ( onion)
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2227
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:25:15 PM |
|
We've been asking for it, and we've received it. Even though this might not be the permanent solution that we've been looking for, it's a great temporary one. Great work grue. However, was there not a option to disable all signatures?
Yes there is, but, that's would disable all signatures and there are more than enough people who don't want that, including me. I want to see signatures, just not the annoying flashy ones. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
kcud_dab
Legendary
Offline
Activity: 1652
Merit: 1000
Bitcoin enthusiast!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:34:24 PM |
|
However, was there not a option to disable all signatures?
Even If I'm sure you already know this: "Profile" -> "Look and Layout Preferences" -> "Don't show users' signatures."
|
|
|
|
grue (OP)
Legendary
Offline
Activity: 2058
Merit: 1434
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:36:12 PM |
|
Interesting, how do you score the signature? does it according to the post of that person made? tame signatures means a signature with less characters? doesnt this means lower rank signature like mine will be visible? there are tons of low rank that spam the most on forum
The scoring system is composed of two parts: a formatting score, and a character annoyingness score. Formatting score is calculated based on the amount of area that uses annoying formatting. Different types of formatting increases the score at different rates. So using bold text will increase the score less than using glow. A signature that uses no formatting will always have a formatting score of 0. Character annoyingness score is calculated from the occurrences of certain characters (ie. ▓). I just installed it and it works ![Shocked](https://bitcointalk.org/Smileys/default/shocked.gif) My current signature vanish but my upper post before ( using rollin.io member's signature ) still exist In the future I might add additional character analysis to catch ascii art that doesn't use formatting.
|
|
|
|
ndnh
Legendary
Offline
Activity: 1302
Merit: 1005
New Decentralized Nuclear Hobbit
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:39:09 PM Last edit: March 26, 2015, 05:12:50 PM by ndnhc |
|
However, was there not a option to disable all signatures?
Even If I'm sure you already know this : "Profile" -> "Look and Layout Preferences" -> "Don't show users' signatures." Another option is to install adblock and simply right click -> Adblock -> Block this ad. Edit: Tried to block 1 signature... It blocked everything! ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fi.gyazo.com%2Fbdecc843a067b4481c5b4dbc4d58631a.png&t=665&c=mCQUkxuXgJSFbg) Edit2: Okay, the profile one is better..
|
|
|
|
kcud_dab
Legendary
Offline
Activity: 1652
Merit: 1000
Bitcoin enthusiast!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 04:53:44 PM |
|
Sure, if you don't know what your are doing and ignoring all "span" tags on the forum you won't be able to see many things... Anyway if you really want to use AdBlock try to ignore "div" tags with "signature" class (don't ask me how, I don't use this software), but there isn't any advantages of using adblock to ignore signatures here over the option made for this in your profile settings unless you want to waste some cpu cycles and use more memory.
|
|
|
|
Lauda
Legendary
Offline
Activity: 2674
Merit: 2965
Terminated.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 05:09:54 PM |
|
We've been asking for it, and we've received it. Even though this might not be the permanent solution that we've been looking for, it's a great temporary one. Great work grue. However, was there not a option to disable all signatures?
Yes there is, but, that's would disable all signatures and there are more than enough people who don't want that, including me. I want to see signatures, just not the annoying flashy ones. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) Ah yes, I wasn't even sure that the feature was there. I guess it must have slipped my mind. Indeed there are some signatures that have provided useful links to me in the past. Removing all of them isn't something that I'd want either. Even If I'm sure you already know this: "Profile" -> "Look and Layout Preferences" -> "Don't show users' signatures."
Yeah, I was just making sure.
|
"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks" 😼 Bitcoin Core ( onion)
|
|
|
cakir
Legendary
Offline
Activity: 1274
Merit: 1000
★ BitClave ICO: 15/09/17 ★
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 05:39:20 PM |
|
I don't trust your js code. It's non human readable.
Share original source code.
|
|
|
|
| ,'#██+: ,█████████████' +██████████████████ ;██████████████████████ ███████: .███████` ██████ ;█████' `█████ #████# ████+ `████+ ████: ████, ████: .# █ ████ ;███+ ██ ███ ████ ████ ███' ███. '███, +███ #████ ,████ ████ ████ █████ .+██████: █████+ `███. ,███ ███████████████████████ ████ ████ ███████████████████████' :███ ███: +████████████████████████ ███` ███ █████████████████████████` ███+ ,███ ██████████████████████████ #███ '███ '██████████████████████████ ;███ #███ ███████████████████████████ ,███ ████ ███████████████████████████. .███ ████ ███████████████████████████' .███ +███ ███████████████████████████+ :███ :███ ███████████████████████████' +███ ███ ███████████████████████████. ███# ███. #██████████████████████████ ███, ████ █████████████████████████+ `███ '███ '████████████████████████ ████ ███; ███████████████████████ ███; ████ #████████████████████ ████ ███# .██████████████████ `███+ ████` ;██████████████ ████ ████ '███████#. ████. .████ █████ '████ █████ #████' █████ +█████` ██████ ,██████: `███████ ████████#;,..:+████████. ,███████████████████+ .███████████████; `+███████#,
| |
|
|
|
Hazir
Legendary
Offline
Activity: 1596
Merit: 1005
★Nitrogensports.eu★
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 05:45:41 PM |
|
I won't install it and I do not want any signature blocked because I feel that I will lose some insight with them blocked. But it is a great option for all signature campaign haters, they will have an ad free forum... But I guess they will be still complaining...
|
|
|
|
kcud_dab
Legendary
Offline
Activity: 1652
Merit: 1000
Bitcoin enthusiast!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 05:46:08 PM |
|
I don't trust your js code. It's non human readable.
Share original source code.
Non humain readable ? // ==UserScript== // @name bitcointalk adblock // @namespace grue // @include https://bitcointalk.org/index.php?topic=* // @require http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.3.min.js // @grant none // @version 0.2.0 // @downloadURL https://bitcointalk.blob.core.windows.net/scripts/bct_adblock.user.js // @updateURL https://bitcointalk.blob.core.windows.net/scripts/bct_adblock.meta.js // ==/UserScript== function e(e) { for (var t = e.charCodeAt(), r = [ [9472, 9583], [9600, 9631], [9632, 9727] ], n = 0; n < r.length; n++) if (t > r[n][0] && t <= r[n][1]) return !0; return !1 }
function t(r) { var n = Array.prototype.slice.call(r.childNodes), o = n.reduce(function(r, n) { if ($(n).attr("skip")) return r; if (1 == n.nodeType) return r + t(n); if (3 == n.nodeType) { var o = 0; for (c of n.nodeValue) e(c) && o++; var i = Number(getComputedStyle(n.parentNode).fontSize.match(/(\d*(\.\d*)?)px/)[1]); return r + i * i * o } return r }, 0); return o }
function r(e) { var t = 0; return e.backgroundcolor ? 1 : (e.fontsize >= 14 && (t += .05 + Math.max(0, .02 * (e.fontsize - 14))), e.color && (t += .2), e.font && (t += .03), e.underline && (t += .05), e.bold && (t += .05), e.table && (t += .2), Math.min(t, 1)) }
function n(e, t) { var o = t; "undefined" == typeof t ? o = t = {} : t = $.extend({}, t); var i = Array.prototype.slice.call(e.childNodes); e.style["font-size"] && "inherit" != e.style["font-size"] && (t.fontsize = Number(e.style["font-size"].match(/(\d+)pt/)[1])), e.style.color && "inherit" != e.style.color && (t.color = !0), e.style["background-color"] && "inherit" != e.style["background-color"] && (t.backgroundcolor = !0), e.style["font-family"] && "inherit" != e.style["font-family"] && (t.font = !0), -1 != e.style["text-decoration"].indexOf("underline") && (t.underline = !0), "B" == e.tagName && (t.bold = !0), "TABLE" == e.tagName && (t.table = !0); var a = $(e).width() * $(e).height() * r(t) - $(e).width() * $(e).height() * r(o); return a += i.reduce(function(e, r) { return 1 == r.nodeType ? e + n(r, t) : e }, 0) }
function o(e) { var r = 0; return r += t(e), r += n(e), r = Math.sqrt(r), $(e).find("a").length && (r *= 2), r > 100 } for (var i = $("div .signature"), a = 0; a < i.length; a++) o(i[a]) && $(i[a]).attr("style", "opacity: 0; pointer-events: none"); If you cannot read this, original source code wont change anything!
|
|
|
|
redsn0w
Legendary
Offline
Activity: 1778
Merit: 1043
#Free market
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 05:49:31 PM |
|
I won't install it and I do not want any signature blocked because I feel that I will lose some insight with them blocked. But it is a great option for all signature campaign haters, they will have an ad free forum... But I guess they will be still complaining...
Yes of course, you are right. They will complain again and again for the post itself (I think everyone should participate to the forum activity, but he should add a constructive concept to the thread). However thanks for the script @grue, I will 'install' and execute it when I will return to my home.
Maybe this script may be integrated to the forum without the use of an addon or extension, what do you think?
|
|
|
|
arallmuus
Legendary
Offline
Activity: 2646
Merit: 1422
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 06:11:11 PM |
|
The scoring system is composed of two parts: a formatting score, and a character annoyingness score. Formatting score is calculated based on the amount of area that uses annoying formatting. Different types of formatting increases the score at different rates. So using bold text will increase the score less than using glow. A signature that uses no formatting will always have a formatting score of 0. Character annoyingness score is calculated from the occurrences of certain characters (ie. ▓).
Does this means that Higher rank signature will be block completely and lower rank signature will still be visible? Mind if I am asking how is this different from the options on our profile to completely block the signatures from other user?
|
R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | │ | CRYPTO FUTURES | | | | | | | │ | 1,000x LEVERAGE | │ | COMPETITIVE FEES | │ | INSTANT EXECUTION | │ | . TRADE NOW |
|
|
|
Mitchell
Legendary
Offline
Activity: 4032
Merit: 2227
Verified awesomeness ✔
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 06:14:05 PM |
|
Does this means that Higher rank signature will be block completely and lower rank signature will still be visible? Mind if I am asking how is this different from the options on our profile to completely block the signatures from other user?
Read the thread and you would have known that both of your questions have already been answered. Yes, you could block all signatures, but that isn't always what you want. And yes, low formatted signatures will still show. We've been asking for it, and we've received it. Even though this might not be the permanent solution that we've been looking for, it's a great temporary one. Great work grue. However, was there not a option to disable all signatures? Yes there is, but, that's would disable all signatures and there are more than enough people who don't want that, including me. I want to see signatures, just not the annoying flashy ones. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
arallmuus
Legendary
Offline
Activity: 2646
Merit: 1422
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 06:25:41 PM |
|
Does this means that Higher rank signature will be block completely and lower rank signature will still be visible? Mind if I am asking how is this different from the options on our profile to completely block the signatures from other user?
Read the thread and you would have known that both of your questions have already been answered. Yes, you could block all signatures, but that isn't always what you want. And yes, low formatted signatures will still show. Not really since i stumbled to read upon this In the future I might add additional character analysis to catch ascii art that doesn't use formatting.
it seems like grue will upgrade it to block lower rank signatures as well, perhaps in the end signature that will show up is only a simple plain text if we use this addons
|
R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | │ | CRYPTO FUTURES | | | | | | | │ | 1,000x LEVERAGE | │ | COMPETITIVE FEES | │ | INSTANT EXECUTION | │ | . TRADE NOW |
|
|
|
Hazir
Legendary
Offline
Activity: 1596
Merit: 1005
★Nitrogensports.eu★
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 06:32:09 PM |
|
I feel like we are treading on thin ice here. Our forum is so unique and we created system of direct advertising method that is unprecedented and truly "sui generis". Yet you want to destroy that system by creating tools and methods which will disable signatures permanently? Potentially it can bring an end to all signature campaigns.
|
|
|
|
EcuaMobi
Legendary
Offline
Activity: 1876
Merit: 1475
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 07:29:31 PM |
|
I feel like we are treading on thin ice here. Our forum is so unique and we created system of direct advertising method that is unprecedented and truly "sui generis". Yet you want to destroy that system by creating tools and methods which will disable signatures permanently? Potentially it can bring an end to all signature campaigns.
It's true that signature ads are a unique advertising method, but if people abuse it then the overall experience of this forum -which is the face of bitcoin- will decrease significantly. Damaging the quality of the forum is much worse than potentially decreasing the earnings produced by this advertising method. Thank you grue, I've installed the script and it's working great. As said this is a great temporal solution. However we still need to find a way to prevent signature campaigns from reducing the quality of the posts so much. Personally that bothers me much more than actually seeing the ads.
|
|
|
|
SaltySpitoon
Legendary
Offline
Activity: 2590
Merit: 2156
Welcome to the SaltySpitoon, how Tough are ya?
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
March 26, 2015, 08:01:34 PM |
|
I feel like we are treading on thin ice here. Our forum is so unique and we created system of direct advertising method that is unprecedented and truly "sui generis". Yet you want to destroy that system by creating tools and methods which will disable signatures permanently? Potentially it can bring an end to all signature campaigns.
The forum isn't about advertising, its about discussion. Businesses that advertise in people's signatures have the same right to be here and the same right to be kicked out if they are disruptive. If individuals want to opt out of seeing advertisements they are more than welcome to, and if that brings down paid advertising signatures, then so be it. But I agree, great job grue.
|
|
|
|
|