├── .github └── workflows │ └── adblock.yml ├── README.md ├── ad-edentw.txt ├── ad-mo.txt ├── ad-pc.txt ├── ad.txt ├── ad2.txt ├── ad3.txt └── mod ├── GeneralBlock.txt ├── TiebaBlock.txt ├── ad-edentw-title.txt ├── ad-mo-title.txt ├── ad-pc-title.txt ├── ad-title.txt ├── ad2-title.txt ├── ad3-title.txt └── addChecksum.pl /.github/workflows/adblock.yml: -------------------------------------------------------------------------------- 1 | name: Build adblock rules files 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: 0 0 * * 1 7 | 8 | jobs: 9 | build: 10 | name: Build 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Setup Go 1.x 14 | uses: actions/setup-go@v5 15 | with: 16 | go-version: "^1.22" 17 | 18 | - name: Set $GOPATH and more variables 19 | run: | 20 | echo "RELEASE_NAME=Released on $(date -d "8 hour" -u +%Y%m%d%H%M)" >> $GITHUB_ENV 21 | echo "TAG_NAME=$(date -d "8 hour" -u +%Y%m%d%H%M)" >> $GITHUB_ENV 22 | echo "MODIFIED_TIME=$(date -d "8 hour" -u "+%Y年%m月%d日 %H:%M")" >> $GITHUB_ENV 23 | echo "EASYLIST_URL=https://easylist-downloads.adblockplus.org/easylist.txt" >> $GITHUB_ENV 24 | echo "EASYLISTCHINA_URL=https://easylist-downloads.adblockplus.org/easylistchina.txt" >> $GITHUB_ENV 25 | echo "EASYPRIVACY_URL=https://easylist-downloads.adblockplus.org/easyprivacy.txt" >> $GITHUB_ENV 26 | echo "CJXLIST_URL=https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjxlist.txt" >> $GITHUB_ENV 27 | echo "CJX_ANNOYANCE_URL=https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt" >> $GITHUB_ENV 28 | echo "ANTI_ADBLOCK_KILLER_FILTERS_URL=https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt" >> $GITHUB_ENV 29 | echo "ANTIADBLOCKFILTERS_URL=https://easylist-downloads.adblockplus.org/antiadblockfilters.txt" >> $GITHUB_ENV 30 | echo "ABP_FILTERS_ANTI_CV_URL=https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt" >> $GITHUB_ENV 31 | echo "XINGGSF_MV_URL=https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt" >> $GITHUB_ENV 32 | echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV 33 | echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH 34 | shell: bash 35 | 36 | - name: Checkout the "master" branch 37 | uses: actions/checkout@v4 38 | with: 39 | ref: master 40 | 41 | - name: Get every files 42 | id: download 43 | run: | 44 | mkdir -p ./download/ 45 | cd ./download 46 | curl -sSL $EASYLIST_URL | sed -e '/^! /d' -e '1c ! EasyList' -e '/^!$/d' -e '/The End/d' -e '/^$/d' > ./easylist.txt 47 | curl -sSL $EASYLISTCHINA_URL | sed -e '/^! /d' -e '1c ! EasyList China' -e '/^!$/d' -e '/The End/d' -e '/^$/d' > ./easylistchina.txt 48 | curl -sSL $EASYPRIVACY_URL | sed -e '/^! /d' -e '1c ! EasyPrivacy' -e '/^!$/d' > ./easyprivacy.txt 49 | curl -sSL $CJXLIST_URL | sed -e '/^! /d' -e '1c ! EasyList Lite' -e '/^!$/d' -e '/The End/d' -e '/^$/d' > ./cjxlist.txt 50 | curl -sSL $CJX_ANNOYANCE_URL | sed -e '/^! /d' -e "1c ! CJX's Annoyance List" -e '/^!$/d' -e '/The End/d' -e '/^$/d' | sed '/热门话题/,+1d' > ./cjx-annoyance.txt 51 | sed -i '/!#include cjx-ublock.txt/c !#include https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-ublock.txt' ./cjx-annoyance.txt 52 | curl -sSL $XINGGSF_MV_URL | sed -e '/^! /d' -e '1c ! 乘风 视频广告过滤规则' -e '/^!$/d' -e '/^$/d' > ./xinggsf-mv.txt 53 | curl -sSL $ANTIADBLOCKFILTERS_URL | sed -e '1c ! Adblock Warning Removal List' -e '/^! Checksum/,/! Please check our guidelines/d' -e '/^!$/d' -e '/The End/d' -e '/^$/d' > ./antiadblockfilters.txt 54 | curl -sSL $ABP_FILTERS_ANTI_CV_URL | sed -e '1c ! abp-filters-anti-cv' -e '/^! Checksum/,/adblockplus.org/d' -e '/^!$/d' -e '/The End/d' -e '/^$/d' > ./abp-filters-anti-cv.txt 55 | curl -sSL $ANTI_ADBLOCK_KILLER_FILTERS_URL | sed -e '1c ! AakList (Anti-Adblock Killer)' -e '/^! Title/,/^! RegExpVisualizer/d' -e '/^!$/d' -e '/The End/d' -e '/^$/d' > ./anti-adblock-killer-filters.txt 56 | for i in $(ls *.txt); do 57 | if [[ `cat $i |wc -l` -eq 0 ]]; then 58 | echo "::set-output name=status::failed" 59 | break 60 | else 61 | echo "::set-output name=status::success" 62 | echo "" >> $i 63 | fi 64 | done 65 | 66 | - name: Generate adblock files 67 | if: steps.download.outputs.status == 'success' 68 | run: | 69 | mkdir -p ./new/ 70 | cd ./download 71 | cat ../mod/GeneralBlock.txt ../mod/TiebaBlock.txt easylist.txt easylistchina.txt easyprivacy.txt cjx-annoyance.txt xinggsf-mv.txt > ../new/ad-pc.txt 72 | cat ../mod/GeneralBlock.txt easylist.txt easylistchina.txt easyprivacy.txt cjx-annoyance.txt > ../new/ad-mo.txt 73 | cat ../mod/GeneralBlock.txt ../mod/TiebaBlock.txt xinggsf-mv.txt easylistchina.txt cjxlist.txt cjx-annoyance.txt > ../new/ad.txt 74 | cat xinggsf-mv.txt easylistchina.txt cjxlist.txt cjx-annoyance.txt > ../new/ad2.txt 75 | cat xinggsf-mv.txt easylistchina.txt cjxlist.txt cjx-annoyance.txt easyprivacy.txt > ../new/ad3.txt 76 | cat antiadblockfilters.txt abp-filters-anti-cv.txt anti-adblock-killer-filters.txt > ../new/ad-edentw.txt 77 | for i in $(ls ../new/*.txt); do 78 | sed -i '/^$/d' $i 79 | done 80 | 81 | - name: Diff and addChecksum 82 | id: diffResult 83 | if: steps.download.outputs.status == 'success' 84 | run: | 85 | mkdir -p ./old_no_title/ 86 | chmod +x ./mod/addChecksum.pl 87 | for i in $(ls ad*.txt); do 88 | sed '1,/^!$/d' $i > ./old_no_title/$i 89 | done 90 | diffFile="$(diff -q new/ old_no_title/ |grep -o '[a-zA-Z0-9-]\+.txt' |sort -u)" 91 | if [ -n "$diffFile" ]; then 92 | for i in $diffFile ; do 93 | titleName=$(echo "$i" |sed 's#.txt#-title.txt#') 94 | cat ./mod/$titleName ./new/$i > ./$i 95 | sed -i -e "s#201412030951#$TAG_NAME#" -e "s#201412030952#$MODIFIED_TIME#" ./$i 96 | perl ./mod/addChecksum.pl ./$i 97 | echo "::set-output name=status::success" 98 | done 99 | else 100 | echo "::set-output name=status::failed" 101 | fi 102 | 103 | - name: Deliver download Dir 104 | uses: actions/upload-artifact@v4 105 | if: steps.download.outputs.status == 'failed' 106 | with: 107 | name: AllFiles 108 | path: | 109 | ./download/ 110 | 111 | - name: Deliver new and old_no_title Di 112 | uses: actions/upload-artifact@v4 113 | if: steps.diffResult.outputs.status == 'failed' 114 | with: 115 | name: AllFiles 116 | path: | 117 | * 118 | !./.git/ 119 | 120 | - name: Git push assets to "master" branch 121 | if: steps.diffResult.outputs.status == 'success' 122 | run: | 123 | rm -rf download new old_no_title 124 | sed -i '/url =/d' ./.git/config 125 | git config --local user.name "actions" 126 | git config --local user.email "action@github.com" 127 | #git config --add core.compression -1 128 | git add --all 129 | git commit -m "${{ env.RELEASE_NAME }}" 130 | git remote set-url --add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" 131 | #git remote set-url --add origin "https://${{ secrets.GITEE_ACCOUNT }}:${{ secrets.GITEE_PASSWORD }}@gitee.com/${{ secrets.GITEE_NAME }}/list.git" 132 | #git remote set-url --add origin "https://${{ secrets.CODING_ACCOUNT }}:${{ secrets.CODING_PASSWORD }}@e.coding.net/${{ secrets.CODING_NAME }}/list.git" 133 | git fetch --unshallow origin 134 | git push -u origin master 135 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## ABP/ublock订阅规则 2 | - ad-pc.txt:[推荐桌面端]合并自乘风视频广告过滤规则、Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance,以及补充的一些规则; 3 | ```html 4 | https://cdn.jsdelivr.net/gh/sbwml/halflife-list@master/ad-pc.txt 5 | ``` 6 | - ad-mo.txt:合并自Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance; 7 | ```html 8 | https://cdn.jsdelivr.net/gh/sbwml/halflife-list@master/ad-mo.txt 9 | ``` 10 | - ad.txt:[推荐移动端]合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance,以及补充的一些规则; 11 | ```html 12 | https://cdn.jsdelivr.net/gh/sbwml/halflife-list@master/ad.txt 13 | ``` 14 | - ad2.txt:合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance; 15 | ```html 16 | https://cdn.jsdelivr.net/gh/sbwml/halflife-list@master/ad2.txt 17 | ``` 18 | - ad3.txt:合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance、EasyPrivacy; 19 | ```html 20 | https://cdn.jsdelivr.net/gh/sbwml/halflife-list@master/ad3.txt 21 | ``` 22 | - ad-edentw.txt:合并自Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters。 23 | ```html 24 | https://cdn.jsdelivr.net/gh/sbwml/halflife-list@master/ad-edentw.txt 25 | ``` 26 | -------------------------------------------------------------------------------- /mod/GeneralBlock.txt: -------------------------------------------------------------------------------- 1 | ! Fix for MS Edge 2 | tieba.baidu.com###pagelet_entertainment-liveshow\/pagelet\/video_head 3 | ! Start 4 | 500px.com###hellobar 5 | bing.com###banner 6 | coding.net##.smart-app-banner 7 | coolapk.com##[style*="position: fixed;bottom: 0"] 8 | engadget.com###ldrBoardAd 9 | gelbooru.com##A[href*="ads="] 10 | github.com##.js-notice 11 | jav777.cc###divExoLayerWrapper 12 | mp.weixin.qq.com###js_pc_qr_code 13 | m.chouti.com##.m_download_box 14 | m.jd.com##.download-pannel 15 | m.jiemian.com###js-b-ad 16 | m.qidian.com###fixBoxs, #read_app_download 17 | news.sina.com.cn##.news_weixin_ercode 18 | yahoo.com###my-adsFPL 19 | yahoo.com##.js-stream-featured-ad 20 | vdisk.weibo.com###ads_layer 21 | weibo.cn##.tips.m-container-max 22 | www.1069gay.net###shortcut 23 | www.15yan.com##.tooltip 24 | www.52tian.net##.adwidewrap 25 | www.acfun.cn###guide-fix 26 | www.douyu.com##.giftbatter-box 27 | www.dwnews.com##.big2-gg 28 | www.freehao123.com##A[href*="/go/"] 29 | www.google.com##.ads-ad 30 | www.hardsextube.com##.right-col.right 31 | www.le.com###full_Column_big 32 | www.le.com###full_Column_small 33 | www.le.com###rightBottomPop 34 | www.lofter.com###appdownloadbanner 35 | www.raybt.com##td[width="13"] 36 | www.yizhibo.com##.register_guide 37 | tumblr.com##.standalone-ad-container 38 | twitter.com##.presented 39 | www.xilinjie.com###xlj-da-block-overlay 40 | xhamster.com##.sponsorBottom 41 | .com/c.gif? 42 | .cn/a.gif? 43 | .cn/b.gif? 44 | .cn/r.gif? 45 | .cn/s.gif? 46 | .cn/z.gif? 47 | .com/pv.gif? 48 | .hk/ad2/ 49 | .hk/groupon/ads/ 50 | ://ads2. 51 | /atrk.js 52 | /googlead.js 53 | /popunder.js 54 | /popunder2.js 55 | /videojs5/*vpaid.min.js$domain=91porn.com|email.91dizhi.at.gmail.com.8h9.space 56 | /fans/*$domain=91porn.com|email.91dizhi.at.gmail.com.8h9.space 57 | /openload.co$third-party,domain=openload.co|oload.tv 58 | |http://*/source/plugin/u179_jtft/ 59 | |https:$popup,domain=openload.co|oload.tv|javno.me 60 | |http:$popup,domain=openload.co|oload.tv 61 | |http:$script,domain=imagebam.com|imagevenue.com|playvid.com|4horlover.com 62 | |http:$subdocument,domain=imagebam.com|playvid.com 63 | |http:$third-party,domain=linkshrink.net 64 | |https:$third-party,domain=linkshrink.net 65 | @@||apis.google.com^$domain=openload.co|oload.tv|javno.me|imagebam.com|imagevenue.com|playvid.com|4horlover.com|linkshrink.net 66 | @@||cdn.bootcss.com^$domain=openload.co|oload.tv|javno.me|imagebam.com|imagevenue.com|playvid.com|4horlover.com|linkshrink.net 67 | @@||googleapis.com^$domain=openload.co|oload.tv|javno.me|imagebam.com|imagevenue.com|playvid.com|4horlover.com|linkshrink.net 68 | !@@||googletagmanager.com/gtm.js$domain=www.nintendo.co.jp 69 | @@/js/ads.$domain=shrinklink.co 70 | ||115.com/static/plug/video_play/qrcode.js 71 | ||ad.directrev.com^$popup 72 | ||ad.mail.ru^ 73 | ||adadvisor.net^ 74 | ||addtoany.com/menu/transparent.gif 75 | ||adk2x.com^$third-party 76 | ||admaster.com.cn^$third-party 77 | ||ads.yahoo.com^ 78 | ||adsfactor.net^ 79 | ||adskeeper.co.uk^ 80 | ||adstract.com^$third-party 81 | ||adxxx.$third-party 82 | ||adrunnr.com^ 83 | ||adzerk.net^ 84 | ||aidigua.com^ 85 | ||amung.us^ 86 | ||api.kodcloud.com/data/notify/ 87 | ||an.yandex.ru^ 88 | ||analytics.163.com^ 89 | ||ancplayer.com/ancplayer/ads 90 | ||atemda.com^$third-party 91 | ||awempire.com^$third-party 92 | ||baifendian.com^$third-party 93 | ||blogamethu.com^ 94 | ||bthand.com/static/js/default.js 95 | ||buysellads.com^$third-party 96 | ||cache.netease.com/cnews/js/qrcode.js 97 | ||cache1.value-domain.com/xrea_header.js 98 | @@||cdndx.clouddata8g.xyz^$domain=ohmanhua.com 99 | ||changyan.itc.cn/mdevp/extensions/mobile-cmt-advert/ 100 | ||clicksor.net^$third-party 101 | ||comgnnyx.com^ 102 | ||cmsjs.eastmoney.com/js/news_*.js 103 | ||creative.xtendmedia.com^ 104 | ||criteo.com^$third-party 105 | ||criteo.net^$third-party 106 | ||da-ads.com^$third-party 107 | ||directtrk.com/js/pop.js$third-party 108 | ||discuss.com.hk/include/javascript/idle_check.js 109 | ||discuss.com.hk/overture/ 110 | ||doubleclick.net/instream/ad_status.js 111 | ||dwnews.com/RealMedia/ads/ 112 | ||dwnews.net/images/www/ad/ 113 | ||dwnews.net/js/common/dwnews.dwcn.ad.js 114 | ||dwnews.net/js/common/dwnews.ga.js 115 | ||elcncc.com^$third-party 116 | ||ero-advertising.com^ 117 | ||etahub.com^$third-party 118 | ||exoticads.com^$third-party 119 | ||feih.com.cn^$third-party 120 | ||flashi.tv/histats.php? 121 | ||forum.xitek.com/xml/flash.swf 122 | ||gelbooru.com/script/application.js 123 | ||genieessp.com^$third-party 124 | ||greencompute.org^$third-party 125 | ||guardwork.info^$third-party 126 | ||hb.vntsm.com/v3/live/ad-manager.min.js 127 | ||histats.com^$third-party 128 | ||insightexpressai.com^ 129 | ||jav777.cc/wp-content/themes/baskerville/js/jquery-ui 130 | ||js.fhxiaoshuo.com^ 131 | ||juiceads.net^ 132 | ||juicyads.com^ 133 | ||live800.com^$domain=licai.com 134 | ||m.addthis.com/live/red_lojson/300lo.json 135 | ||m.paipai.fm/js/jquery.slides.min.js 136 | ||mobfox.com/ad_sdk.js 137 | ||moatads.com^ 138 | ||media.pussycash.com^$third-party 139 | ||member.jschina.com.cn/AD 140 | ||okmuxdbq.com^ 141 | ||onclickpredictiv.com^ 142 | ||onclickads.net^ 143 | ||oload.tv/assets/js/script.packed 144 | ||openload.co/assets/js/script.packed 145 | ||optimix.asia^ 146 | ||optimizely.com^$third-party 147 | ||networld.hk^$third-party 148 | ||nibblebit.com/assets/media/adverts.php 149 | ||padstm.com^$third-party 150 | ||projectwonderful.com$third-party 151 | ||popads.net^$third-party 152 | ||popcash.net^$third-party 153 | ||popmyads.com^$third-party 154 | ||prf.hn^$third-party 155 | ||prscripts.com^$third-party 156 | ||prpops.com^$third-party 157 | ||qiniucdn.com^$domain=enrz.com,image 158 | ||revcontent.com^$third-party 159 | ||serving-sys.com^ 160 | ||sexad.net^$third-party 161 | ||ssl.trace.zhiziyun.com^ 162 | ||statcounter.com/counter/counter.js 163 | ||stats.hosting24.com/count.php 164 | ||static.creatives.livejasmin.com/adcreative2/ 165 | ||static.xvideos.com/js/jquery.popunder.js 166 | ||strdef.world/js/acheck.js 167 | ||syndication.jsadapi.com^$third-party 168 | ||tianqi.com/img/wx2211.js 169 | ||tkres.tuku.cc/k32/ 170 | ||trace.qq.com^ 171 | ||traffichaus.com^ 172 | ||trafficjunky.net^ 173 | ||trafficfactory.biz^ 174 | ||trafficstars.com^ 175 | ||tribalfusion.com^ 176 | ||trw12.com^$third-party 177 | ||uuxs.net^$subdocument 178 | ||videowood.tv/assets/js/popup.js 179 | ||videowood.tv/pop^$popup 180 | ||videowood.tv/pop2 181 | ||watchmygf.to^$third-party 182 | ||www.blnovel.com/cmjs/$script 183 | ||www.blnovel.com/e/$script 184 | ||www.blnovel.com/qrcode.php 185 | ||www.gelbooru.com/thumbnails/ 186 | ||www.pcbeta.com//data/cache/ggk.js 187 | ||xiamp4.com/tj.js 188 | ||xiucm.com^$third-party 189 | ||xemphimviet.net^$third-party 190 | ||xxxnavy.com^$third-party 191 | ||xtube.com/js/ht.js 192 | ||xtube.com/theme/v2/vendor/js-popunder/ 193 | ||yllix.com^ 194 | ||yahoo.com^*banner_ad 195 | ||yimg.com/*/ads/ 196 | ||yimg.com/av/gemini/ga/gemini.js 197 | ||yimg.com/rq/darla/ 198 | ||yimg.com/uq/syndication/yad.js 199 | ||yimg.com/zz/combo?cv 200 | ||zhongxinghuanyu.com^$third-party 201 | ||zedo.com^$third-party 202 | ||zencdn.net^$domain=freegaypornsex.net|www.gayvl.info 203 | ! 2345 204 | @@||union2.50bang.org^$third-party 205 | ! 6park 206 | !|http:$third-party,image,domain=www.6park.com 207 | !|https:$third-party,image,domain=www.6park.com 208 | @@||popo8.com^$domain=www.6park.com 209 | ! BiliBili 210 | live.bilibili.com##.bilibili-live-player-video-gift 211 | live.bilibili.com##.fans-medal-item-ctnr 212 | live.bilibili.com##.chat-item.gift-item 213 | live.bilibili.com##.chat-item.welcome-guard 214 | live.bilibili.com##.chat-item.welcome-msg 215 | live.bilibili.com##.guard-icon 216 | live.bilibili.com##.live-haruna-ctnr 217 | live.bilibili.com##.m-guard-ent 218 | live.bilibili.com##.outlink 219 | live.bilibili.com##.penury-gift-msg 220 | live.bilibili.com##.system-msg.news 221 | live.bilibili.com##.title-label 222 | live.bilibili.com##.user-level-icon 223 | live.bilibili.com##.vip-icon 224 | ||api.live.bilibili.com/live_user/v1/Wish 225 | ! Cam4 226 | ||cam4.com/ads/ 227 | ||cam4.com/buygift/ 228 | ||cam4.com/directoryFanClubs? 229 | */web/js/th/$domain=cam4.com 230 | cam4.com###Cam4DialogContainer 231 | cam4.com###disclaimerModal 232 | cam4.com###goldNavbar 233 | cam4.com###subfoot 234 | cam4.com###tippingCulture 235 | cam4.com##.hbanner 236 | cam4.com##.promo-center 237 | cam4.com##.sponsorAd 238 | cam4.com##.stickyAd 239 | cam4.com##.xmlAdsTitle 240 | cam4.com##.xmlAdsWrapper 241 | ! Chaturbate 242 | ||chaturbate.com/affiliates/ 243 | ||nsimg.net^ 244 | chaturbate.com##IMG[rel="nofollow"] 245 | chaturbate.com##.ad 246 | chaturbate.com##.banner 247 | ! 中华网闲置2分钟广告 248 | junshi.china.com###mod-box 249 | junshi.china.com##.w_xiao>.side_bdgg 250 | toutiao.china.com###js-free-time-show 251 | ! COCOmanhua 252 | @@||cdndx.clouddata8g.xyz^$script,domain=www.cocomanhua.com 253 | ! 低端影视 254 | ||ddrk.me/vjs-plugins/videojs.das.min.js 255 | !通用去除dplayer播放器logo https://bbs.kafan.cn/forum.php?mod=redirect&goto=findpost&ptid=2180923&pid=46929896 256 | ##.dplayer-logo 257 | ###sponsorAdDiv 258 | ###sponsorAdCountdown 259 | ###adleft 260 | ###adright 261 | nfmovies.com##[src*="/pic/tu/"] 262 | nfmovies.com##[src*="/static/"] 263 | ||nfmovies.com/templets/default/images/js/layer/layer.js 264 | nfmovies.com###aaaDiv 265 | nfmovies.com###zzzif 266 | nfmovies.com###zzzif2 267 | nfmovies.com###aaaCountdown 268 | nfmovies.com###aaaDiv2 269 | nfmovies.com##.fa fa-volume-down 270 | nfmovies.com##.close-box.tips 271 | nfmovies.com##.hidden-xs.dropdown-hover 272 | nfmovies.com##li.dropdown-hover:nth-of-type(9) 273 | nfmovies.com##.myui-player__operate > li:nth-of-type(1) 274 | nfmovies.com##.myui-player__operate > li:nth-of-type(4) 275 | nfmovies.com##.myui-player__operate > li:nth-of-type(5) 276 | nfmovies.com##+js(nano-sib) 277 | nfmovies.com##+js(nostif, container) 278 | nfmovies.com##body:style(opacity:1!important) 279 | nfmovies.com##body > div.hidden-xs 280 | @@||www.nfmovies.com/static/side.jpg 281 | @@||www.nfmovies.com/pic/tu/banner-03.jpg 282 | @@||www.nfmovies.com/pic/tu/banner03.jpg 283 | ! Facebook 284 | www.facebook.com###pagelet_side_ads 285 | www.facebook.com##.egoOrganicColumn+* 286 | ! ithome 287 | ithome.com###a_ad 288 | www.ithome.com###lapin 289 | www.ithome.com##.content>a[href="http://m.ithome.com/ithome/"] 290 | ||img.ithome.com/file/js/wap/apprecommend.js 291 | ! Letv 292 | |http://*/letv-gug/ 293 | ||banana.le.com/letv_tracker.js$domain=m.le.com 294 | ||dc.letv.com/op/? 295 | ||player.letvcdn.com/*/newplayer/1/WatchingBuy.swf 296 | ! leisu 297 | @@||tracker.namitiyu.com^ 298 | ! mgtv 299 | m.mgtv.com##.mg-dcross 300 | www.mgtv.com##.m-headgg 301 | ! mydrivers 302 | www.mydrivers.com###weixin_box 303 | ! OutLook 304 | ||res.office365.com/*/scripts/owa.AdsPanel.js 305 | ||res.office365.com/*/scripts/microsoft.owa.adsbar.js 306 | ||outlook.live.com/*/scripts/microsoft.owa.adsbar.js 307 | ! Paper 308 | www.thepaper.cn##.pdtt01 309 | m.thepaper.cn##.toutiao 310 | m.thepaper.cn##.bot_banner 311 | ! PornHub 312 | pornhub.com###hd-rightColVideoPage>none 313 | pornhub.com##.videos-morepad.videos.full-row-thumbs.videos-being-watched.logInHotContainer+* 314 | pornhub.com##.inesuch 315 | pornhub.com##.hd.clear 316 | ||doublepimpssl.com^$third-party 317 | ||phncdn.com/html5shiv-*.js 318 | ||phncdn.com/www-static/js/widgets-live-popup.js 319 | ||phncdn.com/www-static/js/ph-tracking.js 320 | ||phncdn.com/www-static/js/promo-banner.js 321 | ! QQVideo 322 | !||ca.gtimg.com/adplugin/swf/MediaPlugin.swf 323 | ! Youtube 324 | youtube.com###contents>ytd-search-pyv-renderer 325 | youtube.com###video-masthead 326 | youtube.com###masthead-ad 327 | m.youtube.com###koya_child_6 328 | !m.youtube.com##._menb>._mab:nth-child(1) 329 | ||youtube.com/*=adunit& 330 | ||youtube.com/*&yt_ad 331 | ||youtube.com/get_midroll_info? 332 | ! Baidu 333 | ^monitor.jpg?xcode^ 334 | pan.baidu.com##.upload-bar.global-clearfix 335 | -------------------------------------------------------------------------------- /mod/TiebaBlock.txt: -------------------------------------------------------------------------------- 1 | ! Images & Scripts 2 | */widget/spage_game_tab/$domain=tieba.baidu.com 3 | ||xiu8.com/live/$domain=tieba.baidu.com 4 | ||share.baidu.com/static/js/ 5 | ||tieba.baidu.com/app/pop/bws/popup 6 | ||tieba.baidu.com/tbapp/user/getRecommendApp 7 | ||static.tieba.baidu.com/tb/pms/ 8 | ||static.tieba.baidu.com/tb/img/pv.gif 9 | ||static.tieba.baidu.com/tb/img/track.gif 10 | ||bdstatic.com/r/www/*cache/baidu_search/ 11 | ||bdstatic.com/tb/_/qrcode_*.js 12 | ||bdstatic.com/tb/_/umoney_*.js 13 | ||bdstatic.com/tb/cms/post/bubble/ 14 | ||bdstatic.com/tb/img/firework_ 15 | ||bdstatic.com/tb/static-common/js/pic_share/logger.js 16 | ||bdstatic.com/tb/static-pb/img/voice_ad.gif 17 | ! iTieba & Homepage 18 | jump.bdimg.com,tieba.baidu.com###adide_platform 19 | jump.bdimg.com,tieba.baidu.com###media_item 20 | jump.bdimg.com,tieba.baidu.com###spage_game_tab_wrapper 21 | jump.bdimg.com,tieba.baidu.com###spage_liveshow_slide 22 | jump.bdimg.com,tieba.baidu.com###plat_act_wrapper 23 | jump.bdimg.com,tieba.baidu.com##.ihome_aside_section[j-mygift] 24 | jump.bdimg.com,tieba.baidu.com##.ihome_game_group 25 | jump.bdimg.com,tieba.baidu.com##.member_rank 26 | jump.bdimg.com,tieba.baidu.com##.userinfo_scores 27 | ! Top Right 28 | jump.bdimg.com,tieba.baidu.com##.fMember_cnt 29 | jump.bdimg.com,tieba.baidu.com##.split 30 | jump.bdimg.com,tieba.baidu.com##.u_app 31 | jump.bdimg.com,tieba.baidu.com##.u_appcenterEntrance 32 | !jump.bdimg.com,tieba.baidu.com##.u_bdhome 33 | jump.bdimg.com,tieba.baidu.com##.u_blue 34 | jump.bdimg.com,tieba.baidu.com##.u_game 35 | jump.bdimg.com,tieba.baidu.com##.u_grab_treasure 36 | jump.bdimg.com,tieba.baidu.com##.u_joinvip 37 | jump.bdimg.com,tieba.baidu.com##.u_split 38 | !jump.bdimg.com,tieba.baidu.com##.u_member 39 | jump.bdimg.com,tieba.baidu.com##.u_menu_tbmall 40 | jump.bdimg.com,tieba.baidu.com##.u_mytbmall 41 | jump.bdimg.com,tieba.baidu.com##.u_xiu8 42 | jump.bdimg.com,tieba.baidu.com##.u_wallet 43 | ! Top 44 | jump.bdimg.com,tieba.baidu.com###local_board 45 | jump.bdimg.com,tieba.baidu.com###j_navtab_wanle 46 | jump.bdimg.com,tieba.baidu.com###j_navtab_game 47 | jump.bdimg.com,tieba.baidu.com##.gift-goin 48 | jump.bdimg.com,tieba.baidu.com##.icon_group 49 | jump.bdimg.com,tieba.baidu.com##.j_tbnav_tab_a[stats-data^="fr=tb0_forum&st_mod=frs&st_value=tabgroup"] 50 | jump.bdimg.com,tieba.baidu.com##.star_nav_ico_activity 51 | jump.bdimg.com,tieba.baidu.com##.star_nav_ico_deal 52 | jump.bdimg.com,tieba.baidu.com##.star_nav_ico_group 53 | jump.bdimg.com,tieba.baidu.com##.star_nav_ico_tuan 54 | ! Sides 55 | jump.bdimg.com,tieba.baidu.com###aside_ad 56 | jump.bdimg.com,tieba.baidu.com###aside_ad_wrapper 57 | jump.bdimg.com,tieba.baidu.com###novel-ranking 58 | jump.bdimg.com,tieba.baidu.com###tieba-notice.region_bright 59 | jump.bdimg.com,tieba.baidu.com##.app_download_box 60 | jump.bdimg.com,tieba.baidu.com##.app_forum_rank_float 61 | jump.bdimg.com,tieba.baidu.com##.aside_region.celebrity 62 | jump.bdimg.com,tieba.baidu.com##.fansparty-wrap 63 | jump.bdimg.com,tieba.baidu.com##.guess-sidebar-container 64 | jump.bdimg.com,tieba.baidu.com##.nani_app_download_box 65 | jump.bdimg.com,tieba.baidu.com##.platform_aside_tieba_partner 66 | jump.bdimg.com,tieba.baidu.com##.profile_bottom 67 | jump.bdimg.com,tieba.baidu.com##.region_bright.celebrity 68 | jump.bdimg.com,tieba.baidu.com##.tbui_fbar_bazhu 69 | jump.bdimg.com,tieba.baidu.com##.tbui_fbar_props 70 | jump.bdimg.com,tieba.baidu.com##.tieba_notice 71 | jump.bdimg.com,tieba.baidu.com##.user_score 72 | ! Central 73 | jump.bdimg.com,tieba.baidu.com###top_activity 74 | jump.bdimg.com,tieba.baidu.com##.achievement_medal_wrapper 75 | jump.bdimg.com,tieba.baidu.com##.card_userinfo_honor 76 | jump.bdimg.com,tieba.baidu.com##.d_icons 77 | jump.bdimg.com,tieba.baidu.com##.d_nameplate 78 | jump.bdimg.com,tieba.baidu.com##.dialogJ.game_player_auth_dialog 79 | jump.bdimg.com,tieba.baidu.com##.dialogJ.tieba-sign-card 80 | jump.bdimg.com,tieba.baidu.com##.fav-wrapper 81 | jump.bdimg.com,tieba.baidu.com##.icon_author 82 | jump.bdimg.com,tieba.baidu.com##.icon_wrap 83 | jump.bdimg.com,tieba.baidu.com##.icon_replyer 84 | jump.bdimg.com,tieba.baidu.com##.icon_tbworld 85 | jump.bdimg.com,tieba.baidu.com##.j-post-send-gift 86 | jump.bdimg.com,tieba.baidu.com##.p_mall_tail 87 | jump.bdimg.com,tieba.baidu.com##.pre_icon_wrap 88 | jump.bdimg.com,tieba.baidu.com##.save_face_bg 89 | jump.bdimg.com,tieba.baidu.com##.sofa_front_list_wrap 90 | jump.bdimg.com,tieba.baidu.com##.share_btn_wrapper 91 | jump.bdimg.com,tieba.baidu.com##.thread_recommend_ps 92 | jump.bdimg.com,tieba.baidu.com##.user_card_vip_tips 93 | ! Bottom 94 | jump.bdimg.com,tieba.baidu.com###bdshare 95 | jump.bdimg.com,tieba.baidu.com###guide_fc 96 | jump.bdimg.com,tieba.baidu.com###xiu8_follow_warn 97 | jump.bdimg.com,tieba.baidu.com##.add_guessing_btn 98 | jump.bdimg.com,tieba.baidu.com##.edui-btn-medal 99 | jump.bdimg.com,tieba.baidu.com##.edui-btn-paypost 100 | jump.bdimg.com,tieba.baidu.com##.j_surveillance 101 | jump.bdimg.com,tieba.baidu.com##.showBar 102 | ! Mobile 103 | ||tieba.baidu.com/mo/q/appSpecialThread 104 | tieba.baidu.com##.client_ghost_icon 105 | tieba.baidu.com##.daoliu_sign_in_show 106 | tieba.baidu.com##.dia_mask 107 | tieba.baidu.com##.dia_wrapper 108 | tieba.baidu.com##.forum_recommend_w 109 | tieba.baidu.com##.light_top_ext_area 110 | tieba.baidu.com##.j_click_stats, .j_click_stats+* 111 | tieba.baidu.com##.more_btn_package 112 | tieba.baidu.com##.tuijian-wrap 113 | -------------------------------------------------------------------------------- /mod/ad-edentw-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: edentwCustom 3 | ! Expires: 12 hours 4 | ! Version: 201412030951 5 | ! Last Modified: 201412030952 6 | ! Homepage: https://adf.minggo.eu.org 7 | ! 本规则合并自Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters,感谢各位大大的分享! 8 | ! 仅合并规则,未做其余任何处理 9 | ! 如有任何疑问、意见或建议,请反馈至:HalfLife吧 10 | ! 11 | -------------------------------------------------------------------------------- /mod/ad-mo-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: My AdFilters(for Mobile) 3 | ! Expires: 12 hours 4 | ! Version: 201412030951 5 | ! Last Modified: 201412030952 6 | ! Homepage: https://adf.minggo.eu.org 7 | ! 本规则合并自Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance 8 | ! 感谢各位前辈的分享! 9 | ! 如有任何疑问、意见或建议,请反馈至:HalfLife吧 10 | ! 11 | -------------------------------------------------------------------------------- /mod/ad-pc-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: My AdFilters(for PC) 3 | ! Expires: 12 hours 4 | ! Version: 201412030951 5 | ! Last Modified: 201412030952 6 | ! Homepage: https://adf.minggo.eu.org 7 | ! 本规则合并自乘风视频广告过滤规则、Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance 8 | ! 并补充了贴吧过滤规则,感谢各位前辈的分享! 9 | ! 如有任何疑问、意见或建议,请反馈至:HalfLife吧 10 | ! 11 | -------------------------------------------------------------------------------- /mod/ad-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: My AdFilters 3 | ! Expires: 12 hours 4 | ! Version: 201412030951 5 | ! Last Modified: 201412030952 6 | ! Homepage: https://adf.minggo.eu.org 7 | ! 本规则合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance 8 | ! 并补充了贴吧过滤规则,感谢各位前辈的分享! 9 | ! 如有任何疑问、意见或建议,请反馈至:HalfLife吧 10 | ! 11 | -------------------------------------------------------------------------------- /mod/ad2-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: CJX's AdFilters 3 | ! Expires: 12 hours 4 | ! Version: 201412030951 5 | ! Last Modified: 201412030952 6 | ! Homepage: https://adf.minggo.eu.org 7 | ! 本规则合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance 8 | ! 仅合并规则,未做其余任何处理 9 | ! 如有任何疑问、意见或建议,请反馈至:HalfLife吧 10 | ! 11 | -------------------------------------------------------------------------------- /mod/ad3-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdFilters 3 | ! Expires: 12 hours 4 | ! Version: 201412030951 5 | ! Last Modified: 201412030952 6 | ! Homepage: https://adf.minggo.eu.org 7 | ! 本规则合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance、EasyPrivacy,感谢各位大大的分享! 8 | ! 仅合并规则,未做其余任何处理 9 | ! 如有任何疑问、意见或建议,请反馈至:HalfLife吧 10 | ! 11 | -------------------------------------------------------------------------------- /mod/addChecksum.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | ############################################################################# 4 | # To add a checksum to a subscription file, run the script like this: # 5 | # perl addChecksum.pl subscription.txt # 6 | ############################################################################# 7 | 8 | use strict; 9 | use warnings; 10 | use Digest::MD5 qw(md5_base64); 11 | 12 | die "Usage: $^X $0 subscription.txt\n" unless @ARGV; 13 | 14 | #my $file = $ARGV[0]; 15 | foreach my $file (@ARGV) { 16 | my $data = readFile($file); 17 | 18 | # Get existing checksum. 19 | $data =~ /^.*!\s*checksum[\s\-:]+([\w\+\/=]+).*\n/gmi; 20 | my $oldchecksum = $1; 21 | 22 | # Remove already existing checksum. 23 | $data =~ s/^.*!\s*checksum[\s\-:]+([\w\+\/=]+).*\n//gmi; 24 | 25 | # Calculate new checksum: remove all CR symbols and empty 26 | # lines and get an MD5 checksum of the result (base64-encoded, 27 | # without the trailing = characters). 28 | my $checksumData = $data; 29 | $checksumData =~ s/\r//g; 30 | $checksumData =~ s/\n+/\n/g; 31 | 32 | # Calculate new checksum 33 | my $checksum = md5_base64($checksumData); 34 | 35 | # If the old checksum matches the new one bail. 36 | if ($checksum eq $oldchecksum) 37 | { 38 | $data = (); 39 | next; 40 | } 41 | 42 | # Update the date. 43 | my @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); 44 | my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(); 45 | $year += 1900; # Year is years since 1900. 46 | my $todaysdate = "$mday $months[$mon] $year"; 47 | $data =~ s/(^.*!.*Updated:\s*)(.*)\s*$/$1$todaysdate/gmi; 48 | 49 | # Recalculate the checksum as we've altered the date. 50 | $checksumData = $data; 51 | $checksumData =~ s/\r//g; 52 | $checksumData =~ s/\n+/\n/g; 53 | $checksum = md5_base64($checksumData); 54 | 55 | # Insert checksum into the file 56 | $data =~ s/(\r?\n)/$1! Checksum: $checksum$1/; 57 | 58 | writeFile($file, $data); 59 | $data = (); 60 | } 61 | 62 | sub readFile 63 | { 64 | my $file = shift; 65 | 66 | open(local *FILE, "<", $file) || die "Could not read file '$file'"; 67 | binmode(FILE); 68 | local $/; 69 | my $result = ; 70 | close(FILE); 71 | 72 | return $result; 73 | } 74 | 75 | sub writeFile 76 | { 77 | my ($file, $contents) = @_; 78 | 79 | open(local *FILE, ">", $file) || die "Could not write file '$file'"; 80 | binmode(FILE); 81 | print FILE $contents; 82 | close(FILE); 83 | } 84 | --------------------------------------------------------------------------------