├── bdAdfinisher ├── res │ ├── js │ │ ├── main.js │ │ ├── background.js │ │ └── popup.js │ ├── pic │ │ ├── icon_16.png │ │ ├── icon_48.png │ │ └── icon_128.png │ ├── css │ │ ├── popup.css │ │ ├── popup.less │ │ └── style.css │ └── popup.html ├── bdAdfinisher.zip └── manifest.json ├── screenshot ├── 01.png ├── 02.png ├── q0.jpg ├── q1.jpg ├── q2.jpg ├── logo.png └── sp01.png ├── bdAdfinisher_v3.0.crx ├── .project ├── README.md └── bdAdfinisher.pem /bdAdfinisher/res/js/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bdAdfinisher/res/js/background.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /screenshot/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/01.png -------------------------------------------------------------------------------- /screenshot/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/02.png -------------------------------------------------------------------------------- /screenshot/q0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/q0.jpg -------------------------------------------------------------------------------- /screenshot/q1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/q1.jpg -------------------------------------------------------------------------------- /screenshot/q2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/q2.jpg -------------------------------------------------------------------------------- /screenshot/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/logo.png -------------------------------------------------------------------------------- /screenshot/sp01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/screenshot/sp01.png -------------------------------------------------------------------------------- /bdAdfinisher_v3.0.crx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/bdAdfinisher_v3.0.crx -------------------------------------------------------------------------------- /bdAdfinisher/bdAdfinisher.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/bdAdfinisher/bdAdfinisher.zip -------------------------------------------------------------------------------- /bdAdfinisher/res/pic/icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/bdAdfinisher/res/pic/icon_16.png -------------------------------------------------------------------------------- /bdAdfinisher/res/pic/icon_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/bdAdfinisher/res/pic/icon_48.png -------------------------------------------------------------------------------- /bdAdfinisher/res/pic/icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/unclehking/bdAdfinisher/HEAD/bdAdfinisher/res/pic/icon_128.png -------------------------------------------------------------------------------- /bdAdfinisher/res/js/popup.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | const url="www.baidu.com"; 4 | document.querySelector("#goBD").addEventListener('click',function(){ 5 | chrome.tabs.getAllInWindow(null, fuckBat = tabs =>{ 6 | for(var t of tabs){ 7 | if (t.url.match(url)) { 8 | fuckBat.bTab = true; 9 | chrome.tabs.update(t.id, {selected:true}); 10 | break; 11 | } 12 | } 13 | !fuckBat.bTab && chrome.tabs.create({"url":`https://${url}`, "selected":true}); 14 | }); 15 | }) 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | bdAdfinisher 4 | 5 | 6 | 7 | 8 | 9 | com.aptana.ide.core.unifiedBuilder 10 | 11 | 12 | 13 | 14 | 15 | com.aptana.projects.webnature 16 | 17 | 18 | 19 | 1516592447809 20 | 21 | 26 22 | 23 | org.eclipse.ui.ide.multiFilter 24 | 1.0-name-matches-false-false-node_modules 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bdAdfinisher/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "百度广告屏蔽", 3 | "version": "3.0", 4 | "short_name":"屏蔽百度广告Chrome扩展程序", 5 | "description":"屏蔽百度线上产品页面广告。点击扩展图标,可当书签用,省去每次输入百度地址的麻烦。如有疑问欢迎咨询开发者。", 6 | "background": { 7 | "scripts": ["res/js/background.js"] 8 | }, 9 | "content_scripts": [ 10 | { 11 | "matches": ["https://www.baidu.com/*","http://*.baidu.com/*","https://*.baidu.com/*"], 12 | "css":["res/css/style.css"], 13 | "js":["res/js/main.js"], 14 | "run_at":"document_start" 15 | } 16 | ], 17 | "permissions": [ 18 | "https://*.baidu.com/*","tabs" 19 | ], 20 | "icons": { 21 | "16": "res/pic/icon_16.png", 22 | "48": "res/pic/icon_48.png", 23 | "128": "res/pic/icon_128.png" 24 | }, 25 | "browser_action": { 26 | "name": "百度广告屏蔽--by HKing", 27 | "default_icon": "res/pic/icon_128.png", 28 | "default_popup": "res/popup.html" 29 | }, 30 | "manifest_version": 2 31 | } 32 | -------------------------------------------------------------------------------- /bdAdfinisher/res/css/popup.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 360px; 3 | } 4 | .btnWrap { 5 | width: 100%; 6 | border-bottom: solid rgba(0, 0, 0, 0.2) 1px; 7 | padding-top: 12px; 8 | text-align: center; 9 | padding-bottom: 6px; 10 | margin-top: 18px; 11 | margin-bottom: 22px; 12 | } 13 | .btnWrap button { 14 | width: 200px; 15 | height: 32px; 16 | background-color: #0f88eb; 17 | color: #fff; 18 | border-radius: 4px; 19 | border: none; 20 | cursor: pointer; 21 | outline: none; 22 | } 23 | .btnWrap button:hover { 24 | opacity: 0.8; 25 | } 26 | .info { 27 | line-height: 24px; 28 | font-size: 14px; 29 | padding: 0 12px; 30 | } 31 | .info .mywechat { 32 | margin: 30px 0 50px 0; 33 | text-align: center; 34 | } 35 | .info .mywechat img { 36 | width: 240px; 37 | } 38 | .info .mywechat div { 39 | margin-top: -11px; 40 | opacity: 0.5; 41 | letter-spacing: 1px; 42 | } 43 | -------------------------------------------------------------------------------- /bdAdfinisher/res/css/popup.less: -------------------------------------------------------------------------------- 1 | 2 | body{ 3 | width: 360px; 4 | } 5 | .btnWrap{ 6 | width: 100%; 7 | border-bottom: solid rgba(0,0,0,0.2) 1px; 8 | padding-top: 12px; 9 | text-align: center; 10 | padding-bottom: 6px; 11 | margin-top: 18px; 12 | margin-bottom: 22px; 13 | button{ 14 | width: 200px; 15 | height: 32px; 16 | background-color: #0f88eb; 17 | color: #fff; 18 | border-radius: 4px; 19 | border: none; 20 | cursor: pointer; 21 | outline: none; 22 | &:hover{ 23 | opacity: 0.8; 24 | } 25 | } 26 | } 27 | .info{ 28 | line-height: 24px; 29 | font-size: 14px; 30 | padding: 0 12px; 31 | .mywechat{ 32 | margin:30px 0 50px 0; 33 | text-align:center; 34 | img{ 35 | width: 240px; 36 | } 37 | div{ 38 | margin-top:-11px; 39 | opacity:0.5; 40 | letter-spacing: 1px; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /bdAdfinisher/res/popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 |
11 | 12 |
13 |
14 |
15 | 16 | 开发者其他相关产品: 17 |

懒猴文字识别,便捷高效地把图片上文字、纸质文档转换为电子文档。

18 |
19 | 微信小程序:https://h5cssjs.com/ocr-about/ 20 |
21 |
22 | 网页版:https://www.h5cssjs.com/ocr/(可识别PDF) 23 |
24 |
25 | 26 |
微信扫一扫 添加开发者为好友
27 |
28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # baiduAdfinisher 2 | 屏蔽百度线上产品页面广告chrome扩展程序,兼容各大“国产”浏览器急速版(360、搜狗、猎豹、百度、UC、QQ等)以及其他webkit内核浏览器。 3 | 4 | ### 最近跟新:2021-12-24
5 | 可添加开发者微信: 513935463,拉你进用户群反映问题。 6 | 7 | ### 已经上架Google网上应用商店:
8 | https://chrome.google.com/webstore/detail/%E7%99%BE%E5%BA%A6%E5%B9%BF%E5%91%8A%E5%B1%8F%E8%94%BD%E6%89%A9%E5%B1%95%E7%A8%8B%E5%BA%8F/bdkobfnbgkbemcfgopfollaikdlknlkm?utm_source=en-et-na-us-oc-webstrapp 9 | 10 | 支持MS Edge 直接按照 11 | 12 | ### 离线chrome扩展程序(.crx文件)安装方式:
13 | 1、打开chrome扩展程序页面(chrome://extensions/ 或者 菜单 > 更多工具> 扩展程序);
14 | 2、把.crx文件拖进该页面(国产浏览器直接拖入任意页面)。
15 | 16 | ### 关于未上架扩展被chrome禁用的问题:
17 | 请参考:https://github.com/unclehking/bdAdfinisher/issues/3#issuecomment-259640598 18 | 19 | 20 | 效果截图:
21 | ![github](https://raw.githubusercontent.com/unclehking/baiduAdfinisher/master/screenshot/sp01.png "github")
22 | 23 | 24 | ###2016-05-25
25 | 现已支持百度全线线上产品页面广告屏蔽(搜索、新闻、贴吧、知道、音乐、图片、视频、文库、百科等)。
26 | 27 | ###2016-05-26
28 | 新增:点击扩展图标打开(如果已打开则切换到)百度页面,当书签用,省去每次输入地址链接的麻烦 ^_^
29 | 30 | 31 | 持续更新中... 32 | -------------------------------------------------------------------------------- /bdAdfinisher.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCk6AUcCie+PzpO 3 | vf/szdHowOY5yQwV7Af258RwmZ1yE4J/g8ZMZxieOlZ20L4SMDTnflxBb6nSJ60Z 4 | RX4UIyhKtCK/ka6aypWdEa9aJlpbssSpka+03uvhEjt//H2haZ92t9G3q9kU8WaQ 5 | VG1asvX9gRDFMLZlYiOQjhEkDtuoEHGq0Liut27PtfSoaTWRlfvs+LecsJ3a1PPn 6 | SGaAEzgUctTpjkFWmallKY7LQCTdJecLshOhgyUbFEWNswU+BRn2r3DEqGLlwTVG 7 | z6+YrWxALo9zZ59Qcxx7wnNJFG2kxu9H3fMJzU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gsoqPecxRtO8ypiP29L88Ji4FFFxVoDslwtvqWoxOHZNQ4mx 24 | grBYEumrTwT9X9rX3R48C+jkTT9srOoK6/N1CBctAoGBAItk4Y2rvDCNdNQJXlcc 25 | X84EWH/ZnMMpXQdJF/z97gm8C1junKIeYTTf4Bb5n1lNhU2hu63JIajIe8tlX9FN 26 | HRknP+rB9Qbg66tkpNkllGy8qAj1jYGo1039fVQjWQH9xrOBRub1vfn1uDl2mGRH 27 | chbbmmhjsiTlg+km6gv4+rEP 28 | -----END PRIVATE KEY----- 29 | -------------------------------------------------------------------------------- /bdAdfinisher/res/css/style.css: -------------------------------------------------------------------------------- 1 | /*HKing 2016-03-10*/ 2 | :root{ 3 | --bn: none ; 4 | } 5 | /*滚动条*/ 6 | ::-webkit-scrollbar {width: 8px;height:6px;} 7 | ::-webkit-scrollbar-track-piece{background-color: #f4f4f4;margin: 0px;} 8 | ::-webkit-scrollbar-thumb{background: #cfcfcf;min-height: 150px;min-width: 150px;border-radius: 10px;} 9 | ::-webkit-scrollbar-thumb:vertical:hover{background: #7e7e7e} 10 | ::-webkit-scrollbar-thumb:horizontal:hover{background: #7e7e7e} 11 | 12 | /*搜索*/ 13 | #content_left{ position: relative; float: none !important;} 14 | #content_left > div[style^="display"]{ 15 | position: absolute; 16 | top: -10000px; 17 | } 18 | .result-op.xpath-log, 19 | .rrecom-btn-parent, 20 | .to_tieba{ 21 | height: 0px !important; 22 | overflow: hidden !important; 23 | padding: 0px !important; 24 | margin: 0px !important; 25 | color: #ffffff !important; 26 | } 27 | .result-op.c-container.xpath-log{height: auto !important;color: #000000 !important;} 28 | 29 | /* 2021-12-15 */ 30 | body[link] #wrapper #wrapper_wrapper #content_left > div:not(.c-container), 31 | body[link] #wrapper #wrapper_wrapper #content_left > .result.c-container.new-pmd[id="1"]{ 32 | display: none !important; 33 | } 34 | #top-ad{ 35 | display: none !important; 36 | } 37 | /* 2021-12-15 */ 38 | 39 | 40 | 41 | /*图片*/ 42 | #ec_im_container,#con-ar+div, 43 | #content_right td > div:nth-child(1), 44 | .fcImgli,#content_right,#appLauncher, 45 | .hideTags_search #topInfoBar,#pullRS, 46 | .global-logged #back-to-top,.hd-paopao,.global-logged .footer, 47 | #srcPic .text-link-ads.new-style, 48 | #sider #adCard, 49 | #sider #wmContainer 50 | { 51 | display: none !important; 52 | } 53 | 54 | /*贴吧*/ 55 | .widget-ads , .widget-ads ~ div, 56 | #thread_list > li:not([class^=" j_thread_list"]), 57 | .aside > div > div > div[id$="ad"], 58 | .p_postlist > div:not([class^="l_post"]), 59 | .j_thread_list:not([data-field]), 60 | #j_p_postlist > .l_post_bright:not([data-field]), 61 | .firework-wrap,.editor_wrap_bright + #footer, 62 | #ec_zwd_ctner,.newsearch .list-footer, 63 | #j_p_postlist .p_author .icon_relative:not(.j_user_card), 64 | #j_p_postlist .p_author .p_author_name, 65 | #j_p_postlist .d_post_content_main .p_content_nameplate, 66 | /*音乐*/ 67 | .ad-banner,.nav-banner.nav-ads,.search-result-container .mp3logo, 68 | .music-foot,.userbar .bd-feedback,.userbar .bd-feedback + .line, 69 | #adMainTopRight,.mobile-guide-pc .css-icon-pc,.ad-imax, 70 | /*视频*/ 71 | #search-union-ad,.text-advertise,#index_right_float,.baidu-adv-rightbottom-pop-container, 72 | #main > .container > div[id^="video_adm_cont"], 73 | .section .mod-full-good, 74 | #main.video-search-result-wrap div[id^="video_adm_cont"], 75 | .adv-background.animated.fadeIn, 76 | .main-content #ad_search_video_column_middle, 77 | .v2-sidebar-content #searchpage_loopVideo, 78 | .main-content #unionAdvSearchBottomMain, 79 | .side-content #unionAdvSearchBottomSide, 80 | /*百科*/ 81 | .bottom-promotion,#side_box_unionAd,#side-share,.wgt-footer-main, 82 | /*文库*/ 83 | #fengchaoad,.baichuan-slot,#docBubble,.mod.lastcell-dialog,.search-aside-adWrap,.search-aside-newadWrap,.mod.tousu, 84 | #doc #wkad5, 85 | .search-result-list-wrap .fc-first-result-wrap,.base-layout-content .base-layout-content-right,.bottom-right-dsp-ad-wrap, /* 2021-12-15 */ 86 | /*新闻*/ 87 | #ecomAdDiv_3,#ecomAdDiv_1,#gotoPage,#rs,.wrapper_l #foot, 88 | /*知道日报*/ 89 | .aside-wp .aside-union-ad, 90 | /*白度经验*/ 91 | .aside-pro-container .aside-ads-container,.main-content-bottom .bottom-ads-container, 92 | /*知道*/ 93 | #union-search_bottom,.layout-wrap .left-top-ads,.layout-wrap #union-qbbanner, 94 | #bottom_container,#container .hint_common_restop, 95 | #wrapper_wrapper #foot,#qb-side #union-asplu,#qb-side #union-qbrightdown,#qb-side #union-asplu + div:not([class^="cms-slide"]), 96 | .newsearch .aside.fixheight,table#qbleftdown-container, 97 | .newsearch #footer,.wgt-footer-new .footer-new,.bannerdown, 98 | .zhidao-index #wgt-ads,#body.container section.qb-section + div, 99 | .has-menu #body .widget-sma, 100 | .has-menu #body .widget-sma + div + div, 101 | /*移动版贴吧*/ 102 | #tlist .threads_list li:not([class="tl_shadow"]),.ue_revision .container.j_container > div[style^="background"],#j_light_see_index, 103 | /*移动版文库*/ 104 | .ec_wenku_ads, 105 | /*移动版小说*/ 106 | #bnr,._advert_show, 107 | /*移动版图片搜索*/ 108 | #imglist .waterfall-list .waterfall-row:nth-child(1), 109 | #imglist .waterfall-list .waterfall-row:nth-child(2), 110 | /*拇指医生*/ 111 | #union-qbbanner,.union-sug-wrap + div.leftnest, 112 | /*home*/ 113 | #ftCon{ 114 | display: none !important; 115 | height: 0px; 116 | overflow: hidden; 117 | } 118 | /*贴吧*/ 119 | #pb_adbanner, 120 | /*手机版*/ 121 | .ec_wise_ad{position: absolute;top: -999999px;} 122 | #thread_list > li[class^="thread_top_list_folder"]{ 123 | display: block !important; 124 | height: auto !important; 125 | overflow: auto !important; 126 | } 127 | 128 | /*音乐播放器*/ 129 | .main-wrapper > .mb-layout-bd.column4,.gold-vip-tip, 130 | #userBar .feedback, #userBar .feedback + .separator, 131 | #skin-shape + div, 132 | .column1 .m-client-product,.mbox #toptip{ 133 | display: var(--bn) !important; 134 | } 135 | #lrcCol{right:0px !important;-webkit-user-select:none;} 136 | .main-wrapper > .mb-layout-bd.column2{margin-right: -160px !important;} 137 | .playlist-length-cloud{bottom: 0px !important;} 138 | .leftbar-outer{bottom: 70px !important;} 139 | #pauseAd{position: relative;top: -99998px;} 140 | #lrcCol .link-wrapper{display: none;} 141 | /*歌词全屏模式下样式*/ 142 | :-webkit-full-screen{ 143 | position: fixed; 144 | width: 100% !important; 145 | height: 100%; 146 | z-index: 998; 147 | top: 0; 148 | left: 0; 149 | background: #ffffff !important; 150 | text-align: center; 151 | } 152 | #lrcCol .lrc-wrapper{bottom: 0 !important;} 153 | :-webkit-full-screen .ui-resizable{display: none;} 154 | :-webkit-full-screen .album-wrapper{background: transparent !important; left: 50%;margin-left: -90px !important;} 155 | :-webkit-full-screen .lrc-wrapper{font-size: 18px !important;background: transparent !important;} 156 | :-webkit-full-screen > *{z-index: 98 !important;} 157 | :-webkit-full-screen > .link-wrapper{ 158 | display: block !important; 159 | width: 120% !important; 160 | height: 120% !important; 161 | z-index: 8 !important; 162 | top: -10%; 163 | left: -10%; 164 | } 165 | :-webkit-full-screen > .link-wrapper img{ 166 | width: 200%; 167 | height: 200%; 168 | -webkit-filter: blur(50px); 169 | top: -50%; 170 | left: -50%; 171 | } 172 | :-webkit-full-screen li{ 173 | color: #ffffff !important; 174 | text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); 175 | line-height: 40px !important; 176 | text-align: center !important; 177 | } 178 | :-webkit-full-screen li.ui-lrc-current{ 179 | font-size: 20px !important; 180 | font-weight: bold !important; 181 | line-height: 60px !important; 182 | color: #00ff00 !important; 183 | } 184 | 185 | /*贴吧*/ 186 | .p_postlist > div#j_p_postlist{ 187 | height: auto !important; 188 | display: block !important; 189 | } 190 | 191 | :-webkit-full-screen .lrc-wrapper::-webkit-scrollbar {width: 0px;height:0px;} 192 | --------------------------------------------------------------------------------