witchcraft icon indicating copy to clipboard operation
witchcraft copied to clipboard

Wildcard support?

Open johnaweiss opened this issue 3 years ago • 4 comments

Hi

Is it possible to match ALL websites, ALL domains?

Thx

johnaweiss avatar Aug 16 '21 02:08 johnaweiss

_global.js (and _global.css) will load on any domain :) !

/edit: also in _global you can easily say something like this:

if (document.querySelector('video')) {
	// @include lib/videos.js
};
// or match a domain 👍🏼 
if (location.href.match('https://github.com/user/helloworld')) {
        // @include helloworld.js
}

mjuksel avatar Aug 22 '21 06:08 mjuksel

great!

johnaweiss avatar Aug 28 '21 22:08 johnaweiss

Suggestion: Add a wysiwyg for all domains. Maybe could be just a checkbox "Apply to all domains", or maybe a button "Add CSS/JS for all domains"

johnaweiss avatar Aug 28 '21 22:08 johnaweiss