diff options
| author | Teddy Wing | 2019-05-18 20:27:23 +0200 |
|---|---|---|
| committer | Teddy Wing | 2019-05-18 20:27:23 +0200 |
| commit | b8b11ce59dde4acf4bb17780d92785aefaf88cc9 (patch) | |
| tree | 7cbcd235399aad22b7a743a9cd6ffa61e4a5c61a | |
| parent | abe99363ad712d0c62b6a84fedb614fb3266398e (diff) | |
| download | duckduckgo-region-filter-toggle-shortcut-b8b11ce59dde4acf4bb17780d92785aefaf88cc9.tar.bz2 | |
Run after the page's scripts have loaded
Use `@run-at` "document-idle" to execute only after the host page's
scripts have loaded. The Greasemonkey default is "document-end".
I was trying this script on a different machine and Firefox version and
it didn't work. Looks like it was running before the region filter was
loaded, causing the `toggle` variable to be `null`.
| -rw-r--r-- | duckduckgo-region-filter-toggle-shortcut.user.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/duckduckgo-region-filter-toggle-shortcut.user.js b/duckduckgo-region-filter-toggle-shortcut.user.js index e1a89c0..764e7b3 100644 --- a/duckduckgo-region-filter-toggle-shortcut.user.js +++ b/duckduckgo-region-filter-toggle-shortcut.user.js @@ -3,6 +3,7 @@ // @description A keyboard shortcut to toggle the region filter // @namespace com.teddywing // @match https://duckduckgo.com/* +// @run-at document-idle // ==/UserScript== // Copyright (c) 2018 Teddy Wing |
