Created
July 31, 2012 16:35
-
-
Save regtan/3218316 to your computer and use it in GitHub Desktop.
mixiのvoiceを自動的に読み込むuserscript
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
// ==UserScript== | |
// @name automixivoice | |
// @namespace regtan | |
// @description for mixi voice | |
// @include http://mixi.jp/* | |
// ==/UserScript== | |
function voice_reload(){ | |
var newFeed = document.getElementsByClassName("newFeed")[0]; | |
if(newFeed != null){ | |
var p = newFeed.getElementsByTagName("p")[0]; | |
if (p != null){ | |
var a = p.getElementsByTagName("a")[0]; | |
if(a != null){ | |
a.click(); | |
} | |
} | |
} | |
} | |
setInterval(voice_reload,1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mac chromeでしか動かしてないからFx+greasemonkeyとかはわかんない。多分大丈夫。