DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Klaus Nomi

12.27.2005
| 4091 views |
  • submit to reddit
        
// ==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

Steve Clay replied on Fri, 2006/03/24 - 4:45pm

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);