Adblock Plus阻止了我的社交媒体链接 [英] Adblock Plus is blocking my social media links

查看:81
本文介绍了Adblock Plus阻止了我的社交媒体链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome中启用Adblock Plus时,我的Facebook和Twitter图像/链接未显示.当您将鼠标悬停在图像上时,我删除了标题,它们不再被屏蔽.有没有一种方法可以保留标题而不用Adblock Plus阻止标题?

My Facebook and Twitter images/links are not displaying when Adblock Plus is enabled in Chrome. I removed the titles for when you hover over the images, and they were no longer blocked. Is there a way I can keep the titles without Adblock Plus blocking them?

这就是他们被封锁时的状态:

Here's what I have when they're blocked:

  <div class="row mar20">
    <div class="col-xs-6">
      <div class="img-responsive">
        <a href="https://facebook.com/RiskyBeeGame" title="Facebook">
          <img src=WebF.png class="pull-right">
        </a>
      </div>
    </div>

    <div class="col-xs-6">
      <div class="img-responsive">
        <a href="https://twitter.com/riskybeegame" title="Twitter">
          <img src=WebT.png>
        </a>
      </div>
    </div>

推荐答案

Adblockers会根据元素的属性来阻止页面元素.如您所见,元素ID,类,标题等都可以用来过滤不需要的"页面元素.

Adblockers block page elements based on the properties of the element. As you discovered, element id's, classes, titles, etc. can all be used to filter 'unwanted' page elements.

听起来您已经想出了如何通过删除链接标题来逃避标准检测的方法.

It sounds like you've already figured out how to evade the standard detection by removing the title of the link.

不清楚为什么要保留标题标签.

It's not clear why you want to keep the title tag.

如果您对弹出工具提示感兴趣-最好的选择是使用数百个Jquery工具提示脚本之一.

If you're interested in the popup tooltip -- your best bet is to use one of hundreds of Jquery tooltip scripts.

如果由于页面上有其他脚本挂接到title属性而需要title标签,则可以在加载时动态添加title属性:

If you need the title tags because of some other script on your page which hooks into the title attribute, you can add the title attribute dynamically onload:

document.getElementById('mytwitterlink').setAttribute('title','Twitter');

可能会或可能不会通过广告拦截器,具体取决于广告拦截器...

That may or may not get past the adblocker, depending on the adblocker...

您最好的选择是更改所有查找标题属性"Twitter"的脚本,然后更改它们以查找其他内容...

Your best bet would really be to alter any scripts that look for the title attribute "Twitter" and change them to look for something else...

这篇关于Adblock Plus阻止了我的社交媒体链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆