웹사이트를 빠르고 자유롭게 누빌 수 있는 Mozilla Firefox를 다운로드하면 이곳에서 수천가지 부가 기능을 사용하실 수 있습니다!
닫기char101님의 View Dependencies 검토
5점중 5점 받음
Extract the xpi, find pageInfoOverlay.js, then replace function GetCache with below code. This works with static files, but the html size still being shown as unknown.
// At the top of the file
var gCacheService = Components.classes["@mozilla.org/network/cache-service;1"].getService(Components.interfaces.nsICacheService);
// Replace function GetCache
function GetCache(url, callback)
{
const ACCESS_READ = Components.interfaces.nsICache.ACCESS_READ;
try {
var httpCacheSession = gCacheService.createSession("HTTP", Components.interfaces.nsICache.STORE_ANYWHERE, true);
httpCacheSession.asyncOpenCacheEntry(url, ACCESS_READ,
{onCacheEntryAvailable: function(entry, access, status) {
if (entry)
callback(entry);
else {
var ftpCacheSession = gCacheService.createSession("FTP", Components.interfaces.nsICache.STORE_ANYWHERE, true);
ftpCacheSession.asyncOpenCacheEntry(url, ACCESS_READ,
{onCacheEntryAvailable: function(entry, access, status) {
callback(entry);
}}, true);
}
}}, true);
} catch(ex) {
console.log(ex);
callback(null);
}
}
모음집을 제작하시려면 Mozilla 부가 기능 계정이 있어야 합니다.
아니면 현재 사용중인 계정으로 로그인 하세요