Deprecated: Creation of dynamic property lastRSS::$cache_dir is deprecated in /www/wwwroot/name104.com/00rss.php on line 45
Deprecated: Creation of dynamic property lastRSS::$cache_sqlite is deprecated in /www/wwwroot/name104.com/00rss.php on line 46
Deprecated: Creation of dynamic property lastRSS::$cache_time is deprecated in /www/wwwroot/name104.com/00rss.php on line 47
Deprecated: Creation of dynamic property lastRSS::$rsscp is deprecated in /www/wwwroot/name104.com/lastRSS.php on line 234
javascript - Chrome extension set to `run_at` `document_start` is . . . I have been learning how to create a simple Chrome extension which is a userscript port The script works perfectly with Tampermonkey with the setting run at to document-start, all the necessary events that need to be caught from the beginning are all captured
javascript - Chrome extension run at doc start - Stack Overflow Note: I can't add script tags dynamically to the page in the startup script because the document body etc are unavailable I would like to provide you more details of why I need this and my previous solution
Documentation | Tampermonkey In opposition to other script handlers, @run-at defines the first possible moment a script wants to run This means it may happen, that a script that uses the @require tag may be executed after the document is already loaded, cause fetching the required script took that long
extensionTypes. RunAt - Mozilla | MDN The DOM is still loading "document_end": corresponds to interactive The DOM has finished loading, but resources such as scripts and images may still be loading "document_idle": corresponds to complete The document and all its resources have finished loading The default value is "document_idle" Browser compatibility
Manifest - content scripts - Chrome Developers The "content_scripts" key specifies a statically loaded JavaScript or CSS file to be used every time a page is opened that matches a certain URL pattern Extensions can also inject content scripts programmatically, see Injecting Scripts for details
content_scripts - Mozilla | MDN Registered objects in content_scripts are injected into matching web pages at the time specified by run_at (first document_start, then document_end, and finally document_idle):
@run-at document-start does not really run at start - GitHub The issue is document-start appears to run at a readyState of "complete" on every subsequent page load The only reliable way to have it run during a readyState of "loading" is to use "shift+refresh", for some reason that runs reliably 100% of the time at a "loading" readyState
Content scripts | Chrome for Developers Use static content script declarations in manifest json for scripts that should be automatically run on a well known set of pages Statically declared scripts are registered in the manifest under the "content_scripts" key