DEV Community

Discussion on: Dev hack: Viewing tricky-to-view images in the browser

Collapse
 
kurisutofu profile image
kurisutofu • Edited

If you don't want to use the browser's console every time, for convenience, you can create a bookmark on the bookmark bar and use the url "javascript:" + code from the article + "void(0);".

This way, you get a place to click any time you need that feature.

javascript:function c(o){document.body.style.background="rgb("+o.rgb.map(Math.round).join(",")+")"}s=document.createElement("script"),s.src="https://cdnjs.cloudflare.com/ajax/libs/jscolor/2.0.4/jscolor.min.js",document.body.appendChild(s),document.body.innerHTML+="<input class=\"jscolor {onFineChange:'c(this)'}\"style='position:absolute;right:0;top:0'value='0e0e0e'type='search'autocomplete='off'>";void(0);