简体   繁体   中英

How would I add javascript to a page override chrome extension?

I am using this ( https://developer.chrome.com/extensions/override ) method to create a new tab replacement page for a chrome extension. I want to add javascript that can change the HTML DOM (a clock in this case). I know how to make the clock but was wondering what I have to put in manifest.json to allow this js file. Thanks!

我认为您需要使用<script type="text/javascript" src="override.js"></script>标记。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM