Greasy Fork is available in English.

百度云插件+APIKey

在百度云网盘的页面添加一个搜索框,调用搜索API搜索所有公开分享文件// To add a search frame that calls some api for searching some public shared files in BaiduYun cloud netdisk.

< Rückmeldungen auf百度云插件+APIKey

Frage/Kommentar

§
Veröffentlicht: 30.05.2017

贴上修复代码(2017.5.30有效)

修改区域1:

删除3行,替换1行,新增3行

搜索代码 function newInit (),在323行开始

function newInit () {
    //remove advs
    //create search bar

//    if(document.querySelector('.header-union')){
//        document.querySelector('.header-union').remove();
//    }
//    var targetNode = document.querySelector('.header-info');

//### 将 326行-329行 替换为如下代码 ###

    var targetNode = document.querySelector('.find-light-icon').parentNode.parentNode;
    if (targetNode.parentNode.lastChild.getAttribute("node-type")=="header-union") {
        targetNode.parentNode.lastChild.remove();
    }

//### 以上替换结束

修改区域2:

修改1行

搜索 .header-info,在第500行

    //if (document.querySelector(".header-info") !== null) {

    // 第500行 修改为:

    if (document.querySelector(".find-light-icon") !== null) {

Antwort schreiben

Anmelden um eine Antwort zu senden.