Code Monkey home page Code Monkey logo

Comments (11)

Mottie avatar Mottie commented on May 24, 2024

Hi @aspiers!

Make sure to reload the page (Shift + F5) after changing the option as the script is loaded into the page and does not refresh because GitHub uses ajax page loading.


I just update the documentation to emphasize this necessity.

from github-userscripts.

aspiers avatar aspiers commented on May 24, 2024

false appears to be the default value (at least it was for me), so this is a problem even without changing the option. I also tried changing to true and reloading and the behaviour didn't change.

from github-userscripts.

Mottie avatar Mottie commented on May 24, 2024

The setting will always initially show the opposite of the current setting - see line 233.

LOL, actually, I just tested it and it does toggle the areas even without a page reload.

Maybe there is another script interfering? Are you using Octopatcher?

from github-userscripts.

aspiers avatar aspiers commented on May 24, 2024

Oh, I see! So when I typed in true, I wasn't actually changing it at all :-)

Hmm, this is not an intuitive UI at all. Perhaps you can think of some way to make it clearer, e.g. tweaking the text?

from github-userscripts.

aspiers avatar aspiers commented on May 24, 2024

To be clear, it does work now I understand how it's supposed to work :-)

from github-userscripts.

Mottie avatar Mottie commented on May 24, 2024

What would you suggest?

from github-userscripts.

Mottie avatar Mottie commented on May 24, 2024

In Octopatcher (an addon created from this userscript), I set a select with two options: collapsed & expanded. Does that make more sense?

Also, I'm going out of town on the 4th, I'll be unavailable for a month, or so. So please don't think I'm ignoring you if I don't respond.

from github-userscripts.

aspiers avatar aspiers commented on May 24, 2024

That sounds better but I'd have to see it to be sure.

from github-userscripts.

Mottie avatar Mottie commented on May 24, 2024

Updated.

from github-userscripts.

aspiers avatar aspiers commented on May 24, 2024

Thanks - this is better for sure, but the main source of the confusion is still there, i.e. that the value auto-populated in the dialog is the opposite of the current state, so that you only have to click OK to change it. Could the text also give the current state, or clarify this somehow?

from github-userscripts.

Mottie avatar Mottie commented on May 24, 2024

Ok, the current state is now visible.

Eventually, I'd like to change out the prompt for a modal window with a select and number input similar to what I have set up for Octopatcher, but without the "Enabled" checkbox:

content-collapse

from github-userscripts.

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.