/tomcruise script
Revision as of 16:04, 12 November 2012 by Menno Harder (talk | contribs) (Created page with "<source lang="html4strict">// ==UserScript== // @name Hello world // @namespace PZI // @include * // @version 1 // @grant none // ==/UserScript== // alert("He...")
// ==UserScript==
// @name Hello world
// @namespace PZI
// @include *
// @version 1
// @grant none
// ==/UserScript==
// alert("Hello class")
var e = document.createElement('div');
e.innerHTML = "menno was here"
//document.body.appendChild(e)
f=document.body.childNodes[0]
f.parentNode.insertBefore(e, f);
e.style.fontSize = "10px"
e.style.position= "absolute"
e.style.left= "0px"
e.style.top= "-20px"
e.style.zIndex = "10000000000001"
e.style.color= "red"
imgs = document.getElementsByTagName("img")
//console.log(img[0])
var i = 0;
while(i<imgs.length){
imgs[i].setAttribute("src", "http://ia.media-imdb.com/images/M/MV5BMTk1MjM3NTU5M15BMl5BanBnXkFtZTcwMTMyMjAyMg@@._V1._SY314_CR12,0,214,314_.jpg")
imgs[i].style.border= "10px solid black"
i =i+1
}