Chrome-extension URL match patterns:Why rules are not working for Google.com?
问题 I'm making an extension to customize Google' homepage background.So I write some match rules in manifest like this: "content_scripts": [ { "matches": ["https://www.google.com/", "http://www.google.com/"], "js": ["static/js/jquery.js", "static/js/contentscript.js"] } ], and some scripts in contentscript.js : var imgURL = chrome.extension.getURL("static/images/bg.jpg"); $('body').css('background-image', 'url(' + imgURL + ')'); The script works fine for https://www.google.com, but when I try to