开发者

How do I make a Google chrome extension redirect to a specific website?

开发者 https://www.devze.com 2023-03-02 19:01 出处:网络
here is the manifest file { \"name\": \"NSHQ ChatBox\", \"version\": \"0.1\", \"description\": \"NSHQ Chat.\",

here is the manifest file

{
  "name": "NSHQ ChatBox",
  "version": "0.1",
  "description": "NSHQ Chat.",
  "browser_action": {
      "default_icon": "logo.png",
 开发者_JAVA技巧     "chrome.windows.create" : "http://nshq.darkbb.com/chatbox/chatbox.forum?"
  },
  "permissions": [
      "http://nshq.darkbb.com/chatbox/chatbox.forum?"
  ]
}

The Webpage i want to redirect it to is : http://nshq.darkbb.com/chatbox/chatbox.forum?

I am very new to this kind of thing so i wonder if anybody can help me, much appreciated


Is this the answer you're looking for?


window.location.assign('http://yourlink.com');

does that work for your needs?

0

精彩评论

暂无评论...
验证码 换一张
取 消