Open emerick opened 4 years ago
Note: This only happens for the active tab, not all tabs.
Might need to rethink our approach here, based on comments in other issues like these:
https://bugs.chromium.org/p/chromium/issues/detail?id=70256#c4 https://bugs.chromium.org/p/chromium/issues/detail?id=708354#c7
Those comments imply that extensions must be fully loaded before attempting any page loads.
Workaround: You can refresh the page and it should work. (Please give a few seconds for the Tip buttons to show up.)
Create a
Greaselion.json
file like the following and a simple script that just printsHello, world!
to the console:If you launch the browser clean (with no open pages) and then navigate to https://twitter.com/emerick, it will correctly run the content script and display
Hello, world!
on the console.If you close the browser and relaunch it (such that it now opens https://twitter.com/emerick automatically on startup), the content script will not run and nothing will be shown on the console. If you refresh the page, the content script will finally load and run as expected.