Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social buttons blocked by AdBlock Plus - suggest to make all class names configurable #238

Open
yamelkaya opened this issue Dec 11, 2019 · 0 comments

Comments

@yamelkaya
Copy link

We try to avoid blocking social share buttons by ad blockers and rename all jssocial classes. Almost all possible to change with .setDefaults(cssDefaults); but this piece of code has hardcoded class prefix:

_renderShare: function(share) {
            var $share;

            if($.isFunction(share.renderer)) {
                $share = $(share.renderer());
            } else {
                $share = this._createShare(share);
            }

            $share.addClass(this.shareClass)
                .addClass(share.share ? "jssocials-share-" + share.share : "")
                .addClass(share.css)
                .appendTo(this._$shares);
        },

I suggest to make this prefix configurable also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant