【问题标题】:Adblockers hiding a CSS class that's not an ad隐藏不是广告的 CSS 类的广告拦截器
【发布时间】:2016-08-22 08:08:31
【问题描述】:

我有几个网站访问者报告缺少一些文本。原来他们安装了广告拦截器,并且缺少的文本链接到发布带有自定义 CSS 类名称的推文。以下是消失的示例:

<a href="https://twitter.com/intent/tweet?text=xxxx&amp;url=http%3A%2F%2Fxxxx" class="tweet_quote">The text that disappears.</a>

这是 tweet_quote 类的定义:

.tweet_quote {
    color: black;
    text-decoration: none;
    background-image: url(images/Twitter_logo_blue_32.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 20px 20px;
    transition: .2s;
    padding-right: 20px;
}
.tweet_quote:hover {
    color: white !important;
    background-color: #56aeec;
    background-image: url(images/Twitter_logo_white_32.png);
}

Twitter_logo png 也被广告拦截器拦截。实际页面地址为https://skeptoid.com/episodes/4516

有人看到里面有什么东西可能会触发广告拦截器吗?

【问题讨论】:

    标签: html css twitter adblock


    【解决方案1】:

    广告块通常也会屏蔽跟踪小部件,大多数社交媒体共享工具栏都是这样。

    tweet 在类名中可能会导致问题。

    【讨论】:

    • Tweet 大概就是这样。使用嵌入式 Twitter 和 Facebook 帖子的几个不同站点存在此问题。不过,这取决于广告拦截器使用的订阅,因为并非所有人都认为推文是不受欢迎的。
    • 太好了,谢谢。我会把它改成不那么可疑的东西。
    猜你喜欢
    • 2016-10-14
    • 1970-01-01
    • 2018-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-16
    相关资源
    最近更新 更多