How to view background image in Chrome (works in other browsers too)

Viewing a web page’s standalone background image in Chrome (may work in other browsers too)

Create a bookmark and give it a name like “View Background” or whatever you wish, then cut and paste in the following code as the bookmark’s link or location property:

javascript:var%20backup=document.body.onclick;void(document.body.onclick=function(event){var%20bodyStyle=window.getComputedStyle(document.body,null).getPropertyValue(‘background-image’);var%20bgStyle=window.getComputedStyle(event.target,null).getPropertyValue(‘background-image’);if(bgStyle!=’none’)window.open(bgStyle.replace(/url\(%22?/,”).replace(/%22?\)$/,”));else%20if(bodyStyle!=’none’)window.open(bodyStyle.replace(/url\(%22?/,”).replace(/%22?\)$/,”));document.body.onclick=backup;backup=undefined;});

To view the background image on a webpage:
i) click on your “View Background” bookmark
ii) the click on the background image in the browser
iii) the image should open in a new window

Recent testing suggests this neat trick doesn’t work in Opera, as of version 12.


Advertisements

Even when explicitly told not to do so, Windows 10 just won’t stop talking to Microsoft…

Windows 10 sends identifiable data to Microsoft despite privacy settings

* * *

Even when told not to, Windows 10 just can’t stop talking to Microsoft. It’s no wonder that privacy activists are up in arms.
* * *

Windows 10 doesn’t offer much privacy by default: Here’s how to fix it