javascript - How to execute a custom script on the Chrome's Dino offline game on current tab? -


i have made mod chrome offline t-rex game , want turn extension others can use free of features more , bigger obstacles, timed game, multiple lifes, etc.

when playing game, can go inspect element, paste script there , work. tried similar thing in extension, couldn't.

i tried using chrome.tabs.executescript function worked executing scripts on websites online, when go offline play game or open chrome://dino/ tab online, doesn't execute script on page anymore.

how make extension work in situations?

as woxxom helpfully points out, chrome://* pages off-limits content script execution, broadest "<all_urls>" permission.

so not able modify actual dino page.

i presume game open-source , part of chromium; best bet make new version based off code , publish web app (or local extension page). exercise make progressive web app well, giving offline capability (and more).


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -