![]() |
Gallery/ついっぷるの広告除去最終更新: 2015-03-10 (火) 10:46:50 (3191d) |
ついっぷるの広告が気になったので除去。
[Patterns] Name = "smart twipple" Active = TRUE URL = "twipple.jp/(^unlogin)" Limit = 10000 Match = "<!--[%e2][%96][%bc][%e5][%ba][%83][%e5][%91][%8a]*<!--[%e2][%96][%b2][%e5][%ba][%83][%e5][%91][%8a][^>]+>" "|<link rel="stylesheet" rev="stylesheet" href="common/css/header.css[^>]+>" "|$NEST(<div, id="titleArea">*,</div>)" "|<div id="headerBox">$INEST(<div id="headerTitleBox",</div>)</div>" "|<div class="naviLine"></div>" "|<!--[%e2][%96][%bc][%e2][%96][%bc][%e5][%ba][%83][%e5][%91][%8a][%e3][%82][%a8][%e3][%83][%aa][%e3][%82][%a2][%e2][%96][%bc][%e2][%96][%bc]-->*<!--[%e2][%96][%b2][%e2][%96][%b2][%e5][%ba][%83][%e5][%91][%8a][%e3][%82][%a8][%e3][%83][%aa][%e3][%82][%a2][%e2][%96][%b2][%e2][%96][%b2]-->" "|<script type="text/javascript" src="./js/twipple.TieupNotification.js[^>]+></script>" "|<script type="text/javascript" src="http://keywordlink.xlisting.jp[^>]+></script>|<!-- Rakuten Widget FROM HERE -->*<!-- Rakuten Widget TO HERE -->" "|<div id="externalLink" class="yPulldownBox">$INEST(<div class="yPulldownInBox,</div>)</div>" "|<span id="info"></span>" "|<a href="http://twitter.com" target="_blank"><img src="common/images/twitter-bird-blue-on-white.png" width="30px" height="30px" /></a>" "|<li class="tweetAreaButtonSwitch twipplemode"><a id="postFacebook"*</li>" "|<script[^>]++show\_ads.js"> </script>" "|<script[^>]++><!-- google\_ad\_client*</script>" "|<ul id="draftAreaButton">*</ul>" "|<li class="wcupmode ">*</li>" "|<div class="advertisement*</div>"
ついっぷるトレンドのページを元ネタページへリダイレクト。 タダ乗りしつつ広告を載せているのが気に入らないのでサクっとスキップ。
[Patterns] Name = "twipple trend auto redirect" Active = TRUE URL = "tr.twipple.jp/" Limit = 1000 Match = "<a href="http://twitter.com/\0>" Replace = "<a><meta http-equiv="Refresh" content="0;URL=http://twitter.com/\0">/k"
Twitterアカウントへのリンクをついっぷるアカウントへのリンクへ置換
[Patterns] Name = "Twitter to twipple." Active = TRUE URL = "(^twipple.jp/)" Bounds = "<a\s*>" Limit = 1024 Match = "\0\shref="(jump.php\?|)http(s|)://twitter.com/(#!/|)([^/]+)\5(^*(/photo/))/+\6" Replace = "\0 href="http://twipple.jp/user/\5\6"