Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Klaus Nomi (See related posts)

// ==UserScript==
// @name nomi
// @namespace http://www.bigbold.com/snippets/user/youpy
// @description NOMI
// @include *
// ==/UserScript==

(function (){
imgs = document.getElementsByTagName('img');
for(i = 0; i < imgs.length; i ++) {
imgs[i].src = 'http://images.google.com/images?q=tbn:v0zJeXKeczEJ:www.icicom.up.pt/blog/tendadosindios/archives/klausnomi1.jpg'
}

})();

Comments on this post

mrclay posts on Mar 31, 2006 at 13:41
This is an important development in the field of user scripting, but it does not go far enough. Consider the following addition:
// untested!
var css = document.createElement('style');
css.innerHTML = '*{background:url(http://images.google.com/images?q=tbn:v0zJeXKeczEJ:www.icicom.up.pt/blog/tendadosindios/archives/klausnomi1.jpg) !important;color:transparent !important}body>*:last-child:after{content:\'nomi!\';color:#fff !important;font-size:100px}';
document.getElementsByTagName('head')[0].appendChild(css);

You need to create an account or log in to post comments to this site.


Click here to browse all 5146 code snippets

Related Posts