-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# Twitter-Weibo-Ad-Cleaner | ||
# Chrome-Extention: Twitter-Weibo-Ad-Cleaner | ||
Twitter and Weibo Ad Cleaner | ||
|
||
This is a Chrome Extention for removing advertisement and promotion infomation. | ||
|
||
## Install | ||
|
||
Download this repo to `/your/path/Chrome-Extention-Twitter-Weibo-Ad-Cleaner`. | ||
|
||
In the Chrome browser, visit `More Tools` - `Extensions`. | ||
|
||
Enable `Developer mode`. | ||
|
||
Click `Load unpacked` with this repo. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/***************************** for Twitter ******************************/ | ||
|
||
[data-promoted="true"], .dashboard-right | ||
{ | ||
display: none; | ||
} | ||
|
||
|
||
|
||
/***************************** for Weibo ********************************/ | ||
|
||
[feedtype="ad"], [node-type="recommendTopic"] | ||
{ | ||
display: none !important; | ||
} | ||
|
||
.WB_main_r, #v6_pl_content_biztips, .gn_search_v2 span.placeholder, .gn_topmenulist_search | ||
{ | ||
display: none !important; | ||
} | ||
|
||
.gn_nav_list li:not(:last-child) { | ||
display: none !important; | ||
} | ||
|
||
.WB_frame | ||
{ | ||
padding: 50px 0 0 0 !important; | ||
padding-left: 100px !important; | ||
} | ||
|
||
.WB_main_c { | ||
width: 700px !important; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$(function () { | ||
setTimeout(() => { | ||
$("#v6_pl_content_publishertop textarea").val("Clean version."); | ||
}, 2000); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// run this method after click the button | ||
chrome.browserAction.onClicked.addListener(function(activeTab) | ||
{ | ||
// run run.js | ||
chrome.tabs.executeScript( activeTab.id , {file:'run.js'}); | ||
}); | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"manifest_version": 2, | ||
|
||
"name": "Remove-Twitter-Weibo-Ad", | ||
"description": "A Chrome Extension for removing ads from Twitter and Weibo. Logo from https://thenounproject.com/monstercritic", | ||
"version": "1.0", | ||
|
||
"permissions": [ | ||
"http://*/*","https://*/*", | ||
"tabs", | ||
"notifications", | ||
"alarms" | ||
], | ||
"browser_action": { | ||
"default_icon": "logo.png" | ||
} | ||
, | ||
"background": | ||
{ | ||
"scripts": ["background.js"] | ||
}, | ||
"web_accessible_resources": [ | ||
"logo.png" | ||
] | ||
|
||
, | ||
"content_scripts": [ | ||
{ | ||
"matches": ["https://twitter.com/*","https://www.facebook.com/","http://weibo.com/*","http://www.weibo.com/*","https://weibo.com/*","https://www.weibo.com/*"], | ||
"css": ["app.css"], | ||
"js": ["jquery-3.2.1.min.js","app.js"] | ||
} | ||
] | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alert("Version 1.0: \n Remove Ads on Weibo and Twitter."); |