WebContent/kindeditor/lib/firebug-lite/build/chrome-extension-beta/googleChrome.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/* See license.txt for terms of usage */

Firebug.extend(function(FBL) { with (FBL) {
// ************************************************************************************************

if (!Env.isChromeExtension) return;

// ************************************************************************************************
// local variables

var channel;
var channelEvent;

// ************************************************************************************************
// GoogleChrome Module

Firebug.GoogleChrome = extend(Firebug.Module,
{
    initialize: function()
    {
        var doc = FBL.Env.browser.document;
        
        if (!doc.getElementById("FirebugChannel"))
        {
            channel = doc.createElement("div");
            channel.id = "FirebugChannel";
            channel.firebugIgnore = true;
            channel.style.display = "none";
            doc.documentElement.insertBefore(channel, doc.documentElement.firstChild);
            
            channelEvent = document.createEvent("Event");
            channelEvent.initEvent("FirebugChannelEvent", true, true);
            
            channel.addEventListener("FirebugChannelEvent", onFirebugChannelEvent);
        }
    },

    dispatch: function(message)
    {
        channel.innerText = message;
        channel.dispatchEvent(channelEvent);
    }
});

// ************************************************************************************************
// internals

var onFirebugChannelEvent = function()
{
    var name = channel.innerText;
    
    if (name.indexOf("FB_contextMenuClick") == 0)
    {
        var doc = FBL.Env.browser.document;
        var contextMenuElementXPath = name.split(",")[1];
        var contextMenuElement = getElementsByXPath(doc, contextMenuElementXPath)[0];

        // If not open, open it first
        Firebug.chrome.toggle(true);
        
后面还有 46 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。