Skip to content
Browse files

add option to hide promoted tweets

  • Loading branch information...
1 parent df49aa4 commit 5f14ac403099a282182473243e8b2f0d8476950a @clipperhouse committed
Showing with 9 additions and 4 deletions.
  1. +2 −1 src/background.html
  2. +2 −2 src/js/contentscript.js
  3. +1 −1 src/manifest.json
  4. +4 −0 src/styles.css
View
3 src/background.html
@@ -71,7 +71,8 @@
font: false,
hidewho: true,
hidetrends: true,
- hidediscover: false
+ hidediscover: false,
+ hidepromoted: true
},
collapse: {
options: false,
View
4 src/js/contentscript.js
@@ -280,16 +280,15 @@
searches = $.map(elements, function (a) {
return $(a).data("search-query");
});
- console.log(searches);
};
var searchAll = function() {
updateSearches();
searches.forEach(doSearch);
- var searchtime = 60 * 60 * 1000 * (searches.length + 1) / searchesperhour; // rate-limit
if (searches.length) {
searchModule.show();
}
+ var searchtime = 60 * 60 * 1000 * (searches.length + 1) / searchesperhour; // rate-limit
setTimeout(searchAll, searchtime);
};
@@ -397,6 +396,7 @@
addStyleOptionCheckbox("columnwide", "Widen content");
addStyleOptionCheckbox("font", "Use serif font");
addStyleOptionCheckbox("hidediscover", "Hide #Discover");
+ addStyleOptionCheckbox("hidepromoted", "Hide Promoted tweets");
addStyleOptionCheckbox("hidewho", "Hide “Who to follow”");
addStyleOptionCheckbox("hidetrends", "Hide “Trends”");
View
2 src/manifest.json
@@ -1,6 +1,6 @@
{
"name": "Better Bird",
- "version": "0.4.8",
+ "version": "0.4.9",
"description": "Makes Twitter a bit better",
"background_page": "background.html",
"icons": { "16": "img/twitter_16.png",
View
4 src/styles.css
@@ -50,6 +50,10 @@ body.bb-hidediscover ul#global-actions > li.topics {
display:none;
}
+body.bb-hidepromoted div.promoted-tweet {
+ display:none;
+}
+
body.bb-font {
font: 15px/20px Georgia,serif;

0 comments on commit 5f14ac4

Please sign in to comment.
Something went wrong with that request. Please try again.