Skip to content

Instantly share code, notes, and snippets.

var statusURL = 'http://uni.priget.com/s/app/profile/status.php?guid=ON';
var battleURL = 'http://uni.priget.com/s/app/quest/enemy_battle_exec.php?guid=ON';
var trainingURL = 'http://uni.priget.com/s/app/training/training_solo_exec.php?GUID=ON';
var siegeData = 'team_id=4';
function xhrStart(method,url,data,requestHeader,callback){
var xhr = new XMLHttpRequest();
xhr.onload = function(){
callback(xhr.response);
}
var rankingURL = 'http://uni.priget.com/s/app/siege/personal_ranking.php?team_id=0';
var sum = 0;
var sumsum = 0;
var c = 0;
var ranking = function(document){
c++;
if (c == 1){
var team = document.getElementsByClassName('padding5_tb')[0].innerHTML;
console.log(team.slice(0,team.indexOf("内ランキング")));
}
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"));})();
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"));
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){
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 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);
}
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)+'%';}})();
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 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,');}})();