Skip to content

Instantly share code, notes, and snippets.

View user19's full-sized avatar

user19

  • Osaka, Japan
View GitHub Profile
javascript:(function(){ID='90021';var d=document;var s=d.createElement('script');s.src='https://rawgit.com/user19/0f5e90112d6747c60f27/raw/1ba63989812e93c1ebbe95de58fc868ea804a96b/ghost_panic.js';d.body.appendChild(s)})();
function xhrStart(method,url,data,requestHeader,callback){
var xhr = new XMLHttpRequest();
xhr.onload = function(){
callback(xhr.response);
}
xhr.open(method,url);
if(requestHeader !== null)
for(key in requestHeader)
xhr.setRequestHeader(key,requestHeader[key]);
xhr.responseType = "document";
javascript:(function(){var subscriberElement=document.getElementById('c4-primary-header-contents').getElementsByClassName('yt-subscription-button-subscriber-count-branded-horizontal yt-uix-tooltip')[0];var i=another=Number(subscriberElement.innerHTML.replace(",",""));var count=setInterval(function(){counter(i);i+=9;if(i>=another+10000){clearInterval(count);}},10);function counter(num){subscriberElement.innerHTML=String(num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,'$1,');}})();
javascript:(function(){var viewElement=document.getElementById('watch7-views-info').getElementsByClassName('watch-view-count')[0];var i=another=Number(viewElement.innerHTML.replace(",",""));var count=setInterval(function(){counter(i);i+=9;if(i>=another+10000){clearInterval(count);}},10);function counter(num){viewElement.innerHTML=String(num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,'$1,');}})();
javascript:(function(){var buttonElements=document.getElementById('watch-like-dislike-buttons').getElementsByClassName('yt-uix-button-content');var viewElement=document.getElementById('watch7-views-info');var i=another=Number(buttonElements[0].innerHTML.replace(",",""));var j=Number(buttonElements[1].innerHTML.replace(",",""));var count=setInterval(function(){counter(i);i++;if(i>=another+1000){clearInterval(count);}},10);function counter(num){buttonElements[0].innerHTML=String(num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,'$1,');viewElement.getElementsByClassName('video-extras-sparkbar-likes')[0].style.width=100*num/(num+j)+'%';viewElement.getElementsByClassName('video-extras-sparkbar-dislikes')[0].style.width=100*j/(num+j)+'%';}})();
var buttonElements = document.getElementById('watch-like-dislike-buttons').getElementsByClassName('yt-uix-button-content');
var viewElement = document.getElementById('watch7-views-info');
var i = another = Number(buttonElements[0].innerHTML.replace(",",""));
var j = Number(buttonElements[1].innerHTML.replace(",",""));
var count = setInterval(function(){
counter(i);
i++;
if(i >= another+1000){
clearInterval(count);
}
var viewElement = document.getElementById('watch7-views-info').getElementsByClassName('watch-view-count')[0];
var i = another = Number(viewElement.innerHTML.replace(",",""));
var count = setInterval(function(){
counter(i);
i += 9;
if(i >= another+10000){
clearInterval(count);
}
},10);
function counter(num){
var subscriberElement = document.getElementById('c4-primary-header-contents').getElementsByClassName('yt-subscription-button-subscriber-count-branded-horizontal yt-uix-tooltip')[0];
var i = another = Number(subscriberElement.innerHTML.replace(",",""));
var count = setInterval(function(){
counter(i);
i += 9;
if(i >= another+10000){
clearInterval(count);
}
},10);
function counter(num){
if(location.hostname === "github.com")
var url = location.href.replace("/blob","");
else if(location.hostname === "gist.github.com")
var url = document.getElementsByClassName('minibutton raw-url js-view-raw')[0].href;
else if(location.hostname === "gist.githubusercontent.com" || "raw.githubusercontent.com")
var url = location.href;
prompt("URL for development",url.replace(location.hostname,"rawgit.com"));
javascript:(function(){if(location.hostname === "github.com")var url = location.href.replace("/blob","");else if(location.hostname === "gist.github.com")var url = document.getElementsByClassName('minibutton raw-url js-view-raw')[0].href;else if(location.hostname === "gist.githubusercontent.com" || "raw.githubusercontent.com")var url = location.href;prompt("URL for development",url.replace(location.hostname,"rawgit.com"));})();