Giter VIP home page Giter VIP logo

Comments (3)

quoid avatar quoid commented on May 19, 2024 2

You'd have to get access to the scripts source code and manually install it with a url checking function like:

function checkPageHost() {
  var w = location.host;
  if (w.indexOf("www.") === 0) {
    w = w.replace("www.","");
  }
  if (w === "google.com") {
    //code to run
  }
}

At the current moment there's no support for automatically installing scripts from Greasy Fork or pasting Tampermonkey scripts without editing. This functionality is being considered for future updates.

from userscripts.

filbo avatar filbo commented on May 19, 2024

Many userscripts also use GM_xxx() [GM3] or GM.xxx() [GM4] APIs to do their work; I haven't surveyed greasyfork to see what fraction are usable without those, but I imagine it would impact almost any script of substantial size.

GM/TM/VM also pack a lot of semantic information into the header comment (include/exclude sites on which to be injected, etc.)

It would be great to see full GM semantics... (personally I'd rather see GM3, I don't think the GM4 async API has particularly caught on with userscript authors, so userscript runners -- like GM4 itself -- which support only the GM4 API are sort of useless wrt the existing pool of userscripts)

from userscripts.

quoid avatar quoid commented on May 19, 2024

I am going to close this thread.

Implementing GM metadata into this extension is beyond scope. I set out to create something simple to facilitate my userscript needs, until something better came along. I believe PageExtender is that something better.

Perhaps a project can be spun up in the future to address the lack of "editor" that can easily ingest usersripts in the GM format, but I don't it will be this project - at least not in the near future.

from 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.