練炭ブログ

萌え壁紙、Irvine、DMonkey、Proxomitron などの情報を扱ってます。

Proxomitron: Google 検索関係フィルタ

コメントなし»

GoogleImageLink.js

  • 簡易形式が動作しなくなっていたのを修正。
  • 標準形式は動作未確認(多分ダメではないかと……)。

User-Agent: Google as obsolete browser

  • 新規作成。Google 検索へのアクセス時に非対応ブラウザ(IE7)を詐称する。

Google Ad Killer for obsolete browser

  • 新規作成。余計なものを削除。

添付ファイル:google_20120312.zip

Proxomitron: Google Ad Killer

コメントなし»

プレビューがとんでもなく邪魔で目障りなった記念。広告消し系フィルタは普段は出してませんが誰かの役に立つかも知れないので貼っておきます。

[Patterns]
Name = "Google Ad Killer  (2011-10-12; rentan)"
Active = TRUE
URL = "www.google.co(m|.jp)/search\?$TYPE(htm)"
Limit = 50000
Match = "($NEST(<span,(\sstyle=$AV(*))+ id=$AV(taw)*,</span>)"
        "|$NEST(<div,\sid=$AV(bottomads|rhscol)*,</div>)"
        ")$SET(#=<!-- Google Ad killed -->)"
        "|"
        "(<button\sclass=$AV(esw\seswd)*</button>"
        "|$NEST(<div,\sclass=$AV(esc)*,</div>)"
        ")$SET(#=<!-- Google+1 killed -->)"
        "|"
        "(<style\sid=$AV(gstyle)>)\#$SET(#="
        "/* shrink search result */"
        "div#appbar { height: 28px !important; }"
        "div#ab_name { top: 4px !important; }"
        "div#resultStats { top: 6px !important; }"
        "/* hide preview */"
        ".vspib { display: none !important; }"
        "#center_col, #foot, #ires, #res { margin-right: 0px !important }"
        "#center_col, #foot { width: 80% !important }"
        "#cnt, .s, .mw { max-width: none !important }"
        ")"
Replace = "\@"

参考:【速報】Google検索が改悪

Proxomitron: YouTube Ad Killer

コメントなし»

ついでに YouTube の広告消し。

今までも汎用のフィルタで消せてたけど、外側の <div> が残って空白の領域ができてしまったり、[Ad] の文字が表示されたりするので、綺麗に消えるよう専用で作ってみました。

Name = "YouTube Ad Killer  (2010-07-05; rentan)"
Active = TRUE
URL = "www.youtube.com/$TYPE(htm)"
Limit = 5000
Match = "(<script\s*</script>&&*PYV_GOOGLE_AD_SV_LABEL*)|"
        "$NEST(<div,(\sclass=$AV(*))+"
        "\sid=$AV(ad_creative_*|watch-channel-brand-div|homepage-chrome-side-promo)"
        "*,</div>)"
Replace = "<!-- Ad killed -->"

動画内広告(下端に表示されるテロップ)は [^/]++.doubleclick.net/\k する方向で。