1
上搜索后注入一个脚本,我需要知道如何当我在谷歌搜索中键入注入一个脚本“开始扩展”如何谷歌网页
我这样做,但没有奏效
if(location.origin === "https://www.google.com" && location.hash.indexOf("q=start+extension")!==-1)
(document.body || document.head).appendChild(script);