Skip to content

Instantly share code, notes, and snippets.

@rskull
Created October 18, 2011 06:14
Show Gist options
  • Save rskull/1294734 to your computer and use it in GitHub Desktop.
Save rskull/1294734 to your computer and use it in GitHub Desktop.
ロリロリ変換機 ver.2.0
//ブックマークレット
javascript:(function(){
var s=document.createElement("script");
s.src="http://rskull.com/src/rori.js";
document.body.appendChild(s)})();
//ロリロリ変換本体
var i = 0;
var box = document.createElement("div");
box.style.fontSize = '40px';
box.style.color = '#FF69B4';
box.id = 'per';
box.innerHTML = 'ロリ汚染率 0%';
document.body.insertBefore(box, document.body.firstChild);
var link = document.links;
var len = link.length;
var timer = setInterval( function () {
if (i == len) {
clearInterval(timer);
alert('ロリロリ洗脳完了');
}
link[i].innerHTML = 'ロリロリ';
i++;
document.getElementById('per').innerHTML = 'ロリ汚染率 ' + Math.floor(i/len * 100) + '%';
},100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment