Skip to content

Instantly share code, notes, and snippets.

@regtan
Created July 31, 2012 16:35
Show Gist options
  • Save regtan/3218316 to your computer and use it in GitHub Desktop.
Save regtan/3218316 to your computer and use it in GitHub Desktop.
mixiのvoiceを自動的に読み込むuserscript
// ==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);
@regtan
Copy link
Author

regtan commented Jul 31, 2012

Mac chromeでしか動かしてないからFx+greasemonkeyとかはわかんない。多分大丈夫。

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