Giter VIP home page Giter VIP logo

Comments (16)

tophf avatar tophf commented on June 2, 2024

It's already present in the popup:
image

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

There's also a command to reload the tab without scripts in the ... menu.

from violentmonkey.

Rusenche avatar Rusenche commented on June 2, 2024

This is by no means a solution. It even backfires. I explain. When what you advise is done then all scripts are disabled. Supposedly the scripts are disabled. But, when the situation is to look for exactly which script gives a defect/breaks a given page and then clicks "Open dashboard" - on the same page - there all scripts are enabled. In practice, they should be disabled, but they are not. This is what I tested and it is not my desired option. Since we can see that all scripts are enabled - we still need to disable them one by one in order to specify exactly which script is giving a defect/breaking a given page.

@tophf, check with #2006 for example. Disable as you show it in the picture, then go to "Open dashboard" and you will see that absolutely all scripts are enabled.

You have hastily closed the thread, but this is not a solution.

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

Well, now with more info added I see the actual goal you had in mind, but I don't think we should add a feature for such a rare use case. WDYT, @gera2ld?

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

Since our express goal is to keep the UI simple, what about implementing this feature implicitly: click one toggle then drag over the rest of them vertically without releasing the button to set the new state in one fell swoop? This is how standard apps behave, AFAIK.

from violentmonkey.

gera2ld avatar gera2ld commented on June 2, 2024

Maybe we should support repeated shortcuts, or a sequence of shortcuts from a string, which seems to be much more flexible (for an edge case that we don't want to put much effort in the UI).

from violentmonkey.

Rusenche avatar Rusenche commented on June 2, 2024

Practically Violentmonkey extension has an excellent user interface that provides convenience, that's why I've been using this extension for years.

But...

Agree with me that youtube and facebook went too far long ago with the implementation of excessive amount of advertising. Accordingly, there are a bunch of user scripts to provide the desired convenience for users. In this case, we have a few - serving an excessive amount of ads and many users who have started using the necessary scripts to be able to use youtube and facebook comfortably. From this point of view, the available such scripts (I deliberately give an example with youtube and with facebook so that you understand me clearly) provide the desired user experience for users, but sometimes some scripts break the pages (either because of the need to update or because of...).

@tophf, from that point of view, what you had advised me - referring to the picture from your comment - is effectively disabling Violentmonkey for the current page, not disabling the scripts. Accordingly, in my previous comment I argued that scripts for the current site were enabled, but Violentmonkey was disabled.

I am detailing all this to provide a proper angle of view based on which you should consider adding such a feature/option to disable/enable all extensions. The user interface would thus provide another excellent feature.

You are a developer, but by not adding this feature, I understand and respect that, it's your extension, it's your right.

I'm providing you with a picture of who they are, how many there are, and how the scripts are arranged at my place to give you an idea.

Scripts

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

You don't have to convince me, I already understood. I'll try to implement click-n-drag solution and we'll see if it's viable.

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

Actually, a more useful solution is called "bisecting" when you disable just the half of the items, which lets you find the answer in log2(totalNumberOfScripts) steps i.e. for 16 enabled scripts it's 4 steps. I wonder if this is possible to implement in a user-friendly fashion? We could add this command to the ... menu then.

from violentmonkey.

gera2ld avatar gera2ld commented on June 2, 2024

How about adding a "Batch Action" dropdown button to apply actions to all filtered scripts? So we can support batch toggle on/off, remove, update, etc. We can also add a custom field "tags" to enhance the searching feature, and also partially resolve the grouping feature requested a few times.

TBH I don't like the click-n-drag UX personally.

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

Yeah I thought about adding a ... menu to the group entry "Matched scripts", but we don't always show it...

from violentmonkey.

gera2ld avatar gera2ld commented on June 2, 2024

IMHO bisecting is too hard to understand and use in a graphic UI. If we have to provide such a geek way, I suggest syncing all the script metadata with a textarea and let the user modify it.

  • Show a popup with content like this:
    # id    enabled     autoupdate     script name
    1        true           false         My awesome script 1
    2        true           false         My awesome script 2
    
  • user can modify it in any way
  • click "Apply" to sync it back

from violentmonkey.

gera2ld avatar gera2ld commented on June 2, 2024

I see, you are talking about the popup window.

I think we should only implement such advanced features in the dashboard? BTW we could add a filter to filter scripts by whether it matches a URL, so we can easily get "Matched Scripts" in the dashboard and we just need a button "Filter matched scripts in the dashboard" in the popup.

from violentmonkey.

tophf avatar tophf commented on June 2, 2024

The popup already lists the matching scripts, which is why it makes sense to add this feature to the popup. Filtering by URL in the dashboard is something I added in another extension, so I agree it's occasionally convenient.

from violentmonkey.

gera2ld avatar gera2ld commented on June 2, 2024

Yeah it doesn't hurt to add such a button to the popup. I'm not against adding this one.
But the problem is, after adding this one, another one may be requested too. 😂

Besides, I think this is a rare case which doesn't have to complicate the popup window.

from violentmonkey.

gera2ld avatar gera2ld commented on June 2, 2024

I'll work on tags + searching enhancement + batch actions.

from violentmonkey.

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.