GithubHelp home page GithubHelp logo

Comments (3)

Martii avatar Martii commented on May 29, 2024

Thanks for the report.

Please reread https://openuserjs.org/about/Userscript-Beginners-HOWTO#what-is-a-user-script- vs. https://openuserjs.org/about/Userscript-Beginners-HOWTO#what-is-a-library-script-

then it should not offer to import misnamed files

... and knock out the way we do transferring of actual libraries I think not.

Thanks though.

Duplicate of #1637

from openuserjs.org.

pke avatar pke commented on May 29, 2024

Thank for the quick response. So the error message could still be improved in stating that the importer thinks to handle a library script and have it list the metadata blocks its missing?

from openuserjs.org.

Martii avatar Martii commented on May 29, 2024

importer thinks to handle a library script

That's one use case but the inverse is also true. If a .user.js is contains a library script (which is never should be and is again user error) then message is clear as it can be. Plus the author clicked Add Script or Add Library so if the user has read the basics on how to do .user.js then they know to name it the appropriate way. If we ever support any additional types then that would be a tertiary test. We are still considering how to do #1971 , which is similar, but future translations are a factor there. Embedding "extra" info that the Author should have already read provides a challenge to translations in the current ecosystem.

Long story short if an Author has say 200 .user.js and we were to load in all of them just to mark what type they were not only would GitHub rate limit EVERYONE as a result they could actually block us from importing.

So it's best if the Author reads the basic HOWTO document first and does it on their own.

from openuserjs.org.

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.