Skip to content

Commit 3996f04

Browse files
committed
first commit
0 parents  commit 3996f04

4 files changed

Lines changed: 50 additions & 0 deletions

File tree

content.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var timer = setInterval(hideTweets,5000);
2+
3+
4+
function hideTweets() {
5+
var tweets = $( "div [data-you-follow|='false']" );
6+
for(var i=0;i<tweets.length;i++){
7+
if (!tweets[i].hasAttribute("data-retweeter") && !$(tweets[i]).hasClass("descendant") && !$(tweets[i]).hasClass("js-actionable-user") && !$(tweets[i]).hasClass("my-tweet")){
8+
$(tweets[i]).css( "display","none");
9+
10+
11+
} // end if
12+
} // end for
13+
} // end hideTweets()
14+

jquery-3.2.1.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

manifest-fx.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
3+
"manifest_version": 2,
4+
"name": "OnlyFollowedTweets",
5+
"version": "1.1",
6+
7+
"description": "Removes tweets in your timeline that don't belong there, such as tweets liked by people you follow.",
8+
9+
"icons": {
10+
"96": "OFT-Logo-96.png"
11+
},
12+
13+
"content_scripts": [
14+
{
15+
"matches": ["http://www.twitter.com/","https://twitter.com/"],
16+
"js": ["jquery-3.2.1.min.js","content.js"]
17+
}
18+
]
19+
20+
}

manifest-gc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name":"OnlyFollowedTweets",
3+
"description":"Removes tweets in your timeline that don't belong there, such as tweets liked by people you follow.",
4+
"version":"1.1",
5+
"manifest_version":2,
6+
"content_scripts": [
7+
{
8+
"matches": ["http://www.twitter.com/","https://twitter.com/"],
9+
"js": ["jquery-3.2.1.min.js","content.js"]
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)