Automatic image resizing - small for the size of the window

When you view a stand-alone image too large to fit in the window, Firefox it is automatically resized.

That is fine, but I'm on small images most of the time. Have to zoom in manually the image each time to get around window size is very tedious, and I would avoid the rigmarole.

Expansion Image Autosizer for Opera has the function I'm looking for, but I couldn't find an equivalent for Firefox.

I wrote a user script (for use with Scriptish).

  • It automatically zooms in small images.
  • Left click the image, it returns to its original size.
  • Left click again of will zoom in again (useful for example if you maximize the window to get a better view, after the image has already been automatically zoomed in).
  • By default, this script does not on URLs without an extension of image (like this comic) file. These URLS can be added manually in Scriptish preferences for the script.
// ==UserScript==
// @id             dc989f0a-f9e6-4507-ba5f-a0730a614553@http://forums.mozillazine.org/memberlist.php?mode=viewprofile&u=261941
// @name           Auto zoom lone images
// @version        2.5
// @namespace      http://forums.mozillazine.org/memberlist.php?mode=viewprofile&u=261941
// @author         Gingerbread Man
// @description    Automatically zoom small standalone images
// @include        http://*.jpg
// @include        https://*.jpg
// @include        http://*.gif
// @include        https://*.gif
// @include        http://*.png
// @include        https://*.png
// @run-at         window-load
// ==/UserScript==

var img = document.images[0];
var iw = img.width;
var ih = img.height;
var ir = iw / ih;

function togglezoom() {
	if (img.width>iw||img.height>ih) {
		img.width = iw;
		img.height = ih;
		img.setAttribute("style","cursor:-moz-zoom-in");
	}
	else zoomin();
}

function zoomin() {
	var ww = window.innerWidth;
	var wh = window.innerHeight;

	if (iw<ww&&ih<wh) {
		img.addEventListener("click", togglezoom, false);
		var zohw = wh * ir;

		if (zohw<=ww) {
			img.height = wh;
			img.width = img.height * ir;
			img.setAttribute("style","cursor:-moz-zoom-out");
		}

		else {
			img.width = ww;
			img.height = img.width / ir;
			img.setAttribute("style","cursor:-moz-zoom-out");
		}

	}

}

zoomin();

//.user.js

I guess since I have not received all the suggestions, I'll mark this as the solution.

Tags: Firefox

Similar Questions

  • Lightroom will install the catalog in C:, but I need another path for installation because the hard drive c: is an SSD, it is to small for the pictures and the catalogue lightroom. How how to install lightroom on a different HARD drive?

    I need help with installation of lightroom 5 on a HARD drive, for the start of the SSD is to small for the catalog and images. Please can anyone help with information. There is no possibility of EIB "Bearbeiten - Katalogeinstellungen" ist just the way c:/users/...etc fixed. Is the anywere that can help you.

    Thanks FRANK

    Why I can not install Lightroom to a custom through the creative cloud location?

    Lightroom must be installed on your local disk and cannot be installed to a creative custom as other Cloud applications location. Lightroom always installs to the default location and does not take into account any preference you select for a custom location. This behavior is specified.

  • After you import an image (.jpeg) file for the Photos on my Mac app, can I safely delete this image file to save space on my hard drive?

    After you import an image (.jpeg) file for the Photos on my Mac app, can I safely delete this image file to save space on my hard drive?

    Yes, you can remove the file from the imported image, if you have imported the image as managed.  IE preferences in ave Photos settled on "import: copy items to the photo library" being the default.

  • BlackBerry Smartphones too small for the phone battery?

    Hello! I need help.

    My sister has a curve (8520). She overcharge the battery, so of course, it is inflated. We got him a new battery, which now seems to be too small for the phone. The only thing I can think is that the phone has somehow expanded, but that seems very unlikely to me. I don't understand how that would have happened?

    Could someone help me on this, because I spent twice that the phone is a value, over a period of time, trying to get this fixed up for her, and I have neither the time nor the inclination to deal with service providers.

    Thanks in advance.

    First of all, a swollen battery does not mean that the battery has been overloaded. It does not mean it probably needs to be replaced but I saw him slightly swollen batteries work fine.

    If the new battery is 'too small', then it is likely, that you have the bad battery. The device did not inflate with battery.

  • It seems that wrapped text will not host photo resizing without cutting and pasting the image resized, is - what the Muse way is suppose to work?

    It seems that wrapped text will not host photo resizing without cutting and pasting the image resized, is - what the Muse way is suppose to work?

    It would be the default path to wrap the text with the image when you work in Design view.

    This document explains more:

    https://helpx.Adobe.com/Muse/using/wrapping-text-image.html

    Thank you

    Sanjit

  • When the browser window content Cup (was too small for the page) scroll bar will not scroll content cropped.

    Hey everybody,

    I have a new problem with Muse. It's my first Muse site, all my previous web work was HTML CSS, but I'm trying to learn the programs. However, I have a weird problem with my page... When the browser is too small - aka the window displaying the site is cropping some content, the scroll bar appears, but it won't scroll... I don't understand why. It seems to be the case in all browsers. Similarly, on some computers my footer is missing or invisible, not sure why, but on my computer I don't have the problem in all browsers (firefox, chrome, safari). Any advice?

    www.DanielleFeliciano.com

    In addition, in site properties that I have the minimum height, the value to show the entire page, don't know what is happening. I also noticed, the scroll bar appears when the page is cut off, it will not simply scroll...

    Looks like you have your content made the fallen on the homepage... or on a layer that is pinned. Probably the header layer.

  • Request concerning the sequence of updates for the Windows Update client in 2015

    I posted a query similar to this on a Microsoft Technet forum, but I have not yet received a response to the specific question that I asked.  I'm trying so this forum.

    I am running Windows 7 Home Premium SP1, but I did not intend to accept the free update of Windows 10.  I don't use automatic updates.  I use Windows Update manually and select the updates to install, even for these updates identified as Important.

    Since April 2015, there was a sequence of updates for the client Windows Update on Windows 7 (Windows 8).  I have the Windows 7 of those below list:

    KB2990214 (April 2015)

    KB3050265 (June 2015)

    KB3065987 (July 2015)

    KB3075851 (August 2015)

    KB3083324 (September 2015)

    KB3083710 (October 2015)

    KB3102810 (November 2015)

    KB3112343 (December 2015)

    (This list is probably less intimidating than it looks because the replaced October update Update September, which replaced the August update, which replaced the July update, which replaced the June updated.  "There are therefore basically just 4 updates.)

    The big question is, given that Windows 7 is available for several years, why, all of a sudden, there was this sequence of updates for the Windows Update client?  Because these updates began to occur at the time when the offer of a free upgrade to Windows 10 was announced, I could be forgiven for thinking that all of these updates are really directed towards the relaxation of the upgrade to Windows 10 via Windows Update, and that there is little or no advantage to systems that are not upgrading.  I am mistaken in this belief?  If not, precisely those who will benefit from my system, even if it is not upgraded to Windows 10?

    The updates that I currently installed, depending on the installed updates, are KB2990214 (April 2015), KB3075851 (August 2015), KB3083324 (September 2015) and KB3083710 (October 2015).

    In my view, there was a lack of transparency in the descriptions of these updates in the KB articles.  And, in one or two cases, information on the importance of an update in the article and in Windows Update has been inconsistent.  It would have been much clearer if each KB article stated for NOT upgrading to Windows 10 systems, if the update to the Windows Update client is important, as an option or completely irrelevant.

    Hello, Tiberius.

    Thank you for your response.

    I'm sorry for the late reply.

    I appreciate your time and your concern.

    You can read this article and check if it helps.
    Next update to Microsoft Update Client
    http://blogs.technet.com/b/Mu/archive/2014/06/24/upcoming-update-for-Windows-Update-client.aspx

    Please keep us informed.

    Thank you

  • dDoes anyone know of any legitimate code of windows search programs and a way to get the code for the window using the product id and receipt of a store

    Original title:

    Windows code

    I have 2 questions... 1 is - anyone know of any legit windows code, find online programs for windows on a computer code. My wifes sister and she want to fix his computer by putting in a new hard drive and installing windows, but I wanted to see if I could legitimate his computer code and the sticker is missing, damaged already.

    2. is possible to get the code for the window using the id and product received in a store you microsoft some how I have two computer, I bought my children 3 years ago and to replace hard drives with larger ones, and one of them still has readable sticker.    Thanks again

    As I said, reported for an installation by the manufacturer OEM of Windows key code reflects the image of their system and not the license key on the sticker that is what is needed for a re-installation of consumer, is not surprising that the Samsung 2 is the same.  The key to the thumbnail is not stored anywhere other than on the tile.

    If you cannot or do not want to clone the disks, you can buy a recovery media set at the manufacturer or new media of Windows 7 (becomes very expensive and problematic for the commercial version that MS no longer sells it).

  • I have toshiba laptop that missed my virus protection and my laptop a week ago has changed for the windows Classic theme, all the other themes are greyed out so you cannot select them,

    I have toshiba laptop missed my virus protection and my laptop a week ago has changed for the windows Classic theme, all other themes are greyed out so you cannot select them, my internet has also stoped working, I also can't do a system restore as it says it does not work any body can help me please?

    My laptop will also not me do a backup.

    Try these:
    METHOD 1:
    Back up all the files on a USB Flash drive or an external hard drive and re - install Windows on the hard disk of laptop.
    -------------------------------------------------------------
    METHOD 2:

    Try partitioning your hard drive and put your files there.

    1. Start menu search: 'drive '.
    2. click on create and format hard disk partitions
    3 right-click the Local Disk (C) and select shrink.
    4. According to the size of the files, we could save, choose the size you want to reduce (1000 MB = 1 GB)
    5. right click on the new "unallocated space" and create the Partition. (Name it BACKUP or something)
    6. place all your important files on the new partition, and then, when you reinstall Windows, select the Local Disk (C)
    DO NOT select the Partition you you saved on files.
    Hope that these answers are useful.
  • The product key for the Windows Media Center 8 does not work!

    I tried 3 or 4 times to use the product key for the Windows Media Center 8, that you sent. But it keeps saying "this key will not work. Check it or use a different key. "I tried too communicate with someone who could help me and now I am very displeased with Windows. I tried several times.

    You are running Windows 8 or Windows 8 Pro? Media Center requires that you run Windows 8 Pro and your installation must be enabled.

    http://techingiteasy.WordPress.com/2012/11/29/how-to-get-your-free-Windows-Media-Center-key-for-Windows-8-Pro/

    Add the feature does not

    To work around this problem, disable the Nalpeiron Licensing Service until you try to install the feature. To do this, follow these steps:1.Swipe from the right edge of the screen, and then click search. Or, if you use a mouse, point to the corner bottom right of the screen, then click on search.

    2. type services.msc, and then press or click on Services in the results of research.

    3. press on or double-click Nalpeiron Licensing Service or NLS.

    4 tap or startup type-click and select disabled.

    5. press or click OK.

    6. restart the computer.

    7 install the feature and then restart the computer.

    8. Repeat step 1 to step 3, and then change the startup type for the licensing of Nalpeiron or NLS on automatic Service.

    9. click OK and restart the computer.

    The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

  • automatic updates are installed for Firefox (3.6) on Windows 7, every 2 days - is this normal?

    automatic updates are installed for Firefox (3.6) on Windows 7, every 2 days - is this normal?

    This has happened

    A few times a week

    == I've upgraded to WIndows 7

    See https://support.mozilla.com/en-US/forum/1/735744

  • 00000646 error code when you install windows updates and upgrades security for the windows desktop.

    When I try to download windows office updates and security of office windows dates I get an error code 00000646. I don't use windows desktop and I did not sign up for the windows desktop. could this way is not not the administrator of windows on my computer desktop, this is the reason why I can't download these dates?

    Hello

    Here's what I recommend:

    1 disable UAC. Down comes the restrictions - turn it off completely.
    2 restart your computer for the change to take effect.
    3 re - download the update of security for Microsoft Office System 2007 (KB982331) from the link below:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=7f89a734-cda4-4abb-9a10-f6dfe560e8d0&displaylang=en
    4. install. It should work fine.
    5. If it still does not work, try to open all or part of your MS Office applications.
    6. follow step 3.

    Let me know your results.

  • Where can I find the update for the windows platform. In addition, MSN Plus Live does not work.

    Original title: confused

    OK im a little confused.

    where can I find the update for the windows platform.

    I want to download the new msn, but I do not have windows update of the platform and can't find it anywhere.

    also my more live msn! has not worked.

    Help, please. Thanks x

    Hi Meg,
     
    Try to move to the next step to get updates for Windows Vista platform.
     
    The platform for Windows Vista update can be downloaded from Windows Update. To obtain these updates, follow these steps:
     
    1. Click Start, click all programs and then click Windows Update.
    2. in the navigation pane, click Find updates.
    3. when updates are found, click on view available updates.
    4. Select the package update that you want, and then click on install.
     
    For more information, see: http://support.microsoft.com/kb/971644/
     
    Regarding MSN more Live and MSN, your question would be better suited to Windows Live help community. Please visit the link below to find a community that will provide the best support.
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Can't send or receive messages for the Windows Live Hotmail account. Windows Live Mail error ID: 0 x 80048849

    Can't send or receive messages for the Windows Live Hotmail account.

    Server error: 0 x 80048849
    Server: 'https://mail.services.live.com/DeltaSync_v2.0.0/Sync.aspx '.
    Windows Live Mail error ID: 0 x 80048849

    Hello Ian Rousell,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • How to create a shortcut for the Windows on the desktop community?

    Original title: widdget windows community?

    can I get a widget for the windows community?  I don't know if widdget is the word just sorry, I'd like something for my office (sort of click and go) kind of thing.

    Hello

    Thanks for posting your query in Microsoft Community.

    According to the description, it seems that you want to create a shortcut to the Windows community on the desktop. Correct me if I misunderstood the question.

    (1) what do you mean by Windows community? Microsoft Community are you referring?

    If so, I suggest you follow the steps to create a shortcut to the site and check out:

    (a) open the Web sites.

    (b) copy the link, right-click on the desktop and select new , and then click shortcut.

    (c) Paste the link in the shortened window then click Next and type a name for the shortcut.

    (d) click Finish.

    I hope this helps. Try the above steps and get back to us for further assistance if you have questions about the Windows operating system. We will be happy to help you.

Maybe you are looking for

  • trying to update my locked apple iPad 2.  has received the error 1671. What should I do?

    My iPad 2 is locked to try to enter the incorrect password.  I use it in my bakery and someone must have been playing with it.  Now, I ran out of time to try and it is locked.  I tried to erase everything and, when I did I got the error 1671. Help.

  • Error 1031 with VI Server

    Hello I'm working on a project that uses a VI server to control a piece of hardware constantly between several DLL calls. I have several remote calls that simply enter the main server reference and call a version of a function remote. It works for ab

  • Sony Handycam movie player Codec problem

    Please help me - I am trying to download my Sony handycam to movie maker but repeat me this for the video (but pictures download very well!) "The file E:\MP_ROOT\101PNV01\M2U00005. MPG cannot be imported because the codec required to play the file is

  • Accident causes the module ADOBE SHOCKWAVE. You have to disable to run, but lose the screen resolution.

    I can't set my screen resolution. I'm stuck on the VGA mode. My driver and software are 'best' available depending on the diagnosis. Can I change the resolution in 'safe' mode but it is not XP.

  • Wireless, used to work but now does not work

    Until recently, I have not had any problems with my wireless. We had a problem with our router that I tired to solve and played a bit with some of the internet settings, I think that maybe I changed something permanent as since then the wirelles work