Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use greasyfork #18

Closed
raffeyang opened this issue Jul 19, 2019 · 3 comments
Closed

How to use greasyfork #18

raffeyang opened this issue Jul 19, 2019 · 3 comments

Comments

@raffeyang
Copy link

How can I install scripts from greasyfork

@quoid quoid added the question label Jul 19, 2019
@quoid
Copy link
Owner

quoid commented Jul 19, 2019

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.

@filbo
Copy link

filbo commented Jul 23, 2019

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)

@quoid
Copy link
Owner

quoid commented Aug 4, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants