Jump to content

I found a piece of code that changes all images on a webpage to be changed to the ones on the button. (I don't know the original coder who made this, I just edited it with Linus pics)

 

So, I present to you The Linus Button! Works on ANY page with images. Now you don't need to leave the comforting look of Linus's face. This does not affect the website performance wise. It is all visual. Only the user who pressed it can see it. Enjoy!

javascript:(function nomify(){var shapes={"w_rect":["bJ4nrl4.png","fyMhiIL.gif","YslZs6I.png"],"t_rect":["PX2Yrj9.png","eDIKJuk.jpg"],"square":["nDbQjtw.jpg"]},img_path="http://i.imgur.com/";function chooseImg(shape){return img_path+shapes[shape][Math.floor(Math.random()*shapes[shape].length)]}function getShape(h,w){return h===w?"square":h>w?"t_rect":"w_rect"}var imgs=document.getElementsByTagName("img"),img,h,w,shape;for(var i=0,len=imgs.length;i<len;i++){img=imgs[i],h=img.height,w=img.width,s=getShape(h,w);img.setAttribute("height",h);img.setAttribute("width",w);img.src=chooseImg(s)};return void 0;})()

Instructions:

1. Highlight code (the thing above).

2. Drag it to your bookmark bar.

3. Click the button on any page that contains images.

4. Continue your ascension in the master race.

 

Example:

 

jjoRGZz.jpg

"With every meeting, comes a parting. However, not every parting has to last forever."

Link to comment
https://linustechtips.com/topic/82667-the-linus-button/
Share on other sites

Link to post
Share on other sites

this is kinda disturbing and cool at the same time

My build: Cpu: (AMD Ryzen 7 1700) Heatsink: (Deepcool Captain 240 rgb) GPU: (Zotac AMP! GTX 1060 6gb) Ram: (Corsair LPX 8Gb DDR4 2400) Mobo: ( Gigabyte AX370 Gaming K&) Case: (NZXT Phantom 410 Gunmetal) PSU: (Lepa B550 550w) OS:  (Windows 10

Link to comment
https://linustechtips.com/topic/82667-the-linus-button/#findComment-1128128
Share on other sites

Link to post
Share on other sites

this is the coolest thing i think i have ever found........

CPU: i7 4770k@4.3Ghz GPU: GTX 780ti Motherboard: ROG maximus vi formula PSU: Evga supernova 1000w Platinum

Case: NZXT Switch 810 Memory: g.skill ripjaws X Cooler: Corsair h100i(getting custom loop when i get money next) Storage: Samsung 840 evo 250gb Keyboard: Corsair K95 Mouse: SteelSeries Rival

Link to comment
https://linustechtips.com/topic/82667-the-linus-button/#findComment-1128773
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×