mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-04-23 22:29:57 +08:00
8 lines
293 B
JavaScript
8 lines
293 B
JavaScript
chrome.storage.local.get(["config-hook-new-tab"], function(e) {
|
|
if(!e['config-hook-new-tab']) {
|
|
chrome.tabs.update({ url: "chrome-search://local-ntp/local-ntp.html" })
|
|
}else{
|
|
var option_page = chrome.runtime.getURL('options.html')
|
|
chrome.tabs.update({ url: option_page })
|
|
}
|
|
}) |