How to select a random variable(String/Name of HTML file) in chrome extension’s manifest.json

问题内容:

I am trying to make a chrome extension where I want to select a random page from 10 pages and set it as “new tab”. How can I do that cause I cant use js?

I am trying to do something like this

“newtab”: “%VAR%/index.html”

%VAR% is selected randomly from an array of 10 elements.

问题评论:

    
put a specific page as a new tab and within this redirects the page to the other

原文地址:

https://stackoverflow.com/questions/47754219/how-to-select-a-random-variablestring-name-of-html-file-in-chrome-extensions

添加评论