今天用Chrome調試指令碼,發現載入了以下指令碼內容:
/*電腦管家chrome 廣告過濾*/var GJAD_CS ={ elemhideElt : null, setElemhideCSSRules: function (selectors) { if (GJAD_CS.elemhideElt && GJAD_CS.elemhideElt.parentNode) GJAD_CS.elemhideElt.parentNode.removeChild(GJAD_CS.elemhideElt); if (!selectors) return; GJAD_CS.elemhideElt = document.createElement("style"); GJAD_CS.elemhideElt.setAttribute("type", "text/css"); // Try to insert the style into the <head> tag, inserting directly under the // document root breaks dev tools functionality: // http://code.google.com/p/chromium/issues/detail?id=178109 (document.head || document.documentElement).appendChild(GJAD_CS.elemhideElt); var elt = GJAD_CS.elemhideElt; // Use a local variable to avoid racing conditions function setRules() { if (!elt.sheet) { // Stylesheet didn't initialize yet, wait a little longer window.setTimeout(setRules, 0); return; } elt.innerText = selectors; } setRules(); }, QueryCss: function() { var query_param={ "url": window.location.href }; chrome.extension.sendRequest({cmd: "query_css", json: JSON.stringify(query_param)}, function(response) { if (response && response.selectors != "") { GJAD_CS.setElemhideCSSRules(response.selectors); } }); },};GJAD_CS.QueryCss();左鍵單擊瀏覽器右上方的電腦管理表徵圖
都是未開啟狀態,怎麼還會載入那些指令檔呢!
按右鍵瀏覽器右上方的電腦管理表徵圖,管理
把“已啟用”前的勾去掉
再重新整理需要調試的頁面,“Content scripts”中的指令碼都不見了。
成功禁止Chrome載入電腦管家廣告過濾指令碼代碼。