Can the size of a pop up box be adjusted?

Can the size of a pop up box be adjusted?

Author
Discussion

GliderRider

Original Poster:

2,482 posts

87 months

Thursday 13th April 2023
quotequote all
A website I use regularly has news boxes that open by clicking on the news title. At present when I open these, a slide bar appears to enable me to read the end of each line in the box. I contacted the website owner to ask how to make the box bigger so I don't have to use the slide bar, but they say they can't replicate the problem.
What I would like to do is either make the box bigger or the font smaller. Is this possible?

Here is an example:

130R

6,844 posts

212 months

Friday 14th April 2023
quotequote all
Pretty sure you could do it with a tampermonkey userscript if you understand javascript

durbster

10,637 posts

228 months

Friday 14th April 2023
quotequote all
In theory yeah, it should be easy.

However, that site looks like it hasn't been updated for about 6 years and is a bit of a mess. There is a relatively simple solution:

1. Get the popup on screen
2. Open the browser's developer tools. You can either do this by hitting F12, or right clicking on the page and choosing Inspect Element.
3. In the developer tools, select the Console tab.
4. In the Console's text input, enter this line of code:
 document.querySelector('iframe.fancybox-iframe').getAttribute("src"); 

5. That should give you a URL, such as (this is the Hutchmed one): 'https://online.hl.co.uk/content/news_article/sedol/BJQ2P07?articles=33425478&rq=rns_article&sedol=BJQ2P07'
6. Copy that URL (make sure you remove any surrounding quotes from it), and then paste it into the browser's address bar and you'll go straight to the document itself without any of the surrounding crud.