Skip to content

Instantly share code, notes, and snippets.

@hermanussen
Created January 21, 2018 11:23
Show Gist options
  • Save hermanussen/8a3bcc5ed18ba1c3d72715d011468f23 to your computer and use it in GitHub Desktop.
Save hermanussen/8a3bcc5ed18ba1c3d72715d011468f23 to your computer and use it in GitHub Desktop.
javascript:(function(){var wallPaper=document.getElementById('Wallpaper');if(wallPaper!=null){wallPaper.src='http://christmasstockimages.com/free/decorations/red_baubles.jpg';wallPaper.setAttribute('style','display:block;');}var desktop=document.getElementById('Desktop');if(desktop!=null){desktop.setAttribute('style','');}setInterval(function(){var iframes=document.getElementsByTagName('iframe');for(var i=0;i<iframes.length;i++){var iframedoc=iframes[i].contentDocument;if(iframedoc.getElementById('christmasstyle')==null){var cssNode=iframedoc.createElement('link');cssNode.id='christmasstyle';cssNode.type='text/css';cssNode.rel='stylesheet';cssNode.href='http://hermanussen.eu/sitecore/bookmarklets/christmas.css?rnd='+Math.random();cssNode.media='screen';cssNode.title='dynamicLoadedSheet';iframedoc.getElementsByTagName("head")[0].appendChild(cssNode);}}},1000);var cssNode=document.createElement('link');cssNode.id='christmasstyle';cssNode.type='text/css';cssNode.rel='stylesheet';cssNode.href='http://hermanussen.eu/sitecore/bookmarklets/christmas.css?rnd='+Math.random();cssNode.media='screen';cssNode.title='dynamicLoadedSheet';document.getElementsByTagName("head")[0].appendChild(cssNode);})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment