Skip to content

Instantly share code, notes, and snippets.

View user19's full-sized avatar

user19

  • Osaka, Japan
View GitHub Profile
@user19
user19 / add.js
Last active August 29, 2015 14:08
javascript:(function(){set=true;get=false;rm=false;var s=document.createElement('script');s.src='https://rawgit.com/user19/81f3f6b80cdc3680f49c/raw/24f516577573be86078a4df2281df36ddd65c1c1/kakaku.com.js';s.charset="UTF-8";document.body.appendChild(s)})();
javascript:(function(){set=false;get=true;rm=false;var s=document.createElement('script');s.src='https://rawgit.com/user19/81f3f6b80cdc3680f49c/raw/24f516577573be86078a4df2281df36ddd65c1c1/kakaku.com.js';s.charset="UTF-8";document.body.appendChild(s)})();
javascript:(function(){set=false;get=false;rm=true;var s=document.createElement('script');s.src='https://rawgit.com/user19/81f3f6b80cdc3680f49c/raw/24f516577573be86078a4df2281df36ddd65c1c1/kakaku.com.js';s.charset="UTF-8";document.body.appendChild(s)})();
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);})();
javascript:(function(){setInterval(function(){var x=new XMLHttpRequest();x.onload=function(){if(x.response.getElementById("now_live")!==null)window.location.href=x.response.getElementById("now_live").getElementsByClassName("community")[0].href;};x.open("GET","http://allow-any-origin.appspot.com/"+document.getElementsByClassName("commu_name")[0].href,true);x.responseType="document";x.send();},3000);})();
setInterval(function(){
var x = new XMLHttpRequest();
x.onload = function(){
if(x.response.getElementById("now_live") !== null)
window.location.href = x.response.getElementById("now_live").getElementsByClassName("community")[0].href;
};
x.open("GET","http://allow-any-origin.appspot.com/"+document.getElementsByClassName("commu_name")[0].href,true);
x.responseType = "document";
x.send();
},3000);
javascript:(function(){setInterval(function(){var%20x=new%20XMLHttpRequest();x.onload=function(){if(x.response.getElementById("now_live")!==null)window.location.href=x.response.getElementById("now_live").getElementsByClassName("community")[0].href;};x.open("GET","http://api.dan.co.jp/get/"+document.getElementsByClassName("commu_name")[0].href);x.responseType="document";x.send();},3000);})();
@user19
user19 / a.js
Created November 12, 2014 08:19
var d=document;
var el=d.getElementsByTagName('link');
var g=false;
var j=false;
for(i=0;i<el.length;i++){
if(el[i].getAttribute('rel').indexOf('alternate')!=-1){
ty=el[i].getAttribute('type');
if(ty.indexOf('application/rss+xml')!=-1||ty.indexOf('text/xml')!=-1){
g=true;
h=el[i].getAttribute('href');
javascript:(function(){setInterval(function(){var x=new XMLHttpRequest();x.onload=function(){if(x.response.getElementById("now_live")!==null)window.location.href=x.response.getElementById("now_live").getElementsByClassName("community")[0].href;};x.open("GET","http://api.dan.co.jp/get/"+document.getElementsByClassName("commu_name")[0].href,true);x.responseType="document";x.send();},3000);})();
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);})();