Disable auto fit to window of large images in Opera
Tuesday, April 19, 2011 9:10:06 AM
Opera 11.10 shrinks large images to fit in window and several users don't like this and they want an option to disable it. Auto fit to window of large images can be disable this using any one of the methods below.
- Install Image Autosizer extension.
- O Menu > Extensions > Manage Extensions > Gear icon for Image Autosizer > Preferences > Advanced > View modes > When image is larger than window > Enable default & Original

Image Autosizer extension advanced options
- Copy C:\Program Files\Opera\styles\image.css in Windows OS or /usr/share/opera/styles/image.css in Linux OS to profile\styles directory. This is to avoid overwriting during update and to make backup easy.
- Add the following CSS code to the bottom of copied file and save.
/* Disable auto resizing of large images code starts here */ *, *::before, *::after { position: static !important; height: inherit !important; width: inherit !important; cursor: default !important; padding: 0px !important; margin-left:auto; margin-right:auto; } /* Disable auto resizing of large images code ends here */ - Choose modified Image Style File and save.
- Restart Opera.
Create a NoImgAutoResize.js file with the following code inside userjs directory.
// ==UserScript==
// @description Disables auto resizing of large images
// @author Fartan
// ==/UserScript==
if(document.querySelector("head>link[rel='stylesheet'][href='opera:style/image.css']")) window.donotrun=true;
[Bertalan Dávid & Fartan via forums]














.







