Pages:
Author

Topic: Signature Adblock Script [0.5.0] - page 7. (Read 37472 times)

legendary
Activity: 1876
Merit: 1475
March 26, 2015, 02:29:31 PM
#19
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.
legendary
Activity: 1596
Merit: 1005
★Nitrogensports.eu★
March 26, 2015, 01:32:09 PM
#18
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.
legendary
Activity: 2562
Merit: 1414
March 26, 2015, 01:25:41 PM
#17
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
copper member
Activity: 3948
Merit: 2201
Verified awesomeness ✔
March 26, 2015, 01:14:05 PM
#16
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
legendary
Activity: 2562
Merit: 1414
March 26, 2015, 01:11:11 PM
#15
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?
legendary
Activity: 1778
Merit: 1043
#Free market
March 26, 2015, 12:49:31 PM
#14
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?
legendary
Activity: 1652
Merit: 1002
Bitcoin enthusiast!
March 26, 2015, 12:46:08 PM
#13
I don't trust your js code.
It's non human readable.

Share original source code.
Non humain readable ?

Code:
// ==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!
legendary
Activity: 1596
Merit: 1005
★Nitrogensports.eu★
March 26, 2015, 12:45:41 PM
#12
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...
legendary
Activity: 1274
Merit: 1000
★ BitClave ICO: 15/09/17 ★
March 26, 2015, 12:39:20 PM
#11
I don't trust your js code.
It's non human readable.

Share original source code.
legendary
Activity: 2674
Merit: 2965
Terminated.
March 26, 2015, 12:09:54 PM
#10
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
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.
legendary
Activity: 1652
Merit: 1002
Bitcoin enthusiast!
March 26, 2015, 11:53:44 AM
#9
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.
legendary
Activity: 1302
Merit: 1005
New Decentralized Nuclear Hobbit
March 26, 2015, 11:39:09 AM
#8
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!



Edit2: Okay, the profile one is better..
legendary
Activity: 2058
Merit: 1452
March 26, 2015, 11:36:12 AM
#7
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

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.
legendary
Activity: 1652
Merit: 1002
Bitcoin enthusiast!
March 26, 2015, 11:34:24 AM
#6
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."
copper member
Activity: 3948
Merit: 2201
Verified awesomeness ✔
March 26, 2015, 11:25:15 AM
#5
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
legendary
Activity: 2674
Merit: 2965
Terminated.
March 26, 2015, 11:19:48 AM
#4
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?
legendary
Activity: 2030
Merit: 1028
March 26, 2015, 11:03:59 AM
#3
I just installed it and it works  Shocked

My current signature vanish but my upper post before ( using rollin.io member's signature ) still exist

legendary
Activity: 1540
Merit: 1013
March 26, 2015, 10:48:28 AM
#2
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
legendary
Activity: 2058
Merit: 1452
March 26, 2015, 10:39:26 AM
#1
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)


Download (updated 2018-03-13; reason: changed host to github.com):
Userscript
SignatureAdblock.user.js (0.5.1)
Installation:

Firefox extension
https://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.
Pages:
Jump to: