Created
October 18, 2011 06:14
-
-
Save rskull/1294734 to your computer and use it in GitHub Desktop.
ロリロリ変換機 ver.2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ブックマークレット | |
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