props?
by
noromanba
2018-08-11 [2018/08/11 08:29:04]
list global props of content-scripts
-
{
const sandbox = document.body.appendChild(document.createElement('iframe')).contentWindow
console.table(
Object.entries(Object.getOwnPropertyDescriptors(window)).filter(([name, descr]) => {
return !(name in sandbox) &&
!String(window[name]).includes('[Command Line API]') &&
Boolean(window[name])
})
)
}
-
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。