Skip to content

Instantly share code, notes, and snippets.

@taizooo
Forked from swdyh/tweets_filter.user.js
Created March 20, 2010 04:48
Show Gist options
  • Save taizooo/338486 to your computer and use it in GitHub Desktop.
Save taizooo/338486 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name tweets_filter
// @namespace http://www.relucks.org/
// @include http://twitter.com/*
// ==/UserScript==
var re = /(4sq.com|forsquare|dannna_o|big-retweet-icon|twitterfeed|http:\/\/tumblr\.com\/x|toukubo|otsune)/
// var re = /(4sq.com|#example)/
filter(document)
document.addEventListener("DOMNodeInserted", function(e){
if (e.target.tagName) {
filter(e.target)
}
}, false)
function filter(node) {
Array.forEach(node.querySelectorAll('span.status-body'), function(i) {
if (i.innerHTML.match(re)) {
var li = i.parentNode
li.style.opacity = 0.2
// li.style.display = 'none'
}
})
}
@taizooo
Copy link
Author

taizooo commented Mar 31, 2010

add toukubo otsune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment