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

Custom scriptlets #3307

Closed
vobruba-martin opened this issue Dec 2, 2017 · 4 comments
Closed

Custom scriptlets #3307

vobruba-martin opened this issue Dec 2, 2017 · 4 comments

Comments

@vobruba-martin
Copy link
Contributor

Hi, is there any way how to add URL of my own scriptlets or how to define them? Thanks!

@uBlock-user
Copy link
Contributor

Open advanced-settings.html via Dashboard and add the URL at userResourcesLocation

This is how mine looks like - https://raw.githubusercontent.com/uBlock-user/uBO-Scriptlets/master/scriptlets.txt

@vobruba-martin
Copy link
Contributor Author

No other way how to use them as a third party filter so I can update them on demand?

@uBlock-user
Copy link
Contributor

Not sure what you mean but you can use the scriptlets you created by injecting them via ##script:inject filters.

gorhill added a commit that referenced this issue Apr 20, 2019
The URLs must be space-separated.

Reminders:
- The additional resources will be updated at the same time
  the built-in resource file is updated
- Purging the cache of 'uBlock filters' will also purge the
  cache of the built-in resource file -- and hence force a
  reload of the user's custom resources if any

Related issues:
- #3307
- uBlockOrigin/uAssets#5184 (comment)

Addtionally:
- Opportunitically promisified assets.fetchText()
- Fixed #3586
@gorhill
Copy link
Owner

gorhill commented Apr 21, 2019

so I can update them on demand

You can force an update of what you add to userResourcesLocation by purging the cache for "uBlock filters".

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