首页 开发者工具 rabbithole

rabbithole

用户数 : 55 分类 : 开发者工具 扩展大小 : 52.45KiB 最后更新时间 : 2017-05-02 版本 : 1.0.1
                            As a publisher on the web today, you may have a love-hate relationship with ad networks.  On one hand, those ad networks help to pay the bills.  But on the other hand, their questionable coding abilities, poor security, and dubious business practices expose you to all sorts of problems.

Our team has spent countless hours dissecting the DOM to try to track down offending ads.  This is tedious work, especially when an ad call gets bounced from network to network, creating an extremely complex DOM of nested IFRAMEs.

rabbithole is designed to streamline this process.  Using a CSS selector provided by you, it identifies the top-level DOM elements for your ad units.  It then recursively descends those elements, building a simpler object model for you to analyze.

* simplifies the identification and interpretation of the ad-related portion of the DOM
* "compresses" the tree by skipping past DOM elements that aren't really important and only tracking select properties
* makes off-site objects easily identifiable
* tries to identify pixel trackers
* tries to identify the DOM elements that are most likely the ad creative itself
* attempts to keep track of a "network path" so you can see the whole ad chain where ads are coming from; this is a work in progress
* computes statistics like the number of scripts and iframes loaded beneath each node in the tree

In order for rabbithole to work with your site, you need to give it a CSS selector that will capture all the top-level DOM elements of your ad units (and is specific enough to *not* capture non-ad-unit elements).

For example, if you look at the ad tags on http://slashdot.org/, you will see that they all have IDs like "div-gpt-ad-728x90_a" and "div-gpt-ad-300x250_a".  You can capture them all with a selector like

    [id*='div-gpt-ad']

Once you have your selector, use the options dialog to configure rabbithole.  You can open it either from the extensions page in chrome, or by clicking on the gear icon in the rabbithole popup window.  If you have a rabbithole window open when you change the CSS selector, you'll need to close rabbithole and reopen it to get it to rescan your page's DOM.

Source: https://github.com/jpriebe/rabbithole
                        
查看更多
下载 如何离线安装? Chrome store

分享

全部评论

    展开更多评论

    错误提示保存失败
    成功提示保存成功
    close
    qr-code

    为打击盗链困扰,本站已启用公众号验证
    微信扫码关注上方公众号,回复“插件”二字获得验证码,验证码5分钟内全站有效。

    正在验证
    验证成功
    下载遇到问题?请添加QQ群:398095333
    close
    qr-code

    为打击盗链困扰,本站已启用公众号验证
    微信扫码关注上方公众号,回复“脚本”二字获得验证码,验证码5分钟内全站有效。

    正在验证
    验证成功