Skip to content

Instantly share code, notes, and snippets.

@user19
Last active August 29, 2015 14:09
Show Gist options
  • Save user19/8b7ca2677de5bb1c86b6 to your computer and use it in GitHub Desktop.
Save user19/8b7ca2677de5bb1c86b6 to your computer and use it in GitHub Desktop.
javascript:(function(){setInterval(function(){var x=new XMLHttpRequest();x.onload=function(){var r=JSON.parse(x.responseText).query.results;if(r!==null)window.location.href=r.a.href;};x.open("GET","https://query.yahooapis.com/v1/public/yql?q=select * from html where url=\""+window.document.getElementsByClassName("commu_name")[0].href+"\" and xpath=\"//div[@id=\'now_live\']//h2//a\"&format=json&env=store://datatables.org/alltableswithkeys",true);x.send();},3000);})();
@user19
Copy link
Author

user19 commented Nov 13, 2014

使い方はこちら

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