mingl0280
V2EX  ›  问与答

有人知道这个 mozCNUtils 是什么东西么?

  •  
  •   mingl0280 · Jan 4, 2022 · 1740 views
    This topic created in 1765 days ago, the information mentioned may be changed or developed.

    这两天突然想把火狐国内版那个导航页给扒到本地上,然后发现里面有个这个东西(我火狐是海外版,只是觉得那个导航好用):

    if (window.mozCNChannel) {
    WebChannel.send("thumbs.getThumbnail", { url: aUrl });
    } else if (window.mozCNUtils && window.mozCNUtils.thumbs) {
    var request = window.mozCNUtils.thumbs.getThumbnail(aUrl);
    request.onsuccess = function() {
    WebChannel.handleData("thumbs.getThumbnail", {
    url: aUrl,
    blob: request.result
    });
    };
    request.onerror = function() {
    WebChannel.handleData("thumbs.getThumbnail", { url: aUrl });
    }
    } else {
    WebChannel.handleData("thumbs.getThumbnail", { url: aUrl });
    }
    

    其中这个 window.mozCNUtils 是火狐国内版自带的插件?这东西有地方找到源码吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1625 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:58 · PVG 01:58 · LAX 09:58 · JFK 12:58
    ♥ Do have faith in what you're doing.