閒著沒事,做個chrome瀏覽器外掛程式,適合初學者

2022-03-19 11:07:45 字數 1184 閱讀 7139

時光偷走的,永遠都是我們眼皮底下看不見的珍貴。

使用外掛程式前:

使用外掛程式後:

鮮花(閒話):這個**的不加水印的連線被儲存在,的data-image屬性中。那麼就直接替換src的位址就ok了。

外掛程式資料夾結構:

主要檔案:manifest.json

,

"commands": ,

"description": "opens hello.html"}

},"content_scripts":

}

replace.js

function getclass(oparent,aclass)

}getclass();

hello.html

<

html

>

<

body

>

<

h1>hello extensions

h1>

body

>

html

>

做好了之後,使用chrome載入外掛程式:

蝦扯:需要開啟開發者模式

ok~結束

chrome瀏覽器安裝

在centos 7.x 安裝chrome 瀏覽器的方法。首先在 etc yum.repos.d目錄中建立google chrome.repo檔案,其寫入如下內容 plain view plaincopy google chrome name google chrome baseurl enabled...

chrome瀏覽器除錯

f8 下個斷點 f10 單步執行 f11 單步跳入 shift f11 單步跳出 選中變數,右鍵選擇add to watch,檢視變數值比較方便 有時候我們需要監聽某個 dom 被修改情況 js 比較複雜,找不到 對dom做的改變 那麼我們可以直接在 dom 上設定斷點。如圖所見,在元素審查的 el...

chrome 瀏覽器命令

位址列中輸入如下命令可以得到相應的資訊 命令作用 備註chrome dns 檢視 chromium 的dns預取的網域名稱 chrome net internals capture export import,proxytimeline,dns,socket,spdy,quic,pipelining...