Zoom level indicator?

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

User avatar
tellu-white
Moon lover
Moon lover
Posts: 83
Joined: 2022-03-08, 22:02

Re: Zoom level indicator?

Unread post by tellu-white » 2022-12-12, 17:20

00Septimus wrote:
2022-12-12, 10:41
I couldn't download it from mediafire.com because the query "I'm not a robot" appeared and then my antivirus program blocked the query page
Interesting! My antivirus has never blocked the "mediafire.com" page nor the "I'm not a robot" test on this page (a test that only appears once in a while). In addition, before using "mediafire.com" I checked the page on "virustotal.com" and there the result was: "No security vendors flagged this URL as malicious":
https://www.mediafire.com/
No security vendors flagged this URL as malicious
https://www.virustotal.com/gui/url/9a0ff5a3e34286b2e53192003fca8b6c7b00ad6df3c681765da04ccaa54c0919/detection
Virustotal - ''mediafire.com''.png
*****

I have modified the add-on again to fix a small bug and to remove (again) the display of the zoom for pages without zoom (i.e. those with zoom=100%). You can download it here (Display Page Zoom in URL Bar v2.1):

https://www.mediafire.com/file/13juffrt5i6g7qe/display_page_zoom_in_url_bar_v2_1.zip/file

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Zoom level indicator?

Unread post by Kris_88 » 2022-12-13, 02:25

tellu-white wrote:
2022-12-12, 17:20
I have modified the add-on again to fix a small bug and to remove (again) the display of the zoom for pages without zoom
Maybe it will come in handy...

Code: Select all

<?xml version="1.0"?>
<overlay id="zoomlabel_overlay"	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="application/javascript"><![CDATA[
  window.addEventListener("load", function(e) {
  
    if(ZoomManager.zoomlabel_setZoomForBrowser) return;
  
    ZoomManager.zoomlabel_setZoomForBrowser = ZoomManager.setZoomForBrowser;
    ZoomManager.setZoomForBrowser = function(aBrowser, aVal) {
      ZoomManager.zoomlabel_setZoomForBrowser(aBrowser, aVal);
      UpdateLabel();
    };

    gBrowser.addEventListener("ZoomChangeUsingMouseWheel", function() {
      UpdateLabel();
    });
  
    gBrowser.addProgressListener({ onLocationChange: function() {
      UpdateLabel();
    }});
  
    function UpdateLabel() {
      try {
        var label = document.getElementById('zoomlabel_id1');
        if(label) {
          var  zoom = ZoomManager.getZoomForBrowser(gBrowser.selectedBrowser);
          label.value = Math.round(zoom*100) + '%';
          // label.style.display = (zoom == 1) ? 'none' : 'initial';
        };
      } catch(e) {};
    };
  
  }, false);
]]></script>


  <toolbaritem id="zoom-controls">
    <label id="zoomlabel_id1" value="100%" insertbefore="zoom-in-button"
      style="padding-top:6px; font-size:13px;"
    />
  </toolbaritem>

</overlay>


User avatar
00Septimus
Apollo supporter
Apollo supporter
Posts: 38
Joined: 2022-03-22, 14:22
Location: DE

Re: Zoom level indicator?

Unread post by 00Septimus » 2022-12-13, 10:43

tellu-white wrote:
2022-12-12, 17:20
...I have modified the add-on again to fix a small bug and to remove (again) the display of the zoom for pages without zoom (i.e. those with zoom=100%)...
Thanks for this helpful add-on.

What I particularly like is that it only shows up when a page has been zoomed in or out. And since it shows up in the url bar, you can see the zoom level right away. The additional reset option with a mouse click is also nice.

Regarding downloading from mediafire: the first time I downloaded this add-on I was using a computer that didn't have Pale Moon installed, with Edge browser. Maybe my troubles with the download were because of that - Edge probably allows all sorts of scripts to display ads. After I installed Pale Moon on this PC as well, the download went straight away without any problems and the antivirus program stayed quiet too.
Maybe I had confused mediafire with another file hoster or search engine in my memory. In any case, virustotal.com and my AV program have nothing to complain about at mediefire.com - the one message that came up when downloading with Edge probably concerned an advertiser or the anti-robot query.
I get my contributions translated online into English
If the impression arises that I babble drunk nonsense - that was not me.
Please beat up the translator ;-)

User avatar
tellu-white
Moon lover
Moon lover
Posts: 83
Joined: 2022-03-08, 22:02

Re: Zoom level indicator?

Unread post by tellu-white » 2022-12-13, 20:15

Kris_88 wrote:
2022-12-13, 02:25
Maybe it will come in handy...
Thanks Kris_88! I didn't think to "override" the "ZoomManager.setZoomForBrowser" function and I didn't know there was a "ZoomChangeUsingMouseWheel" "listener". I used these two suggestions you made, and so my add-on now also responds to changing the zoom from the buttons available in Pale Moon.

Display Page Zoom in URL Bar v2.2 download link:

https://www.mediafire.com/file/ghwn8szqxg3so23/display_page_zoom_in_url_bar_v2_2.zip/file

User avatar
tellu-white
Moon lover
Moon lover
Posts: 83
Joined: 2022-03-08, 22:02

Re: Zoom level indicator?

Unread post by tellu-white » 2022-12-13, 20:21

00Septimus wrote:
2022-12-13, 10:43
Thanks for this helpful add-on.
You' re welcome! I'm glad my add-on is helpful to you.

User avatar
00Septimus
Apollo supporter
Apollo supporter
Posts: 38
Joined: 2022-03-22, 14:22
Location: DE

Re: Zoom level indicator?

Unread post by 00Septimus » 2022-12-18, 02:06

tellu-white wrote:
2022-12-13, 20:15
Display Page Zoom in URL Bar v2.2 ...

Similar Add-on:
On the Pale Moon Add-on page I found a new add-on that does pretty much the same thing as yours: Zoom Label
Is it from you or someone else :?:
I get my contributions translated online into English
If the impression arises that I babble drunk nonsense - that was not me.
Please beat up the translator ;-)

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Zoom level indicator?

Unread post by Kris_88 » 2022-12-18, 02:13

It's mine.

User avatar
00Septimus
Apollo supporter
Apollo supporter
Posts: 38
Joined: 2022-03-22, 14:22
Location: DE

Re: Zoom level indicator?

Unread post by 00Septimus » 2022-12-18, 02:28

Kris_88 wrote:
2022-12-18, 02:13
It's mine.
Nice :)
Diversity and competition can liven up the add-on landscape. ;)
I get my contributions translated online into English
If the impression arises that I babble drunk nonsense - that was not me.
Please beat up the translator ;-)

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Zoom level indicator?

Unread post by Kris_88 » 2022-12-18, 02:35

Actually, I did not try to compete.
I made this add-on for myself, and then posted it, since it is ready ...

User avatar
00Septimus
Apollo supporter
Apollo supporter
Posts: 38
Joined: 2022-03-22, 14:22
Location: DE

Re: Zoom level indicator?

Unread post by 00Septimus » 2022-12-18, 02:45

Kris_88 wrote:
2022-12-18, 02:35
Actually, I did not try to compete.
I made this add-on for myself, and then posted it, since it is ready ...
Off-topic:
This is called peaceful coexistence, isn't it :lol: ;-) ?
Last edited by 00Septimus on 2022-12-18, 02:52, edited 1 time in total.
I get my contributions translated online into English
If the impression arises that I babble drunk nonsense - that was not me.
Please beat up the translator ;-)

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: Zoom level indicator?

Unread post by Kris_88 » 2022-12-18, 02:50

Certainly... :)

User avatar
somdcomputerguy
Lunatic
Lunatic
Posts: 381
Joined: 2014-02-23, 17:25
Location: Greenbrier County, West Virginia
Contact:

Re: Zoom level indicator?

Unread post by somdcomputerguy » 2022-12-18, 03:27

Kris_88 wrote:
2022-12-18, 02:35
Actually, I did not try to compete.
I made this add-on for myself, and then posted it, since it is ready ...
I use the other add on. I'm aware of its 'quirk' and since it doesn't affect me I have no reason to replace it with this one. I think it's one of the greatest things though that an alternative is readily available to those that need it. :clap:
:cool: -bruce /* somdcomputerguy.com */
'If you change the way you look at things, the things you look at change.'

User avatar
tellu-white
Moon lover
Moon lover
Posts: 83
Joined: 2022-03-08, 22:02

Re: Zoom level indicator?

Unread post by tellu-white » 2022-12-18, 20:57

somdcomputerguy wrote:
2022-12-18, 03:27
I think it's one of the greatest things though that an alternative is readily available to those that need it.
Kris_88 wrote:
2022-12-18, 02:35
Actually, I did not try to compete.
I made this add-on for myself, and then posted it, since it is ready ...
00Septimus wrote:
2022-12-18, 02:45
This is called peaceful coexistence
Here's another alternative (another "peaceful coexistence" :-) ), "available to those that need it": I made an add-on that completely replaces the "zoom out" and "zoom in" buttons in Pale Moon with new buttons that flank a label which displays the zoom of the active page (in percent). In addition, by right-clicking on this label you can toggle the options:

1. Toggle "Full-Page / Text-Only" Zoom
2. Toggle Enable / Disable "Site-Specific" Zoom

This add-on installs automatically to the end of "Menu Bar".

Screenshots:

1. "Tooltiptext" label:
01.png
01.png (18.31 KiB) Viewed 1160 times
2. Options (Right-Click):
02.png
02.png (14.73 KiB) Viewed 1160 times
*****

Zoom Controls with Label v1.0
download link:

https://www.mediafire.com/file/peehrdd55qcm3k1/zoom_controls_with_label_v1_0.zip/file

User avatar
tellu-white
Moon lover
Moon lover
Posts: 83
Joined: 2022-03-08, 22:02

Re: Zoom level indicator?

Unread post by tellu-white » 2022-12-20, 22:29

I made a new version of the add-on in which I fixed a small bug (removed the duplicate of a function) and changed the cursor in the popup with "Options" from "default" to "pointer":
03.png
03.png (16.58 KiB) Viewed 969 times
Zoom Controls with Label v1.2 download link:

https://www.mediafire.com/file/xqipetiw8parwqz/zoom_controls_with_label_v1_2.zip/file

Uppity
Moon lover
Moon lover
Posts: 84
Joined: 2014-04-23, 20:50
Location: ussa

Re: Zoom level indicator?

Unread post by Uppity » 2022-12-21, 02:16

tellu-white wrote:
2022-12-13, 20:15
Kris_88 wrote:
2022-12-13, 02:25
Maybe it will come in handy...
Thanks Kris_88! I didn't think to "override" the "ZoomManager.setZoomForBrowser" function and I didn't know there was a "ZoomChangeUsingMouseWheel" "listener". I used these two suggestions you made, and so my add-on now also responds to changing the zoom from the buttons available in Pale Moon.

Display Page Zoom in URL Bar v2.2 download link:

https://www.mediafire.com/file/ghwn8szqxg3so23/display_page_zoom_in_url_bar_v2_2.zip/file
Where does this file go? It does not seem to work.
I extracted it to ~ PaleMoon/browser/extensions; then restarted Pale Moon, 2 times.
Dell Inspiron 15-7567 Gaming Laptop i5, 8GB Ram, 256GB SSD. Win 10 in a severely reduced partition. Linux Mint 19.2 Cinnamon
Dell Inspiron 15Z, i3, 6 GB RAM. Win 8 is gone. Linux Mint 19.2 Cinnamon

User avatar
LAR Grizzly
Lunatic
Lunatic
Posts: 351
Joined: 2017-08-11, 16:49
Location: Upstate Ohio, USA
Contact:

Re: Zoom level indicator?

Unread post by LAR Grizzly » 2022-12-21, 03:41

Uppity wrote:
2022-12-21, 02:16
Where does this file go? It does not seem to work.
I extracted it to ~ PaleMoon/browser/extensions; then restarted Pale Moon, 2 times.
1. Unpack to an empty directory.
2. Open Pale Moon and go to the Add-ons manager. Tools>Add-ons
3. Click on the "gear" icon next to the "Search all add-ons" window.
4. Select "Install Add-on from file".
5. Point it to the zoom_controls_with_label@tellu_white.xpi file in the zoom_controls_with_label_v1_2 folder that you unpacked.
6. Follow the browser instructions to finish the installation.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18

Uppity
Moon lover
Moon lover
Posts: 84
Joined: 2014-04-23, 20:50
Location: ussa

Re: Zoom level indicator?

Unread post by Uppity » 2022-12-21, 04:58

LAR Grizzly wrote:
2022-12-21, 03:41
Uppity wrote:
2022-12-21, 02:16
Where does this file go? It does not seem to work.
I extracted it to ~ PaleMoon/browser/extensions; then restarted Pale Moon, 2 times.
1. Unpack to an empty directory.
2. Open Pale Moon and go to the Add-ons manager. Tools>Add-ons
3. Click on the "gear" icon next to the "Search all add-ons" window.
4. Select "Install Add-on from file".
5. Point it to the zoom_controls_with_label@tellu_white.xpi file in the zoom_controls_with_label_v1_2 folder that you unpacked.
6. Follow the browser instructions to finish the installation.
Thanks, LAR Grizzly.

Makes me feel like an idiot because I use that sequence every time I install Linux Mint, and at other times, too.

Nice profile image.
Dell Inspiron 15-7567 Gaming Laptop i5, 8GB Ram, 256GB SSD. Win 10 in a severely reduced partition. Linux Mint 19.2 Cinnamon
Dell Inspiron 15Z, i3, 6 GB RAM. Win 8 is gone. Linux Mint 19.2 Cinnamon

User avatar
LAR Grizzly
Lunatic
Lunatic
Posts: 351
Joined: 2017-08-11, 16:49
Location: Upstate Ohio, USA
Contact:

Re: Zoom level indicator?

Unread post by LAR Grizzly » 2022-12-21, 05:14

Uppity wrote:
2022-12-21, 04:58
Thanks, LAR Grizzly. Makes me feel like an idiot because I use that sequence every time I install Linux Mint, and at other times, too. Nice profile image.
You're welcome! Glad to help out a bit. More on the avatar if you're interested: http://www.largrizzly.net/shooting.html
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18

wavymoon
Fanatic
Fanatic
Posts: 131
Joined: 2015-07-21, 21:31
Location: westchester

Re: Zoom level indicator?

Unread post by wavymoon » 2022-12-22, 22:45

Zoom on this page should work:
https://addons.palemoon.org/search/?terms=zoom

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2369
Joined: 2012-08-19, 20:32

Re: Zoom level indicator?

Unread post by back2themoon » 2022-12-23, 10:56

Thank you for Zoom Label, tellu-white. :thumbup:

You should probably create a new support/update thread, here: viewforum.php?f=71

If you somehow manage to allow changing both full and text-only zoom simultaneously, it'd be a significant step closer to replacing the abandoned (?) NoSquint.

Locked