1
上搜索後注入一個腳本,我需要知道如何當我在谷歌搜索中鍵入注入一個腳本「開始擴展」如何谷歌網頁
我這樣做,但沒有奏效
if(location.origin === "https://www.google.com" && location.hash.indexOf("q=start+extension")!==-1)
(document.body || document.head).appendChild(script);