WebContent/admin/kindeditor/lib/firebug-lite/build/chrome-extension/background.html
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<script>
/* See license.txt for terms of usage */
// *************************************************************************************************
//var bookmarlet = "javascript:(typeof Firebug!='undefined')?Firebug.chrome.toggle():(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E=F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLiteBookmarlet','1.3.0.1','firebug.jgz','skin/xp/sprite.png','https://getfirebug.com/releases/lite/beta/','#startOpened,showIconWhenHidden=false');";
var firebugVersion = "Firebug Lite 1.3.2";
var extensionURL = chrome.extension.getURL("");
var isActive = false;
// *************************************************************************************************
function handleIconClick(tab)
{
if (tab.url.indexOf("https://chrome.google.com/extensions") == 0 ||
tab.url.indexOf("chrome://") == 0)
{
alert("For security reasons extensions cannot run content scripts at this page, and therefore, Firebug Lite can't work here.");
return;
}
var isContentScriptActive = false;
chrome.tabs.sendRequest( tab.id, {name: "FB_isActive"},
function(response)
{
isContentScriptActive = true;
if (response.value == "true")
{
chrome.tabs.update(tab.id, {url: "javascript:Firebug.chrome.toggle()"});
}
else
{
setActivationStorage(tab);
chrome.tabs.sendRequest(tab.id, {name: "FB_loadFirebug"});
}
}
);
/*
setTimeout(function(){
if (!isContentScriptActive)
{
//chrome.tabs.update(tab.id, {url: bookmarlet});
//enableBrowserActionIcon();
//setActivationStorage(tab);
//alert("Firebug Lite can't open because this page was open before it was installed. Please reload this page.");
setActivationStorage(tab);
if (confirm("Firebug Lite can't complete its activation because this page was open before the extension itself was enabled. The process will complete when you reload the page.\n\nPress ok to reload the page now, or cancel to reload it later."))
{
chrome.tabs.update(tab.id, {url: "javascript:window.location.reload()"});
}
}
},500);/**/
后面还有 127 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
