修改规则求助

求助 求助
获赞:0    评论:8    查看:624

有哪位大佬可以在这个首页的图片部位加个搜索功能,即点击图片可以跳转到搜索引擎(粘贴不完整)

!!!!!!!!!!!!!!!!!!!

海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"ĐⱤłĐɆ₣ł","author":"@LoyDgIk","url":"hiker://js# 简约而不简单","version":6,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:var names=JSON.parse(getRule());\nvar Config = {};\n/------自定义区------/\n/----开关, 1 开启,0 关闭----/\n// 导出配置开关 \nvar exports = 0;\n// 本地配置, 开启后所有自定义区的 Config 失效, 启用本地配置 \nvar localConfig = 0;\n// 本地模式, 田园生活 \nConfig.localPattern = 0;\n\nConfig.tool = 1; //1 一言; 2 网抑; 3 天气; 0 关闭 \nConfig.detailed = 1; // 详细 \nConfig.homepage = 1; // 首页图 \nConfig.bookmarks = 0; // 书签 \n\n\n/----首页图----/\nConfig.wallpaperurl = 'http://api.btstu.cn/sjbz/api.php?lx=dongman&format=images';n// 自定义随机图,可为固定图片链接 nnConfig.randomPic = 1;\n// 图片随机刷新, 注意该功能极其耗缓存, 关闭后可清除缓存刷新图片。建议固定图片时关闭此选项 \n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n// 自定义跳转链接, 默认随机图链接 \n\nConfig.signature = '';\n/* 签名, 当 Config.tool 关闭时生效。\n 本地不能用:',''[]

回复(8)
  • yangyanch 回复
    视界の世界 2020-11-13 10:41:44

    大佬,能不能帮我改成,点击图片跳转但必应(或者百度。。。)那种方式啊!🙏🙏🙏🙏

    难道是要这种方式?

    海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"新首页","author":"@LoyDgIk","url":"hiker://js#简约而不简单","version":6,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\"use strict\"\nvar names=JSON.parse(getRule());\nvar Config = {};\n/*------自定义区------*/\n/*----开关,1开启,0关闭----*/\n//导出配置开关\nvar exports = 0;\n//本地配置,开启后所有自定义区的Config失效,启用本地配置\nvar localConfig = 1;\n//本地模式,田园生活\nConfig.localPattern = 0;\n\nConfig.tool = 1; //1一言;2网抑;3天气;0关闭\nConfig.detailed = 1; //详细\nConfig.homepage = 1; //首页图\nConfig.bookmarks = 0; //书签\n\n\n/*----首页图----*/\nConfig.wallpaperurl = 'http://api.btstu.cn/sjbz/api.php?lx=dongman&format=images';\n//自定义随机图,可为固定图片链接\n\nConfig.randomPic = 1;\n//图片随机刷新,注意该功能极其耗缓存,关闭后可清除缓存刷新图片。建议固定图片时关闭此选项\n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n//自定义跳转链接,默认随机图链接\n\nConfig.signature = '滴滴滴,我是签名';\n/*签名,当Config.tool关闭时生效。\n本地不能用:',' '[]' '{}'这几个符号*/\n\n\n/*----类型选择----*/\nConfig.hitokototype = ''; //一言类型\n/*类型详细:https://s1.ax1x.com/2020/05/03/JzYHcd.jpg*/\n\nConfig.musicClass = '热歌榜';\n//分类[热歌榜|新歌榜|飙升榜|抖音榜|电音榜]\n\nConfig.bookmarkclass = ''; //书签分类\n\nConfig.weathercustomisation = '';\n//自定义天气地区,不填为现在所在地\n\n/*----列表.自定义.进阶----*/\n/*---列表属性---*/\nvar cardArr = [];\ncardArr.push({\n    id: 0,\n    title: '*',\n    url: '',\n    titleStyle: 'text_center_1',\n    list: 'list.shortcut_list',\n    openClose: true,\n    Styles: [{\n        style: 'icon_small_4',\n        numEnd:4\n    },\n    {\n        style: 'icon_2',\n        numEnd:2\n    }]\n})\n\ncardArr.push({\n    id: 1,\n    title: '❇常用影视❇',\n    url: 'hiker://js',\n    titleStyle: 'text_center_1',\n    list: 'list.lists_1',\n    openClose: true,\n    Styles: [{\n        style: 'icon_4',\n        numEnd: 99\n    }]\n})\n\ncardArr.push({\n    id: 2,\n    title: '⚙️常用设置⚙️',\n    url: 'hiker://setting',\n    titleStyle: 'text_center_1',\n    list: 'list.lists_2',\n    openClose: true,\n    Styles: [{\n        style: 'icon_4',\n        numEnd: 99\n    }]\n})\n\n//书签列表\nConfig.bookmarkStyle = 'text_3';\n\n//功能性标题样式:包括有书签,天气,音乐,一言.\nConfig.functionStyle = 'text_center_1';\n/*\n注释:\n如何添加一个新的卡片?\n:把什么上面↑的cardArr.push({...})复制粘贴一个新;把下面↓的数组再按已有的格式创建一个。\n列表数值:\nid:序号,小的排前\ntitle:标题\nurl:点击标题跳转链接\ntitleStyle:标题样式\nlist:数组变量名称\nopenClose:列表开关,true显示/false不显示.\n\nStyles:数组样式(可设置多个样式)\n如:\n[{\n        style: 'text_4',//样式\n        numEnd: 4//索引\n    },\n    {\n        style: 'icon_2',\n        numEnd: 99\n    }]\n*/\n/*----列表----*/\nvar list = {};\nlist.shortcut_list=\n['收藏@@hiker://collection@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_collection.png',\n'书签@@hiker://bookmark@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_bookmark.png',\n'历史@@hiker://history@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_history.png',\n'插件@@hiker://js@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_video.png',\n'工具@@hiker://home@工具台🛠️@@https://www.easyicon.net/api/resizeApi.php?id=1244767&size=128',\n'总仓库@@hiker://home@总仓库@@https://www.easyicon.net/api/resizeApi.php?id=1244707&size=128'\n];\n\nlist.lists_1 =\n['腾讯@@hiker://home@腾讯@@https://img.rruu.net/image/5eb0bd7617e7d',\n'爱奇艺@@hiker://home@爱奇艺@@https://img.rruu.net/image/5eb11ccd88c21',\n'优酷@@hiker://home@优酷@@https://img.rruu.net/image/5eb0b89a3ba9d',\n'芒果@@hiker://home@芒果TV@@https://img.rruu.net/image/5eb0ba7eb4c9c',\n'剧汇TV@@hiker://home@剧汇TV·Re@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/com.juhui.tv.png',\n'真不卡影院@@hiker://home@真不卡影院@@https://img.rruu.net/image/5eb0c82e360fd',\n'完美看看@@hiker://home@完美看看@@https://img.rruu.net/image/5eb0cbd58a060',\n'奈菲影视@@hiker://home@奈菲影视@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/IMG_20200803_113838.png'\n]\n\nlist.lists_2 =\n['我的下载@@hiker://download@@https://www.easyicon.net/api/resizeApi.php?id=1271631&size=128',\n'元素拦截@@hiker://adRule@@https://www.easyicon.net/api/resizeApi.php?id=1271639&size=128',\n'网址拦截@@hiker://adUrl@@https://www.easyicon.net/api/resizeApi.php?id=1271613&size=128',\n'历史记录@@hiker://history@@https://www.easyicon.net/api/resizeApi.php?id=1271647&size=128',\n'网页插件@@hiker://js@@https://www.easyicon.net/api/resizeApi.php?id=1271622&size=128',\n'我的书签@@hiker://bookmark@@https://www.easyicon.net/api/resizeApi.php?id=1271621&size=128',\n'我的收藏@@hiker://collection@@https://www.easyicon.net/api/resizeApi.php?id=1271628&size=128',\n'其它设置@@hiker://settingMore@@https://www.easyicon.net/api/resizeApi.php?id=1271634&size=128'\n];\n/*------自定义区end------*/\nvar res = {};\nvar d = [];\nvar timestamp = '#' + new Date().getTime()\nif (exports) {\n    var annotation = '/**\\n* localPattern 本地模式,田园生活\\n* homepage 首页图\\n* tool 1一言;2网抑;3天气;0关\\n* detailed 详细\\n* weathercustomisation 自定义天气地区,不填为现在所在地\\n* bookmarks 书签\\n* hitokototype 一言类型,类型详细:https://s1.ax1x.com/2020/05/03/JzYHcd.jpg\\n* musicClass 分类[热歌榜|新歌榜|飙升榜|抖音榜|电音榜]\\n* bookmarkclass 书签分类\\n*/\\n';\nputVar({\n        key: 'Backup',\n        value: annotation + ('Config = ' + JSON.stringify(Config) + ';\\nlist = ' + JSON.stringify(list) + ';\\ncardArr = ' + JSON.stringify(cardArr)).replace(/,/g, ',\\n    ').replace(/\\[/g, '[\\n    ').replace(/\\]/g, '\\n]').replace(/{/g, '{\\n    ')\n    });\n    d.push({\n        title: '‘‘导出自定义数数据’’\\n注意会覆盖当前本地配置',\n        url: \"@lazyRule=.js:var cardArr=getVar('Backup');writeFile('hiker://files/rules/js/homeConfiguration.js',cardArr);\\\"javascript:document.write('<h1>导出完成</h1></br><h2>导出文件地址:</br>/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/rules/js/homeConfiguration.js</h2></br><p>本地文件配置可在海阔的js管理里修改(需要重启海阔)</br>可以分享插件快速分享配置给你的小伙伴</p>')\\\"\",\n        col_type: 'text_center_1'\n    })\n}\nif (localConfig) {\n    var tem = fetch('hiker://files/rules/js/homeConfiguration.js', {});\n    eval(tem);\n    if (tem == '') {\n        d.push({\n            title: '““没有本地配置文件””',\n            col_type: 'text_center_1'\n        })\n    }\n}\nif (Config.localPattern != true) {\n    try {\n        let json, desc, title = Config.signature, url = Config.userqriginalpictureurl == Config.wallpaperurl ? Config.randomPic ? Config.userqriginalpictureurl + '#.jpg' + timestamp: Config.userqriginalpictureurl + '#.jpg': Config.userqriginalpictureurl;\n        switch (Config.tool) {\n        case undefined:\n        case 0:\n            break;\n        case 1:\n            json = JSON.parse(fetch('https://v1.hitokoto.cn/?c=' + Config.hitokototype, {}));\n            let source = json.from_who;\n            if (source == null)\n                source = '未知';\n            title = json.hitokoto;\n            url = 'http://m.baidu.com';\n            desc = '出处:\\t《' + json.from + '》\\n作者:\\t' + source;\n            break;\n        case 2:\n            json = JSON.parse(fetch('https://api.uomg.com/api/rand.music?sort=' + Config.musicClass + '&format=json', {}));\n            title = json.data.name;\n            desc = '歌手:' + json.data.artistsname;\n            url = json.data.url + '.mp3';\n            break;\n        case 3:\n            json = JSON.parse(fetch('https://v1.alapi.cn/api/weather/now?location=' + Config.weathercustomisation, {}));\n            title = '当前位置:' + json.data.basic.location + '\\t 更新于:' + json.data.update.loc;\n            desc = '天气概况:温度:(' + json.data.now.tmp + '℃)\\t\\t体感:(' + json.data.now.fl + '℃)\\t\\t天气:('+json.data.now.cond_txt+')\\n风向:' + json.data.now.wind_dir + '\\t风力:' + json.data.now.wind_sc + '级\\t湿度:' + json.data.now.hum + '%\\t降水:' + json.data.now.pcpn + 'mm';\n            break;\n        default:\n            setError('我怀疑你在乱搞');\n        }\n        var toolbox = {};\n        if (Config.tool != false || Config.signature != '') {\n            toolbox.title = title;\n            if (Config.detailed)\n                toolbox.desc = desc;\n        }\n        toolbox.col_type = Config.functionStyle;\n        toolbox.url = url;\n        if (Config.homepage) {\n            toolbox.pic_url = Config.randomPic ? Config.wallpaperurl + '#.jpg' + timestamp: Config.wallpaperurl + '#.jpg';\n            toolbox.col_type = 'pic_1';\n        }\n        d.push(toolbox);\n    } catch(e) {}\n}\nfunction contrast(attribute) {\n    eval(base64Decode('aWYobmFtZXMuYXV0aG9yLmluZGV4T2YoJ0BMb3lEZ0lrJyk9PS0xKXNldEVycm9yKCfmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKQ=='));\nreturn function(a, b) {\n        let priority1 = a[attribute];\n        let priority2 = b[attribute];\n        return priority1 - priority2;\n    }\n}\ncardArr.sort(contrast('id'));\nfor (var i = 0; i < cardArr.length; i++) {\n    if (cardArr[i].openClose == false)\n        continue;\n    if (cardArr[i].title != undefined && cardArr[i].title !== '*') {\n        d.push({\n            title: cardArr[i].title,\n            url: cardArr[i].url,\n            col_type: cardArr[i].titleStyle\n        })\n    }\n    var team = eval(cardArr[i].list);\n    for (var j = 0; j < team.length; j++) {\n        var k = team[j].split(/\\s*@@\\s*/);\n        if (k.length < 2) {\n            continue;\n        }\n        var r = {},\n        sty = undefined;\n        if (Config.localPattern != true) {\n            for (var h = 0; h < cardArr[i].Styles.length; h++) {\n                if (h != 0) {\n                    var tue = cardArr[i].Styles[h - 1].numEnd;\n                } else {\n                    var tue = 0;\n                }\n                if (j >= tue && j < cardArr[i].Styles[h].numEnd + tue) {\n                    sty = cardArr[i].Styles[h].style;\n                }\n            }\n        } else {\n            sty = 'text_3';\n        }\n        if (sty == undefined)\n            break;\n        r.title = k[0];\n        r.url = k[1];\n        r.pic_url = k[2];\n        r.col_type = sty;\n        d.push(r);\n    }\n}\n/*书签*/\nif (Config.bookmarks) {\n    var text = '我的书签';\n    if (Config.bookmarkclass != '')\n        text = '我的' + Config.bookmarkclass;\n    d.push({\n        title: text,\n        url: \"hiker://bookmark\",\n        col_type: Config.functionStyle\n    });\n    var t = JSON.parse(fetch('hiker://bookmark', {}));\n    if (t != null && t.length > 0) {\n        for (var i = 0; i < t.length; i++) {\n            if (Config.bookmarkclass && t[i].group != Config.bookmarkclass)\n               continue;\n            var team = {};\n            team.title = t[i].title;\n            team.url = t[i].url.replace(/.*rule:\\/\\//g, 'rule://').replace(/.*hiker:\\/\\/home@/g, 'hiker://home@');\n            team.col_type = Config.bookmarkStyle;\n            d.push(team);\n        }\n    }\n}\nres.data = d;\nsetHomeResult(res);","search_url":"","titleColor":"#fff20c00","group":"⑩回收站","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":""}
    

  • yangyanch 回复
    视界の世界 2020-11-13 10:41:44

    大佬,能不能帮我改成,点击图片跳转但必应(或者百度。。。)那种方式啊!🙏🙏🙏🙏

    刚发的两个都导入下,百度这个就别改分组名了…

    海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"title":"百度","author":"","url":"","version":0,"col_type":"movie_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"","search_url":"https://m.baidu.com/s?word=**","titleColor":"","group":"①搜索","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"text_2","sdetail_find_rule":"","ua":"mobile","preRule":""}
    

  • yangyanch 回复
    视界の世界 2020-11-13 10:41:44

    大佬,能不能帮我改成,点击图片跳转但必应(或者百度。。。)那种方式啊!🙏🙏🙏🙏

    海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"新首页","author":"@LoyDgIk","url":"hiker://js#简约而不简单","version":6,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\"use strict\"\nvar names=JSON.parse(getRule());\nvar Config = {};\n/*------自定义区------*/\n/*----开关,1开启,0关闭----*/\n//导出配置开关\nvar exports = 0;\n//本地配置,开启后所有自定义区的Config失效,启用本地配置\nvar localConfig = 1;\n//本地模式,田园生活\nConfig.localPattern = 0;\n\nConfig.tool = 1; //1一言;2网抑;3天气;0关闭\nConfig.detailed = 1; //详细\nConfig.homepage = 1; //首页图\nConfig.bookmarks = 0; //书签\n\n\n/*----首页图----*/\nConfig.wallpaperurl = 'http://api.btstu.cn/sjbz/api.php?lx=dongman&format=images';\n//自定义随机图,可为固定图片链接\n\nConfig.randomPic = 1;\n//图片随机刷新,注意该功能极其耗缓存,关闭后可清除缓存刷新图片。建议固定图片时关闭此选项\n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n//自定义跳转链接,默认随机图链接\n\nConfig.signature = '滴滴滴,我是签名';\n/*签名,当Config.tool关闭时生效。\n本地不能用:',' '[]' '{}'这几个符号*/\n\n\n/*----类型选择----*/\nConfig.hitokototype = ''; //一言类型\n/*类型详细:https://s1.ax1x.com/2020/05/03/JzYHcd.jpg*/\n\nConfig.musicClass = '热歌榜';\n//分类[热歌榜|新歌榜|飙升榜|抖音榜|电音榜]\n\nConfig.bookmarkclass = ''; //书签分类\n\nConfig.weathercustomisation = '';\n//自定义天气地区,不填为现在所在地\n\n/*----列表.自定义.进阶----*/\n/*---列表属性---*/\nvar cardArr = [];\ncardArr.push({\n    id: 0,\n    title: '*',\n    url: '',\n    titleStyle: 'text_center_1',\n    list: 'list.shortcut_list',\n    openClose: true,\n    Styles: [{\n        style: 'icon_small_4',\n        numEnd:4\n    },\n    {\n        style: 'icon_2',\n        numEnd:2\n    }]\n})\n\ncardArr.push({\n    id: 1,\n    title: '❇常用影视❇',\n    url: 'hiker://js',\n    titleStyle: 'text_center_1',\n    list: 'list.lists_1',\n    openClose: true,\n    Styles: [{\n        style: 'icon_4',\n        numEnd: 99\n    }]\n})\n\ncardArr.push({\n    id: 2,\n    title: '⚙️常用设置⚙️',\n    url: 'hiker://setting',\n    titleStyle: 'text_center_1',\n    list: 'list.lists_2',\n    openClose: true,\n    Styles: [{\n        style: 'icon_4',\n        numEnd: 99\n    }]\n})\n\n//书签列表\nConfig.bookmarkStyle = 'text_3';\n\n//功能性标题样式:包括有书签,天气,音乐,一言.\nConfig.functionStyle = 'text_center_1';\n/*\n注释:\n如何添加一个新的卡片?\n:把什么上面↑的cardArr.push({...})复制粘贴一个新;把下面↓的数组再按已有的格式创建一个。\n列表数值:\nid:序号,小的排前\ntitle:标题\nurl:点击标题跳转链接\ntitleStyle:标题样式\nlist:数组变量名称\nopenClose:列表开关,true显示/false不显示.\n\nStyles:数组样式(可设置多个样式)\n如:\n[{\n        style: 'text_4',//样式\n        numEnd: 4//索引\n    },\n    {\n        style: 'icon_2',\n        numEnd: 99\n    }]\n*/\n/*----列表----*/\nvar list = {};\nlist.shortcut_list=\n['收藏@@hiker://collection@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_collection.png',\n'书签@@hiker://bookmark@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_bookmark.png',\n'历史@@hiker://history@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_history.png',\n'插件@@hiker://js@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_video.png',\n'工具@@hiker://home@工具台🛠️@@https://www.easyicon.net/api/resizeApi.php?id=1244767&size=128',\n'总仓库@@hiker://home@总仓库@@https://www.easyicon.net/api/resizeApi.php?id=1244707&size=128'\n];\n\nlist.lists_1 =\n['腾讯@@hiker://home@腾讯@@https://img.rruu.net/image/5eb0bd7617e7d',\n'爱奇艺@@hiker://home@爱奇艺@@https://img.rruu.net/image/5eb11ccd88c21',\n'优酷@@hiker://home@优酷@@https://img.rruu.net/image/5eb0b89a3ba9d',\n'芒果@@hiker://home@芒果TV@@https://img.rruu.net/image/5eb0ba7eb4c9c',\n'剧汇TV@@hiker://home@剧汇TV·Re@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/com.juhui.tv.png',\n'真不卡影院@@hiker://home@真不卡影院@@https://img.rruu.net/image/5eb0c82e360fd',\n'完美看看@@hiker://home@完美看看@@https://img.rruu.net/image/5eb0cbd58a060',\n'奈菲影视@@hiker://home@奈菲影视@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/IMG_20200803_113838.png'\n]\n\nlist.lists_2 =\n['我的下载@@hiker://download@@https://www.easyicon.net/api/resizeApi.php?id=1271631&size=128',\n'元素拦截@@hiker://adRule@@https://www.easyicon.net/api/resizeApi.php?id=1271639&size=128',\n'网址拦截@@hiker://adUrl@@https://www.easyicon.net/api/resizeApi.php?id=1271613&size=128',\n'历史记录@@hiker://history@@https://www.easyicon.net/api/resizeApi.php?id=1271647&size=128',\n'网页插件@@hiker://js@@https://www.easyicon.net/api/resizeApi.php?id=1271622&size=128',\n'我的书签@@hiker://bookmark@@https://www.easyicon.net/api/resizeApi.php?id=1271621&size=128',\n'我的收藏@@hiker://collection@@https://www.easyicon.net/api/resizeApi.php?id=1271628&size=128',\n'其它设置@@hiker://settingMore@@https://www.easyicon.net/api/resizeApi.php?id=1271634&size=128'\n];\n/*------自定义区end------*/\nvar res = {};\nvar d = [];\nvar timestamp = '#' + new Date().getTime()\nif (exports) {\n    var annotation = '/**\\n* localPattern 本地模式,田园生活\\n* homepage 首页图\\n* tool 1一言;2网抑;3天气;0关\\n* detailed 详细\\n* weathercustomisation 自定义天气地区,不填为现在所在地\\n* bookmarks 书签\\n* hitokototype 一言类型,类型详细:https://s1.ax1x.com/2020/05/03/JzYHcd.jpg\\n* musicClass 分类[热歌榜|新歌榜|飙升榜|抖音榜|电音榜]\\n* bookmarkclass 书签分类\\n*/\\n';\nputVar({\n        key: 'Backup',\n        value: annotation + ('Config = ' + JSON.stringify(Config) + ';\\nlist = ' + JSON.stringify(list) + ';\\ncardArr = ' + JSON.stringify(cardArr)).replace(/,/g, ',\\n    ').replace(/\\[/g, '[\\n    ').replace(/\\]/g, '\\n]').replace(/{/g, '{\\n    ')\n    });\n    d.push({\n        title: '‘‘导出自定义数数据’’\\n注意会覆盖当前本地配置',\n        url: \"@lazyRule=.js:var cardArr=getVar('Backup');writeFile('hiker://files/rules/js/homeConfiguration.js',cardArr);\\\"javascript:document.write('<h1>导出完成</h1></br><h2>导出文件地址:</br>/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/rules/js/homeConfiguration.js</h2></br><p>本地文件配置可在海阔的js管理里修改(需要重启海阔)</br>可以分享插件快速分享配置给你的小伙伴</p>')\\\"\",\n        col_type: 'text_center_1'\n    })\n}\nif (localConfig) {\n    var tem = fetch('hiker://files/rules/js/homeConfiguration.js', {});\n    eval(tem);\n    if (tem == '') {\n        d.push({\n            title: '““没有本地配置文件””',\n            col_type: 'text_center_1'\n        })\n    }\n}\nif (Config.localPattern != true) {\n    try {\n        let json, desc, title = Config.signature, url = Config.userqriginalpictureurl == Config.wallpaperurl ? Config.randomPic ? Config.userqriginalpictureurl + '#.jpg' + timestamp: Config.userqriginalpictureurl + '#.jpg': Config.userqriginalpictureurl;\n        switch (Config.tool) {\n        case undefined:\n        case 0:\n            break;\n        case 1:\n            json = JSON.parse(fetch('https://v1.hitokoto.cn/?c=' + Config.hitokototype, {}));\n            let source = json.from_who;\n            if (source == null)\n                source = '未知';\n            title = json.hitokoto;\n            url = 'hiker://search?s= &group=①搜索';\n            desc = '出处:\\t《' + json.from + '》\\n作者:\\t' + source;\n            break;\n        case 2:\n            json = JSON.parse(fetch('https://api.uomg.com/api/rand.music?sort=' + Config.musicClass + '&format=json', {}));\n            title = json.data.name;\n            desc = '歌手:' + json.data.artistsname;\n            url = json.data.url + '.mp3';\n            break;\n        case 3:\n            json = JSON.parse(fetch('https://v1.alapi.cn/api/weather/now?location=' + Config.weathercustomisation, {}));\n            title = '当前位置:' + json.data.basic.location + '\\t 更新于:' + json.data.update.loc;\n            desc = '天气概况:温度:(' + json.data.now.tmp + '℃)\\t\\t体感:(' + json.data.now.fl + '℃)\\t\\t天气:('+json.data.now.cond_txt+')\\n风向:' + json.data.now.wind_dir + '\\t风力:' + json.data.now.wind_sc + '级\\t湿度:' + json.data.now.hum + '%\\t降水:' + json.data.now.pcpn + 'mm';\n            break;\n        default:\n            setError('我怀疑你在乱搞');\n        }\n        var toolbox = {};\n        if (Config.tool != false || Config.signature != '') {\n            toolbox.title = title;\n            if (Config.detailed)\n                toolbox.desc = desc;\n        }\n        toolbox.col_type = Config.functionStyle;\n        toolbox.url = url;\n        if (Config.homepage) {\n            toolbox.pic_url = Config.randomPic ? Config.wallpaperurl + '#.jpg' + timestamp: Config.wallpaperurl + '#.jpg';\n            toolbox.col_type = 'pic_1';\n        }\n        d.push(toolbox);\n    } catch(e) {}\n}\nfunction contrast(attribute) {\n    eval(base64Decode('aWYobmFtZXMuYXV0aG9yLmluZGV4T2YoJ0BMb3lEZ0lrJyk9PS0xKXNldEVycm9yKCfmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKQ=='));\nreturn function(a, b) {\n        let priority1 = a[attribute];\n        let priority2 = b[attribute];\n        return priority1 - priority2;\n    }\n}\ncardArr.sort(contrast('id'));\nfor (var i = 0; i < cardArr.length; i++) {\n    if (cardArr[i].openClose == false)\n        continue;\n    if (cardArr[i].title != undefined && cardArr[i].title !== '*') {\n        d.push({\n            title: cardArr[i].title,\n            url: cardArr[i].url,\n            col_type: cardArr[i].titleStyle\n        })\n    }\n    var team = eval(cardArr[i].list);\n    for (var j = 0; j < team.length; j++) {\n        var k = team[j].split(/\\s*@@\\s*/);\n        if (k.length < 2) {\n            continue;\n        }\n        var r = {},\n        sty = undefined;\n        if (Config.localPattern != true) {\n            for (var h = 0; h < cardArr[i].Styles.length; h++) {\n                if (h != 0) {\n                    var tue = cardArr[i].Styles[h - 1].numEnd;\n                } else {\n                    var tue = 0;\n                }\n                if (j >= tue && j < cardArr[i].Styles[h].numEnd + tue) {\n                    sty = cardArr[i].Styles[h].style;\n                }\n            }\n        } else {\n            sty = 'text_3';\n        }\n        if (sty == undefined)\n            break;\n        r.title = k[0];\n        r.url = k[1];\n        r.pic_url = k[2];\n        r.col_type = sty;\n        d.push(r);\n    }\n}\n/*书签*/\nif (Config.bookmarks) {\n    var text = '我的书签';\n    if (Config.bookmarkclass != '')\n        text = '我的' + Config.bookmarkclass;\n    d.push({\n        title: text,\n        url: \"hiker://bookmark\",\n        col_type: Config.functionStyle\n    });\n    var t = JSON.parse(fetch('hiker://bookmark', {}));\n    if (t != null && t.length > 0) {\n        for (var i = 0; i < t.length; i++) {\n            if (Config.bookmarkclass && t[i].group != Config.bookmarkclass)\n               continue;\n            var team = {};\n            team.title = t[i].title;\n            team.url = t[i].url.replace(/.*rule:\\/\\//g, 'rule://').replace(/.*hiker:\\/\\/home@/g, 'hiker://home@');\n            team.col_type = Config.bookmarkStyle;\n            d.push(team);\n        }\n    }\n}\nres.data = d;\nsetHomeResult(res);","search_url":"","titleColor":"#fff20c00","group":"⑩回收站","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":""}
    

  • 视界の世界 回复
    yangyanch 2020-11-13 07:33:07

    我第二个回贴

    大佬,能不能帮我改成,点击图片跳转但必应(或者百度。。。)那种方式啊!🙏🙏🙏🙏

  • yangyanch 回复
    视界の世界 2020-11-13 01:37:05

    不好意思,复制不完整!怎么加个搜索,类似下面这个规则

    !!!!!!!!!!!!!!!!!!!!

    海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"我的首页","author":"","url":"https://v1.jinrishici.com/all.json","version":0,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js: \nvar titles=\n[\n' 搜索专区 @@hiker://home@搜索区 ',\n' 动漫专区 @@hiker://home@动漫区 ',\n' 工具专区 @@hiker://home@工具区 ',\n' 影视专区 @@hiker://home@影视区 ',\n' 图片专区 @@hiker://home@图片区 ',\n' 音乐专区 @@hiker://home@音乐区 ',\n' 资源专区 @@hiker://home@资源区 ',\n' 直播专区 @@hiker://home@直播 (常用)',\n' 网盘专区 @@hiker://home@网盘区 ',\n' 资讯专区 @@hiker://home@资讯区 ',\n' 鱼塘热榜 @@hiker://home@鱼塘热榜 ',\n' 今日热榜 @@hiker://home@今日热榜 ',\n\n' 正版视频 @@hiker://home@爱优腾 ',\n' 豆瓣榜单 @@hiker://home@新豆瓣 ',\n' 妮可动漫 @@hiker://home@妮可动漫 ',\n' 资源采集 @@hiker://home@资源采集 (订阅)',\n' 高清影视 @@hiker://home@奈菲影视 ',\n' 搜狗看剧 @@hiker://home@搜狗看剧 ',\n\n\n' 首页频道 @@hiker://home',\n' 我的收藏 @@hiker://collection',\n'one 主页 @@https://ecruos.gitee.io/one',n' 海阔社区 @@http://bbs.fy-sys.cn',n' 历史记录 @@hiker://history',n' 网页插件 @@hiker://js',n' 我的书签 @@hiker://bookmark',n' 我的下载 @@hiker://download',n' 元素拦截 @@hiker://adRule',n' 网址拦截 @@hiker://adUrl',n' 常用设置 @@hiker://setting',n' 其它设置 @@hiker://settingMore',nn];nnvar t=titles;\nvar res={};\nvar d=[];\nvar hitokoto={};\neval(\"hitokoto=\"+getResCode());\n\nd.push(\n{\n title:hitokoto.content,\n desc:\n' 类别:'+hitokoto.category+\n'\n 作者:'+hitokoto.author+'《'+hitokoto.origin+'》',\n col_type:'pic_1',\n\n url:\"http://cn.bing.com/?mkt=zh-CN",n pic_url: 'http://api.btstu.cn/sjbz/?lx=fengjing?t=' + new Date().getTime()\n\n/\nurl:\"http://cn.bing.com/?mkt=zh-CN", pic_url:\"file:///storage/emulated/0/Android/data/com.example.hikerview/files/Documents/shouye2.png\" \n/\n});\n\n/\nd.push({\r\n title:' 天气预报 ',\r\n col_type:'text_1'\r\n});\n\nvar bm = [];\nvar json = fetch('https://v1.alapi.cn/api/tianqi/now', {});\neval('bm=' + json);\n var r = {};\n var j = bm.data;\n r.title =''+j.city+' '+j.date+' '+j.week+' ('+' 温度:'+j.tem+'℃'+')'+'\n'+'pm2.5:'+j.air_pm25+' '+j.air_level+' '+' 天气 '+j.wea+' '+j.win+j.win_speed+' '+j.tem2+'~'+j.tem1+'℃';\n r.col_type ='text_1';\n if (r.title !== null && r.title !== undefined && r.title !=='') \n d.push(r);\n/\n\nd.push({\r\n title:' 我的社区 ',\r\n //url: \"hiker://bookmark\",\r\n col_type:'text_1'\r\n});\n\nfor(var i=0;i 0) {\r\n eval('bm='+ b); /setError(b); 打印出来看看/\r\n for (var j = 0; j < bm.length; j++) {\r\n var l = {};\r\n l.title = bm[j].title;\r\n l.url = bm[j].url;\r\n d.push(l);\r\n }\r\n}\n\r\nres.data = d;\r\nsetHomeResult(res);","search_url":"","titleColor":"#FFff9526","group":"①推荐 ","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":""}

    我第二个回贴

  • 视界の世界 回复

    不好意思,复制不完整!怎么加个搜索,类似下面这个规则

    !!!!!!!!!!!!!!!!!!!!

    海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"我的首页","author":"","url":"https://v1.jinrishici.com/all.json","version":0,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js: \nvar titles=\n[\n' 搜索专区 @@hiker://home@搜索区 ',\n' 动漫专区 @@hiker://home@动漫区 ',\n' 工具专区 @@hiker://home@工具区 ',\n' 影视专区 @@hiker://home@影视区 ',\n' 图片专区 @@hiker://home@图片区 ',\n' 音乐专区 @@hiker://home@音乐区 ',\n' 资源专区 @@hiker://home@资源区 ',\n' 直播专区 @@hiker://home@直播 (常用)',\n' 网盘专区 @@hiker://home@网盘区 ',\n' 资讯专区 @@hiker://home@资讯区 ',\n' 鱼塘热榜 @@hiker://home@鱼塘热榜 ',\n' 今日热榜 @@hiker://home@今日热榜 ',\n\n' 正版视频 @@hiker://home@爱优腾 ',\n' 豆瓣榜单 @@hiker://home@新豆瓣 ',\n' 妮可动漫 @@hiker://home@妮可动漫 ',\n' 资源采集 @@hiker://home@资源采集 (订阅)',\n' 高清影视 @@hiker://home@奈菲影视 ',\n' 搜狗看剧 @@hiker://home@搜狗看剧 ',\n\n\n' 首页频道 @@hiker://home',\n' 我的收藏 @@hiker://collection',\n'one 主页 @@https://ecruos.gitee.io/one',n' 海阔社区 @@http://bbs.fy-sys.cn',n' 历史记录 @@hiker://history',n' 网页插件 @@hiker://js',n' 我的书签 @@hiker://bookmark',n' 我的下载 @@hiker://download',n' 元素拦截 @@hiker://adRule',n' 网址拦截 @@hiker://adUrl',n' 常用设置 @@hiker://setting',n' 其它设置 @@hiker://settingMore',nn];nnvar t=titles;\nvar res={};\nvar d=[];\nvar hitokoto={};\neval(\"hitokoto=\"+getResCode());\n\nd.push(\n{\n title:hitokoto.content,\n desc:\n' 类别:'+hitokoto.category+\n'\n 作者:'+hitokoto.author+'《'+hitokoto.origin+'》',\n col_type:'pic_1',\n\n url:\"http://cn.bing.com/?mkt=zh-CN",n pic_url: 'http://api.btstu.cn/sjbz/?lx=fengjing?t=' + new Date().getTime()\n\n/\nurl:\"http://cn.bing.com/?mkt=zh-CN", pic_url:\"file:///storage/emulated/0/Android/data/com.example.hikerview/files/Documents/shouye2.png\" \n/\n});\n\n/\nd.push({\r\n title:' 天气预报 ',\r\n col_type:'text_1'\r\n});\n\nvar bm = [];\nvar json = fetch('https://v1.alapi.cn/api/tianqi/now', {});\neval('bm=' + json);\n var r = {};\n var j = bm.data;\n r.title =''+j.city+' '+j.date+' '+j.week+' ('+' 温度:'+j.tem+'℃'+')'+'\n'+'pm2.5:'+j.air_pm25+' '+j.air_level+' '+' 天气 '+j.wea+' '+j.win+j.win_speed+' '+j.tem2+'~'+j.tem1+'℃';\n r.col_type ='text_1';\n if (r.title !== null && r.title !== undefined && r.title !=='') \n d.push(r);\n/\n\nd.push({\r\n title:' 我的社区 ',\r\n //url: \"hiker://bookmark\",\r\n col_type:'text_1'\r\n});\n\nfor(var i=0;i 0) {\r\n eval('bm='+ b); /setError(b); 打印出来看看/\r\n for (var j = 0; j < bm.length; j++) {\r\n var l = {};\r\n l.title = bm[j].title;\r\n l.url = bm[j].url;\r\n d.push(l);\r\n }\r\n}\n\r\nres.data = d;\r\nsetHomeResult(res);","search_url":"","titleColor":"#FFff9526","group":"①推荐 ","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":""}

  • yangyanch 回复

    海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"新首页","author":"@LoyDgIk","url":"hiker://js#简约而不简单","version":6,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\"use strict\"\nvar names=JSON.parse(getRule());\nvar Config = {};\n/*------自定义区------*/\n/*----开关,1开启,0关闭----*/\n//导出配置开关\nvar exports = 0;\n//本地配置,开启后所有自定义区的Config失效,启用本地配置\nvar localConfig = 1;\n//本地模式,田园生活\nConfig.localPattern = 0;\n\nConfig.tool = 1; //1一言;2网抑;3天气;0关闭\nConfig.detailed = 1; //详细\nConfig.homepage = 1; //首页图\nConfig.bookmarks = 0; //书签\n\n\n/*----首页图----*/\nConfig.wallpaperurl = 'http://api.btstu.cn/sjbz/api.php?lx=dongman&format=images';\n//自定义随机图,可为固定图片链接\n\nConfig.randomPic = 1;\n//图片随机刷新,注意该功能极其耗缓存,关闭后可清除缓存刷新图片。建议固定图片时关闭此选项\n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n//自定义跳转链接,默认随机图链接\n\nConfig.signature = '滴滴滴,我是签名';\n/*签名,当Config.tool关闭时生效。\n本地不能用:',' '[]' '{}'这几个符号*/\n\n\n/*----类型选择----*/\nConfig.hitokototype = ''; //一言类型\n/*类型详细:https://s1.ax1x.com/2020/05/03/JzYHcd.jpg*/\n\nConfig.musicClass = '热歌榜';\n//分类[热歌榜|新歌榜|飙升榜|抖音榜|电音榜]\n\nConfig.bookmarkclass = ''; //书签分类\n\nConfig.weathercustomisation = '';\n//自定义天气地区,不填为现在所在地\n\n/*----列表.自定义.进阶----*/\n/*---列表属性---*/\nvar cardArr = [];\ncardArr.push({\n    id: 0,\n    title: '*',\n    url: '',\n    titleStyle: 'text_center_1',\n    list: 'list.shortcut_list',\n    openClose: true,\n    Styles: [{\n        style: 'icon_small_4',\n        numEnd:4\n    },\n    {\n        style: 'icon_2',\n        numEnd:2\n    }]\n})\n\ncardArr.push({\n    id: 1,\n    title: '❇常用影视❇',\n    url: 'hiker://js',\n    titleStyle: 'text_center_1',\n    list: 'list.lists_1',\n    openClose: true,\n    Styles: [{\n        style: 'icon_4',\n        numEnd: 99\n    }]\n})\n\ncardArr.push({\n    id: 2,\n    title: '⚙️常用设置⚙️',\n    url: 'hiker://setting',\n    titleStyle: 'text_center_1',\n    list: 'list.lists_2',\n    openClose: true,\n    Styles: [{\n        style: 'icon_4',\n        numEnd: 99\n    }]\n})\n\n//书签列表\nConfig.bookmarkStyle = 'text_3';\n\n//功能性标题样式:包括有书签,天气,音乐,一言.\nConfig.functionStyle = 'text_center_1';\n/*\n注释:\n如何添加一个新的卡片?\n:把什么上面↑的cardArr.push({...})复制粘贴一个新;把下面↓的数组再按已有的格式创建一个。\n列表数值:\nid:序号,小的排前\ntitle:标题\nurl:点击标题跳转链接\ntitleStyle:标题样式\nlist:数组变量名称\nopenClose:列表开关,true显示/false不显示.\n\nStyles:数组样式(可设置多个样式)\n如:\n[{\n        style: 'text_4',//样式\n        numEnd: 4//索引\n    },\n    {\n        style: 'icon_2',\n        numEnd: 99\n    }]\n*/\n/*----列表----*/\nvar list = {};\nlist.shortcut_list=\n['收藏@@hiker://collection@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_collection.png',\n'书签@@hiker://bookmark@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_bookmark.png',\n'历史@@hiker://history@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_history.png',\n'插件@@hiker://js@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/home_video.png',\n'工具@@hiker://home@工具台🛠️@@https://www.easyicon.net/api/resizeApi.php?id=1244767&size=128',\n'总仓库@@hiker://home@总仓库@@https://www.easyicon.net/api/resizeApi.php?id=1244707&size=128'\n];\n\nlist.lists_1 =\n['腾讯@@hiker://home@腾讯@@https://img.rruu.net/image/5eb0bd7617e7d',\n'爱奇艺@@hiker://home@爱奇艺@@https://img.rruu.net/image/5eb11ccd88c21',\n'优酷@@hiker://home@优酷@@https://img.rruu.net/image/5eb0b89a3ba9d',\n'芒果@@hiker://home@芒果TV@@https://img.rruu.net/image/5eb0ba7eb4c9c',\n'剧汇TV@@hiker://home@剧汇TV·Re@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/com.juhui.tv.png',\n'真不卡影院@@hiker://home@真不卡影院@@https://img.rruu.net/image/5eb0c82e360fd',\n'完美看看@@hiker://home@完美看看@@https://img.rruu.net/image/5eb0cbd58a060',\n'奈菲影视@@hiker://home@奈菲影视@@https://gitee.com/LoyDgIk/LoyDgIk_Rule/raw/master/Icon%20/IMG_20200803_113838.png'\n]\n\nlist.lists_2 =\n['我的下载@@hiker://download@@https://www.easyicon.net/api/resizeApi.php?id=1271631&size=128',\n'元素拦截@@hiker://adRule@@https://www.easyicon.net/api/resizeApi.php?id=1271639&size=128',\n'网址拦截@@hiker://adUrl@@https://www.easyicon.net/api/resizeApi.php?id=1271613&size=128',\n'历史记录@@hiker://history@@https://www.easyicon.net/api/resizeApi.php?id=1271647&size=128',\n'网页插件@@hiker://js@@https://www.easyicon.net/api/resizeApi.php?id=1271622&size=128',\n'我的书签@@hiker://bookmark@@https://www.easyicon.net/api/resizeApi.php?id=1271621&size=128',\n'我的收藏@@hiker://collection@@https://www.easyicon.net/api/resizeApi.php?id=1271628&size=128',\n'其它设置@@hiker://settingMore@@https://www.easyicon.net/api/resizeApi.php?id=1271634&size=128'\n];\n/*------自定义区end------*/\nvar res = {};\nvar d = [];\nvar timestamp = '#' + new Date().getTime()\nif (exports) {\n    var annotation = '/**\\n* localPattern 本地模式,田园生活\\n* homepage 首页图\\n* tool 1一言;2网抑;3天气;0关\\n* detailed 详细\\n* weathercustomisation 自定义天气地区,不填为现在所在地\\n* bookmarks 书签\\n* hitokototype 一言类型,类型详细:https://s1.ax1x.com/2020/05/03/JzYHcd.jpg\\n* musicClass 分类[热歌榜|新歌榜|飙升榜|抖音榜|电音榜]\\n* bookmarkclass 书签分类\\n*/\\n';\nputVar({\n        key: 'Backup',\n        value: annotation + ('Config = ' + JSON.stringify(Config) + ';\\nlist = ' + JSON.stringify(list) + ';\\ncardArr = ' + JSON.stringify(cardArr)).replace(/,/g, ',\\n    ').replace(/\\[/g, '[\\n    ').replace(/\\]/g, '\\n]').replace(/{/g, '{\\n    ')\n    });\n    d.push({\n        title: '‘‘导出自定义数数据’’\\n注意会覆盖当前本地配置',\n        url: \"@lazyRule=.js:var cardArr=getVar('Backup');writeFile('hiker://files/rules/js/homeConfiguration.js',cardArr);\\\"javascript:document.write('<h1>导出完成</h1></br><h2>导出文件地址:</br>/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/rules/js/homeConfiguration.js</h2></br><p>本地文件配置可在海阔的js管理里修改(需要重启海阔)</br>可以分享插件快速分享配置给你的小伙伴</p>')\\\"\",\n        col_type: 'text_center_1'\n    })\n}\nif (localConfig) {\n    var tem = fetch('hiker://files/rules/js/homeConfiguration.js', {});\n    eval(tem);\n    if (tem == '') {\n        d.push({\n            title: '““没有本地配置文件””',\n            col_type: 'text_center_1'\n        })\n    }\n}\nif (Config.localPattern != true) {\n    try {\n        let json, desc, title = Config.signature, url = Config.userqriginalpictureurl == Config.wallpaperurl ? Config.randomPic ? Config.userqriginalpictureurl + '#.jpg' + timestamp: Config.userqriginalpictureurl + '#.jpg': Config.userqriginalpictureurl;\n        switch (Config.tool) {\n        case undefined:\n        case 0:\n            break;\n        case 1:\n            json = JSON.parse(fetch('https://v1.hitokoto.cn/?c=' + Config.hitokototype, {}));\n            let source = json.from_who;\n            if (source == null)\n                source = '未知';\n            title = json.hitokoto;\n            url = 'hiker://search?s= ';\n            desc = '出处:\\t《' + json.from + '》\\n作者:\\t' + source;\n            break;\n        case 2:\n            json = JSON.parse(fetch('https://api.uomg.com/api/rand.music?sort=' + Config.musicClass + '&format=json', {}));\n            title = json.data.name;\n            desc = '歌手:' + json.data.artistsname;\n            url = json.data.url + '.mp3';\n            break;\n        case 3:\n            json = JSON.parse(fetch('https://v1.alapi.cn/api/weather/now?location=' + Config.weathercustomisation, {}));\n            title = '当前位置:' + json.data.basic.location + '\\t 更新于:' + json.data.update.loc;\n            desc = '天气概况:温度:(' + json.data.now.tmp + '℃)\\t\\t体感:(' + json.data.now.fl + '℃)\\t\\t天气:('+json.data.now.cond_txt+')\\n风向:' + json.data.now.wind_dir + '\\t风力:' + json.data.now.wind_sc + '级\\t湿度:' + json.data.now.hum + '%\\t降水:' + json.data.now.pcpn + 'mm';\n            break;\n        default:\n            setError('我怀疑你在乱搞');\n        }\n        var toolbox = {};\n        if (Config.tool != false || Config.signature != '') {\n            toolbox.title = title;\n            if (Config.detailed)\n                toolbox.desc = desc;\n        }\n        toolbox.col_type = Config.functionStyle;\n        toolbox.url = url;\n        if (Config.homepage) {\n            toolbox.pic_url = Config.randomPic ? Config.wallpaperurl + '#.jpg' + timestamp: Config.wallpaperurl + '#.jpg';\n            toolbox.col_type = 'pic_1';\n        }\n        d.push(toolbox);\n    } catch(e) {}\n}\nfunction contrast(attribute) {\n    eval(base64Decode('aWYobmFtZXMuYXV0aG9yLmluZGV4T2YoJ0BMb3lEZ0lrJyk9PS0xKXNldEVycm9yKCfmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKQ=='));\nreturn function(a, b) {\n        let priority1 = a[attribute];\n        let priority2 = b[attribute];\n        return priority1 - priority2;\n    }\n}\ncardArr.sort(contrast('id'));\nfor (var i = 0; i < cardArr.length; i++) {\n    if (cardArr[i].openClose == false)\n        continue;\n    if (cardArr[i].title != undefined && cardArr[i].title !== '*') {\n        d.push({\n            title: cardArr[i].title,\n            url: cardArr[i].url,\n            col_type: cardArr[i].titleStyle\n        })\n    }\n    var team = eval(cardArr[i].list);\n    for (var j = 0; j < team.length; j++) {\n        var k = team[j].split(/\\s*@@\\s*/);\n        if (k.length < 2) {\n            continue;\n        }\n        var r = {},\n        sty = undefined;\n        if (Config.localPattern != true) {\n            for (var h = 0; h < cardArr[i].Styles.length; h++) {\n                if (h != 0) {\n                    var tue = cardArr[i].Styles[h - 1].numEnd;\n                } else {\n                    var tue = 0;\n                }\n                if (j >= tue && j < cardArr[i].Styles[h].numEnd + tue) {\n                    sty = cardArr[i].Styles[h].style;\n                }\n            }\n        } else {\n            sty = 'text_3';\n        }\n        if (sty == undefined)\n            break;\n        r.title = k[0];\n        r.url = k[1];\n        r.pic_url = k[2];\n        r.col_type = sty;\n        d.push(r);\n    }\n}\n/*书签*/\nif (Config.bookmarks) {\n    var text = '我的书签';\n    if (Config.bookmarkclass != '')\n        text = '我的' + Config.bookmarkclass;\n    d.push({\n        title: text,\n        url: \"hiker://bookmark\",\n        col_type: Config.functionStyle\n    });\n    var t = JSON.parse(fetch('hiker://bookmark', {}));\n    if (t != null && t.length > 0) {\n        for (var i = 0; i < t.length; i++) {\n            if (Config.bookmarkclass && t[i].group != Config.bookmarkclass)\n               continue;\n            var team = {};\n            team.title = t[i].title;\n            team.url = t[i].url.replace(/.*rule:\\/\\//g, 'rule://').replace(/.*hiker:\\/\\/home@/g, 'hiker://home@');\n            team.col_type = Config.bookmarkStyle;\n            d.push(team);\n        }\n    }\n}\nres.data = d;\nsetHomeResult(res);","search_url":"","titleColor":"#fff20c00","group":"⑩回收站","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":""}
    

  • yangyanch 回复

    啊这… 你把规则贴好点啊

发表话题
  • 积分
    30
  • 注册排名
    173