console.diff(...)

Compare objects in memory with console.diff(old, new) devtools function

什麼是console.diff(...)?

console.diff(...)是由Alexander Block開發的Chrome擴展程式,該擴展的主要功能是“Compare objects in memory with console.diff(old, new) devtools function”。

擴展截圖

screenshot
screenshot
screenshot

下載console.diff(...)擴展crx文件

下載console.diff(...)擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        An extension for developers that enhances the console API by incorporating the ability to compare objects and adds a JSDiff tab (parallel to Elements, Network panels) within your dev-tools for viewing the results.

Note: before using, immediately after fresh installation, - make sure to refresh inspected tab or restart browser.

API:
// compare left and right
console.diff(left, right);

// shorthand for console.diffPush(next)
console.diff(next);

// update object on the left side only
console.diffLeft(left);

// update object on the right side only
console.diffRight(right);

// shifts sides, right becomes left, next becomes right
console.diffPush(next);

Read more at: https://github.com/zendive/jsdiff                    

擴展基本資訊

名稱 console.diff(...) console.diff(...)
ID iefeamoljhdcpigpnpggeiiabpnpgonb
官方網址 https://chromewebstore.google.com/detail/consolediff/iefeamoljhdcpigpnpggeiiabpnpgonb
簡介 Compare objects in memory with console.diff(old, new) devtools function
檔案大小 93.89 KB
安裝次數 229
目前版本 3.0.5
更新時間 2024-02-06
上架時間 2019-02-22
評分 5.00/5 共 2 次評分
開發者 Alexander Block
電子郵箱 [email protected]
付費類型 free
擴展官網 https://github.com/zendive/jsdiff
說明頁面URL https://github.com/zendive/jsdiff/issues
支援的語言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 3,
    "name": "console.diff(...)",
    "version": "3.0.5",
    "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlCx2Bl0li+3idvfrH9cQL\/MzphafGFqMUA2P+0vbyhwxsxWl0llOaGQbkirX5qCoAVHoUCPqu3hCjpVCv35igPbfqDs5bdLZZmXt2F0HjEQnWI\/eZKd9IKcKYMplEeL2BodmpU02VrP1UnUzQHZeeMWk9ybgWOqCimkwliILVubRj5dxNB9AidLwO4Z5iGq\/OvW9AJMYdxKxrLP2lF6\/GGNcCBg+iCJZwlQOhFB9LbUjytT4ws3bIEX4b5zmWLqGKR1NiZfGug2eCWXt9oEKg2WkbXmBBzFKqxnM\/bBUrVR29N9qNgx0f42qnyhsW3Bo4kPzE3d0asXCV5nofLTLEwIDAQAB",
    "description": "Compare objects in memory with console.diff(old, new) devtools function",
    "minimum_chrome_version": "100.0",
    "homepage_url": "https:\/\/github.com\/zendive\/jsdiff",
    "author": "[email protected]",
    "permissions": [
        "storage"
    ],
    "host_permissions": [
        "*:\/\/*\/*"
    ],
    "devtools_page": "bundle\/jsdiff-devtools.html",
    "icons": {
        "28": "bundle\/img\/panel-icon28.png",
        "64": "bundle\/img\/panel-icon64.png",
        "128": "bundle\/img\/panel-icon128.png"
    },
    "content_scripts": [
        {
            "world": "MAIN",
            "js": [
                "\/bundle\/js\/jsdiff-console.js"
            ],
            "matches": [
                ""
            ],
            "match_origin_as_fallback": true,
            "all_frames": true,
            "run_at": "document_start"
        },
        {
            "js": [
                "\/bundle\/js\/jsdiff-proxy.js"
            ],
            "matches": [
                ""
            ],
            "match_origin_as_fallback": true,
            "all_frames": true,
            "run_at": "document_start"
        }
    ]
}