Jump to content
UBot Underground

How to zoom a web page in the browser ?


Recommended Posts

Well its pretty easy using a little javascript ;)

 

Here:

To zoom-in use:

document.body.style.zoom = 2

Where to is the x-times zoom. You can use 1 decimal place if you want.

 

To zoom-out use:

document.body.style.zoom = 2
Here is an implementation using ubot buttons:
 
ui button("ZoomIn") {
    run javascript("document.body.style.zoom = 2")
}
ui button("ZoomOut") {
    run javascript("document.body.style.zoom = 1")
}

Hope it helps.

 

Good Luck ;)

Link to post
Share on other sites

 

Well its pretty easy using a little javascript ;)

 

Here:

To zoom-in use:

document.body.style.zoom = 2

Where to is the x-times zoom. You can use 1 decimal place if you want.

 

To zoom-out use:

document.body.style.zoom = 2
Here is an implementation using ubot buttons:
 
ui button("ZoomIn") {
    run javascript("document.body.style.zoom = 2")
}
ui button("ZoomOut") {
    run javascript("document.body.style.zoom = 1")
}

Hope it helps.

 

Good Luck ;)

 

Thanks Buddy, Awesome, Much appriciated

KIM ;)

Edited by mr.kim8692
Link to post
Share on other sites

Mmm. Would it be a good idea for Ubot's next update to have a Zoom in and out feature ? I think so. :)

 

It would be a much better idea to fix all the remaining bugs in v5... Just saying  :D

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...