yodog / userscripts

Greasemonkey userscripts repository
4 stars 2 forks source link

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

Open antigenius0910 opened 2 years ago

antigenius0910 commented 2 years ago

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

antigenius0910 commented 2 years ago

Screen Shot 2022-03-04 at 6 45 43 PM

don't know how to get the pop up working

yodog commented 2 years ago

hi. my scripts should work on greasemonkey, but i only tested them on tampermonkey.

chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

firefox: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/

1

2