Skip to content

super useful script! need help understand how to load it #1

Description

@antigenius0910

Hi @yodog,

Thank you so much for sharing this script!
However I have a hard time understand how to load it

I found post https://levelup.gitconnected.com/how-to-load-external-javascript-files-from-the-browser-console-8eb97f7db778
and try to load with below in browser console but doesn't seems to work. Would you mind shed some light with me on the usage?
Thanks

const loadScript = async (url) => {
  const response = await fetch(url)
  const script = await response.text()
  eval(script)
}

const scriptUrl = "https://raw.githubusercontent.com/yodog/userscripts/master/github-custom-options.user.js"
loadScript(scriptUrl)

Screen Shot 2022-03-04 at 5 51 57 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions