GithubHelp home page GithubHelp logo

Comments (9)

mlongoria1 avatar mlongoria1 commented on August 24, 2024 1

@bhollis According to this link:
https://superuser.com/questions/677967/chrome-any-way-to-zoom-a-single-page-not-all-pages-in-domain

There is not "a way to convince the browser to apply font sizing only for a single page."

I was doing a lot of research before posting my request. I thought the request would be the easiest route to get my issue fixed at this point... I understand if you do not want to add the feature but if you don't ask you won't receive right??? LoL

from jsonview.

bhollis avatar bhollis commented on August 24, 2024

You can zoom in your browser using Cmd/Ctrl +

from jsonview.

mlongoria1 avatar mlongoria1 commented on August 24, 2024

I have tried that already, it was the first thing I did actually.

But then you have to unzoom when you move from the JSONized(if that's a word) page while troubleshooting the original webapp/webpage that is using the JSON code, and then zoom in again when going back to the JSON page. If a font size was able to be set in the plugin then, all the rest of my tabs/pages will not be affected since they are set at the appropriate zoom setting that I am used to and only the JSON viewed page will be affected.

I hope this makes sense.

Thank you,

from jsonview.

mlongoria1 avatar mlongoria1 commented on August 24, 2024

Here is another plugin that I have been using as you can see the font is larger than JSONview's by default:
PQycmTyGhX

Here is JSONview, it is a lot smaller:
4Sb2qu6sNR

But I like your plugin better because I can use control F very easily compared to the other plugin which defaults to its own search function instead of relying on the browser's "find on page" as yours does(which I prefer.)

from jsonview.

bhollis avatar bhollis commented on August 24, 2024

I don't think I want to add an option for this. Do you know if there's a way to convince the browser to apply font sizing only for a single page?

from jsonview.

stanio avatar stanio commented on August 24, 2024

JSONView already applies a bigger than the default font-size:

#json {
  font-family: monospace;
  font-size: 1.1em;

For that purpose, I have the opposite problem of this being too big for my preference so I adjust it via user styles.

Here is JSONview, it is a lot smaller:

The given screenshot doesn't appear from a genuine JSONView – there's a background color applied to the inner content and the collapsers are not arrows but look like - (minus/hyphen). I can see there's same-named extension for Chrome:

@mlongoria1, have you installed that and not the following one?

The last one is linked from https://jsonview.com/

from jsonview.

bhollis avatar bhollis commented on August 24, 2024

Yep, understood. I don't want to add a bunch of options to the addon though, it's meant to be ultra simple. Also as @stanio mentioned it looks like you are using a different extension than the official JSONView.

from jsonview.

mlongoria1 avatar mlongoria1 commented on August 24, 2024

Yes @stanio was correct. I was using the "other guy's" extension. But now that I am using yours it seems to not work at all. Can you guys try to help me get it working? I used the link @stanio sent us up above...

Check it out, you can see the extension is installed but not working/enabled
QsHsFUKkfm
:

Am I missing something, do I have to enable it on specific sites or should it just work?

from jsonview.

stanio avatar stanio commented on August 24, 2024

There is not "a way to convince the browser to apply font sizing only for a single page."

Using extensions like Stylus allows you to apply user styles to a single page (URL) or group of pages (URL-prefix, URLs on a domain, or URLs matching regexp). For my purpose of adjusting the JSONView font size, I apply the particular style to all content (URLs) but I make the style specific enough, so it applies only to JSONView rendering:

html:root > body > #json {
  font-size: unset;
}

FWIW, I use Firefox, and not Chrome.

Check it out, you can see the extension is installed by not working/enabled

Dunno what's happening on your side. Try uninstalling all of the JSONView extensions you have, then reinstall just one of them.

from jsonview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.