Created
August 27, 2010 02:52
-
-
Save rummelonp/552697 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
javascript: | |
(function() { | |
if (!location.href.match('^https?:\/\/twitter\.com/')) { | |
return; | |
} | |
var 全裸で = function(ポスト) { | |
ツイート = ポスト.getElementsByClassName('entry-content')[0]; | |
if (ツイート) { | |
ツイート.innerHTML = ツイート.innerHTML.replace(/([。!!??])/g, ' 、全裸で$1'); | |
}; | |
}; | |
(function() { | |
var ポストの配列 = document.getElementsByClassName('hentry'); | |
for (var i = 0, len = ポストの配列.length; i < len; i += 1) { | |
全裸で(ポストの配列[i]); | |
}; | |
})(); | |
document.addEventListener('DOMNodeInserted', function(event) { | |
var ターゲット = event.target; | |
if ((/hentry/).test(ターゲット.getAttribute('class'))) { | |
全裸で(ターゲット); | |
} else if (elem.getAttribute('id') === 'timeline') { | |
var ポストの配列 = ターゲット.getElementsByClassName('hentry'); | |
for (var i = 0, len = ポストの配列.length; i < len; i += 1) { | |
全裸で(ポストの配列[i]); | |
}; | |
}; | |
}, false); | |
})(); | |
void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment