谁有这个首页的规则呀 可以分享一下嘛 论坛没找见,
948720857 2020-11-28 16:16:27 海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"𝗛𝗶𝗸𝗲𝗿𝗛𝗼𝗺𝗲","author":"@LoyDgIk","url":"hiker://home# 简约而不简单","version":7,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\nlet Config = {};\n/------自定义区------/\n/----开关, 1 开启,0 关闭----/\n\n// 本地配置, 开启后所有自定义区的 Config 失效, 可以使用网页设置功能。\nlet localConfig = 1;\n\nputVar({key:'status', value:localConfig})\n// 本地模式, 田园生活 \nConfig.localPattern = 0;\nConfig.tool = 1; //1 一言; 2 网抑; 3 天气; 0 关闭 \nConfig.detailed = 1; // 详细 \nConfig.homepage = 1; // 首页图 \nConfig.bookmarks = 0; // 书签 \nConfig.hikerHistory = 1; // 历史记录 \nConfig.hikerCollection = 0; // 收藏 \nConfig.avatarSign = 0; // 头像签名 \nlet detailWrap = 1; // 详细是否换行 \n\nlet historyIndex = ()=> d.length; // 历史记录位置 \nlet collectionIndex = ()=> d.length-2; // 收藏位置 \n\n\n/----首页图----/\nConfig.wallpaperurl = 'https://acg.xydwz.cn/gqapi/gqapi.php';n// 自定义随机图,可为固定图片链接 nnConfig.randomPic = 1;\n// 图片随机刷新, 注意该功能极其耗缓存, 关闭后可清除缓存刷新图片。建议固定图片时关闭此选项 \n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n// 自定义跳转链接, 默认随机图链接 \n\nConfig.avatarPic = 'http://q1.qlogo.cn/qhis/Q3auHgzwzM5vn0NnGUZ5gMx3IXgsibUu4Jw0ESJ0ibNBfejuXFa2KiaVXBhUbdWknibkZ8JC1Dwnvlzbp0sbU6mpjQ/';nConfig.signature = 'LoyDgIk——欲买桂花同载酒,终不似,少年游';\n// 签名设置。\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/---列表属性---/\nlet 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_round_small_4',\n numEnd: 4\n},{\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: 4\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/----列表----/\nlet 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://empty#noHistory#@rule=js:eval(fetch(\"hiker://files/rules/js/homeUtility.js\",{}));settingFirst()@@https://www.easyicon.net/api/resizeApi.php?id=1244707&size=128'n];nnList.lists_1 =[\n' 开天斧 @@hiker://home@开天斧 @@https://i.loli.net/2020/10/07/Av5U6GlJeBca7u9.jpg',n ' 知乎日报 @@hiker://home@知乎日报社 RT@@https://i.loli.net/2020/10/07/ZNn7qYDeU6Qmgf8.jpg',n ' 海阔视界 @@hiker://home@海阔视界 R@@https://i.loli.net/2020/10/07/lOpGhaYI9gND2Kk.jpg',n ' 豆瓣新版 @@hiker://home@豆瓣新版 R@@https://i.loli.net/2020/10/07/zdFxEVmfQHG6OuN.jpg',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];nnList.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://settingMore@@https://www.easyicon.net/api/resizeApi.php?id=1271634&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://history@@https://www.easyicon.net/api/resizeApi.php?id=1271647&size=128'n];n/*------自定义区 end------*/nlet d = [];\nlet timestamp ='#'+ new Date().getTime();\ntry{\nif (localConfig) {\n let tem = fetch('hiker://files/HikerHome/homeConfiguration.json', {});\n let tem2 =fetch('hiker://files/HikerHome/arrayConfiguration.json', {});\n if (tem ==''|| tem2=='') {\n writeFile('hiker://files/HikerHome/arrayConfiguration.json',JSON.stringify(cardArr,null,4));\n writeFile('hiker://files/HikerHome/homeConfiguration.json',JSON.stringify(Config,null,4));\n } else {\n eval('Config ='+tem+';let ar='+tem2);\n for(let i in ar){\n cardArr[i].openClose = ar[i].openClose\n }\n }\n}\neval(fetch('hiker://files/rules/js/homeUtility.js',{}));\n}catch(e){}\ncardArr.sort((attribute => (a,b) =>\na[attribute] - b[attribute])('id'));\nfor (let i = 0; i < cardArr.length; i++) {\n if (!cardArr[i].openClose)\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 let team = eval(cardArr[i].list);\n for (let j = 0; j < team.length; j++) {\n let k = team[j].split(/\s@@\s*/);\n if (k.length < 2)\n continue;\n let tmp = false;\n if (!Config.localPattern) {\n for (let h = 0; h < cardArr[i].Styles.length; h++) {\n let flag = h ? cardArr[i].Styles[h - 1].numEnd: 0;\n if (j>= flag && j 书签/\nif (Config.bookmarks) {\n let 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 let book = JSON.parse(fetch('hiker://bookmark', {}));\n let team = Config.bookmarkclass ? book.filter(item => item.group == Config.bookmarkclass): book;\n team.map(data => d.push({\n title: data.title,\n url: data.url.replace(/.*rule:\/\//g,'rule://').replace(/.*hiker:\/\/home@/g,'hiker://home@'),\n col_type: Config.bookmarkStyle\n}))\n}\n\ntry{\n // 历史记录 \n if (Config.hikerHistory){\n var hData = [];\n let loc = typeof historyIndex == 'number'?historyIndex: historyIndex();\n hData.push({\n title:'🏷历史记录 (‘‘点此查看更多’’)🏷',\n url: \"hiker://history\",\n col_type: Config.functionStyle\n});\n history(loc+1);\n }\n // 我的收藏 \n if (Config.hikerCollection){\n var cData = [];\n let loc = typeof collectionIndex == 'number'?collectionIndex: collectionIndex();\n cData.push({\n title:'🏷收藏列表 (‘‘点此管理收藏’’)🏷',\n url: \"hiker://collection\",\n col_type: Config.functionStyle\n});\n collection(loc+1);\n }\n}catch(e){\n setError('\n——历史记录或者我的收藏出错:'+e.message);\n}\n// 底部留白 \nd.push({\n col_type:'long_text'\n});\n// 首页图片 \nif (!Config.localPattern && (Config.tool || Config.homepage)) {\n try {\n let json, desc='', title ='', url = Config.userqriginalpictureurl == Config.wallpaperurl ? Config.randomPic ? Config.userqriginalpictureurl +'#.jpg'+ timestamp: Config.userqriginalpictureurl +'#.jpg': Config.userqriginalpictureurl;\n let wrap = detailWrap ?'\n':'\t '\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 || source =='null')\n source =' 侠名 ';\n title = json.hitokoto;\n desc =' 出处:\t《'+ json.from +'》'+ wrap +' 作者:\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&memoryPosition=full';\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+')'+ wrap +' 风向:'+ 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 let toolbox = {};\n toolbox.title = title;\n toolbox.url = Config.homepage ? url:'toast://'+title;\n toolbox.desc = desc;\n toolbox.pic_url = Config.randomPic ? Config.wallpaperurl +'#.jpg'+ timestamp: Config.wallpaperurl +'#.jpg';\n toolbox.col_type = Config.functionStyle;\n if (Config.homepage) \n toolbox.col_type = 'pic_1';\n if (!Config.detailed)\n delete toolbox.desc;\n d.unshift(toolbox);\n } catch(e) {}\n}\n// 个人头像 \nif(Config.avatarSign){\n d.unshift({\n title: Config.signature,\n url:'toast://'+Config.signature,\n pic_url: Config.avatarPic,\n col_type:'avatar'\n});\n}\nsetHomeResult({data:d.concat.apply([],d)});","search_url":"","titleColor":"#ff228be6","group":"①推荐 ","searchFind":"","detail_col_type":"text_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":"eval(base64Decode('aWYoTVlfUlVMRS5hdXRob3IuaW5kZXhPZignQExveURnSWsnKT09LTEpc2V0RXJyb3IoJ1xuXHTmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKTs='))"}
海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"𝗛𝗶𝗸𝗲𝗿𝗛𝗼𝗺𝗲","author":"@LoyDgIk","url":"hiker://home# 简约而不简单","version":7,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\nlet Config = {};\n/------自定义区------/\n/----开关, 1 开启,0 关闭----/\n\n// 本地配置, 开启后所有自定义区的 Config 失效, 可以使用网页设置功能。\nlet localConfig = 1;\n\nputVar({key:'status', value:localConfig})\n// 本地模式, 田园生活 \nConfig.localPattern = 0;\nConfig.tool = 1; //1 一言; 2 网抑; 3 天气; 0 关闭 \nConfig.detailed = 1; // 详细 \nConfig.homepage = 1; // 首页图 \nConfig.bookmarks = 0; // 书签 \nConfig.hikerHistory = 1; // 历史记录 \nConfig.hikerCollection = 0; // 收藏 \nConfig.avatarSign = 0; // 头像签名 \nlet detailWrap = 1; // 详细是否换行 \n\nlet historyIndex = ()=> d.length; // 历史记录位置 \nlet collectionIndex = ()=> d.length-2; // 收藏位置 \n\n\n/----首页图----/\nConfig.wallpaperurl = 'https://acg.xydwz.cn/gqapi/gqapi.php';n// 自定义随机图,可为固定图片链接 nnConfig.randomPic = 1;\n// 图片随机刷新, 注意该功能极其耗缓存, 关闭后可清除缓存刷新图片。建议固定图片时关闭此选项 \n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n// 自定义跳转链接, 默认随机图链接 \n\nConfig.avatarPic = 'http://q1.qlogo.cn/qhis/Q3auHgzwzM5vn0NnGUZ5gMx3IXgsibUu4Jw0ESJ0ibNBfejuXFa2KiaVXBhUbdWknibkZ8JC1Dwnvlzbp0sbU6mpjQ/';nConfig.signature = 'LoyDgIk——欲买桂花同载酒,终不似,少年游';\n// 签名设置。\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/---列表属性---/\nlet 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_round_small_4',\n numEnd: 4\n},{\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: 4\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/----列表----/\nlet 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://empty#noHistory#@rule=js:eval(fetch(\"hiker://files/rules/js/homeUtility.js\",{}));settingFirst()@@https://www.easyicon.net/api/resizeApi.php?id=1244707&size=128'n];nnList.lists_1 =[\n' 开天斧 @@hiker://home@开天斧 @@https://i.loli.net/2020/10/07/Av5U6GlJeBca7u9.jpg',n ' 知乎日报 @@hiker://home@知乎日报社 RT@@https://i.loli.net/2020/10/07/ZNn7qYDeU6Qmgf8.jpg',n ' 海阔视界 @@hiker://home@海阔视界 R@@https://i.loli.net/2020/10/07/lOpGhaYI9gND2Kk.jpg',n ' 豆瓣新版 @@hiker://home@豆瓣新版 R@@https://i.loli.net/2020/10/07/zdFxEVmfQHG6OuN.jpg',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];nnList.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://settingMore@@https://www.easyicon.net/api/resizeApi.php?id=1271634&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://history@@https://www.easyicon.net/api/resizeApi.php?id=1271647&size=128'n];n/*------自定义区 end------*/nlet d = [];\nlet timestamp ='#'+ new Date().getTime();\ntry{\nif (localConfig) {\n let tem = fetch('hiker://files/HikerHome/homeConfiguration.json', {});\n let tem2 =fetch('hiker://files/HikerHome/arrayConfiguration.json', {});\n if (tem ==''|| tem2=='') {\n writeFile('hiker://files/HikerHome/arrayConfiguration.json',JSON.stringify(cardArr,null,4));\n writeFile('hiker://files/HikerHome/homeConfiguration.json',JSON.stringify(Config,null,4));\n } else {\n eval('Config ='+tem+';let ar='+tem2);\n for(let i in ar){\n cardArr[i].openClose = ar[i].openClose\n }\n }\n}\neval(fetch('hiker://files/rules/js/homeUtility.js',{}));\n}catch(e){}\ncardArr.sort((attribute => (a,b) =>\na[attribute] - b[attribute])('id'));\nfor (let i = 0; i < cardArr.length; i++) {\n if (!cardArr[i].openClose)\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 let team = eval(cardArr[i].list);\n for (let j = 0; j < team.length; j++) {\n let k = team[j].split(/\s@@\s*/);\n if (k.length < 2)\n continue;\n let tmp = false;\n if (!Config.localPattern) {\n for (let h = 0; h < cardArr[i].Styles.length; h++) {\n let flag = h ? cardArr[i].Styles[h - 1].numEnd: 0;\n if (j>= flag && j 书签/\nif (Config.bookmarks) {\n let 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 let book = JSON.parse(fetch('hiker://bookmark', {}));\n let team = Config.bookmarkclass ? book.filter(item => item.group == Config.bookmarkclass): book;\n team.map(data => d.push({\n title: data.title,\n url: data.url.replace(/.*rule:\/\//g,'rule://').replace(/.*hiker:\/\/home@/g,'hiker://home@'),\n col_type: Config.bookmarkStyle\n}))\n}\n\ntry{\n // 历史记录 \n if (Config.hikerHistory){\n var hData = [];\n let loc = typeof historyIndex == 'number'?historyIndex: historyIndex();\n hData.push({\n title:'🏷历史记录 (‘‘点此查看更多’’)🏷',\n url: \"hiker://history\",\n col_type: Config.functionStyle\n});\n history(loc+1);\n }\n // 我的收藏 \n if (Config.hikerCollection){\n var cData = [];\n let loc = typeof collectionIndex == 'number'?collectionIndex: collectionIndex();\n cData.push({\n title:'🏷收藏列表 (‘‘点此管理收藏’’)🏷',\n url: \"hiker://collection\",\n col_type: Config.functionStyle\n});\n collection(loc+1);\n }\n}catch(e){\n setError('\n——历史记录或者我的收藏出错:'+e.message);\n}\n// 底部留白 \nd.push({\n col_type:'long_text'\n});\n// 首页图片 \nif (!Config.localPattern && (Config.tool || Config.homepage)) {\n try {\n let json, desc='', title ='', url = Config.userqriginalpictureurl == Config.wallpaperurl ? Config.randomPic ? Config.userqriginalpictureurl +'#.jpg'+ timestamp: Config.userqriginalpictureurl +'#.jpg': Config.userqriginalpictureurl;\n let wrap = detailWrap ?'\n':'\t '\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 || source =='null')\n source =' 侠名 ';\n title = json.hitokoto;\n desc =' 出处:\t《'+ json.from +'》'+ wrap +' 作者:\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&memoryPosition=full';\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+')'+ wrap +' 风向:'+ 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 let toolbox = {};\n toolbox.title = title;\n toolbox.url = Config.homepage ? url:'toast://'+title;\n toolbox.desc = desc;\n toolbox.pic_url = Config.randomPic ? Config.wallpaperurl +'#.jpg'+ timestamp: Config.wallpaperurl +'#.jpg';\n toolbox.col_type = Config.functionStyle;\n if (Config.homepage) \n toolbox.col_type = 'pic_1';\n if (!Config.detailed)\n delete toolbox.desc;\n d.unshift(toolbox);\n } catch(e) {}\n}\n// 个人头像 \nif(Config.avatarSign){\n d.unshift({\n title: Config.signature,\n url:'toast://'+Config.signature,\n pic_url: Config.avatarPic,\n col_type:'avatar'\n});\n}\nsetHomeResult({data:d.concat.apply([],d)});","search_url":"","titleColor":"#ff228be6","group":"①推荐 ","searchFind":"","detail_col_type":"text_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":"eval(base64Decode('aWYoTVlfUlVMRS5hdXRob3IuaW5kZXhPZignQExveURnSWsnKT09LTEpc2V0RXJyb3IoJ1xuXHTmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKTs='))"}
错误了 可以分享一个做剪切板的规则吗。感谢
看我的 2020-11-29 02:11:46 具体怎么用?我有这规则 但是没用处之地
具体怎么用?我有这规则 但是没用处之地
公众号里有详细的使用方法,大致就是把规则和插件都导
小棉袄公众号里有
1219 2020-11-28 16:21:38 关注小棉袄的公众号,里面有这个,还有插件,这个规则没插件不能用
关注小棉袄的公众号,里面有这个,还有插件,这个规则没插件不能用
错误导入不了
公众号叫 “新方圆小棉袄”
错误了 可以分享一个做剪切板的规则吗。感谢
公众号里有详细的使用方法,大致就是把规则和插件都导
小棉袄公众号里有
具体怎么用?我有这规则 但是没用处之地
错误导入不了
公众号叫 “新方圆小棉袄”
关注小棉袄的公众号,里面有这个,还有插件,这个规则没插件不能用
海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"𝗛𝗶𝗸𝗲𝗿𝗛𝗼𝗺𝗲","author":"@LoyDgIk","url":"hiker://home# 简约而不简单","version":7,"col_type":"text_3","class_name":"","class_url":"","area_name":"","area_url":"","sort_name":"","year_name":"","sort_url":"","year_url":"","find_rule":"js:\nlet Config = {};\n/------自定义区------/\n/----开关, 1 开启,0 关闭----/\n\n// 本地配置, 开启后所有自定义区的 Config 失效, 可以使用网页设置功能。\nlet localConfig = 1;\n\nputVar({key:'status', value:localConfig})\n// 本地模式, 田园生活 \nConfig.localPattern = 0;\nConfig.tool = 1; //1 一言; 2 网抑; 3 天气; 0 关闭 \nConfig.detailed = 1; // 详细 \nConfig.homepage = 1; // 首页图 \nConfig.bookmarks = 0; // 书签 \nConfig.hikerHistory = 1; // 历史记录 \nConfig.hikerCollection = 0; // 收藏 \nConfig.avatarSign = 0; // 头像签名 \nlet detailWrap = 1; // 详细是否换行 \n\nlet historyIndex = ()=> d.length; // 历史记录位置 \nlet collectionIndex = ()=> d.length-2; // 收藏位置 \n\n\n/----首页图----/\nConfig.wallpaperurl = 'https://acg.xydwz.cn/gqapi/gqapi.php';n// 自定义随机图,可为固定图片链接 nnConfig.randomPic = 1;\n// 图片随机刷新, 注意该功能极其耗缓存, 关闭后可清除缓存刷新图片。建议固定图片时关闭此选项 \n\nConfig.userqriginalpictureurl = Config.wallpaperurl;\n// 自定义跳转链接, 默认随机图链接 \n\nConfig.avatarPic = 'http://q1.qlogo.cn/qhis/Q3auHgzwzM5vn0NnGUZ5gMx3IXgsibUu4Jw0ESJ0ibNBfejuXFa2KiaVXBhUbdWknibkZ8JC1Dwnvlzbp0sbU6mpjQ/';nConfig.signature = 'LoyDgIk——欲买桂花同载酒,终不似,少年游';\n// 签名设置。\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/---列表属性---/\nlet 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_round_small_4',\n numEnd: 4\n},{\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: 4\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/----列表----/\nlet 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://empty#noHistory#@rule=js:eval(fetch(\"hiker://files/rules/js/homeUtility.js\",{}));settingFirst()@@https://www.easyicon.net/api/resizeApi.php?id=1244707&size=128'n];nnList.lists_1 =[\n' 开天斧 @@hiker://home@开天斧 @@https://i.loli.net/2020/10/07/Av5U6GlJeBca7u9.jpg',n ' 知乎日报 @@hiker://home@知乎日报社 RT@@https://i.loli.net/2020/10/07/ZNn7qYDeU6Qmgf8.jpg',n ' 海阔视界 @@hiker://home@海阔视界 R@@https://i.loli.net/2020/10/07/lOpGhaYI9gND2Kk.jpg',n ' 豆瓣新版 @@hiker://home@豆瓣新版 R@@https://i.loli.net/2020/10/07/zdFxEVmfQHG6OuN.jpg',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];nnList.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://settingMore@@https://www.easyicon.net/api/resizeApi.php?id=1271634&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://history@@https://www.easyicon.net/api/resizeApi.php?id=1271647&size=128'n];n/*------自定义区 end------*/nlet d = [];\nlet timestamp ='#'+ new Date().getTime();\ntry{\nif (localConfig) {\n let tem = fetch('hiker://files/HikerHome/homeConfiguration.json', {});\n let tem2 =fetch('hiker://files/HikerHome/arrayConfiguration.json', {});\n if (tem ==''|| tem2=='') {\n writeFile('hiker://files/HikerHome/arrayConfiguration.json',JSON.stringify(cardArr,null,4));\n writeFile('hiker://files/HikerHome/homeConfiguration.json',JSON.stringify(Config,null,4));\n } else {\n eval('Config ='+tem+';let ar='+tem2);\n for(let i in ar){\n cardArr[i].openClose = ar[i].openClose\n }\n }\n}\neval(fetch('hiker://files/rules/js/homeUtility.js',{}));\n}catch(e){}\ncardArr.sort((attribute => (a,b) =>\na[attribute] - b[attribute])('id'));\nfor (let i = 0; i < cardArr.length; i++) {\n if (!cardArr[i].openClose)\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 let team = eval(cardArr[i].list);\n for (let j = 0; j < team.length; j++) {\n let k = team[j].split(/\s@@\s*/);\n if (k.length < 2)\n continue;\n let tmp = false;\n if (!Config.localPattern) {\n for (let h = 0; h < cardArr[i].Styles.length; h++) {\n let flag = h ? cardArr[i].Styles[h - 1].numEnd: 0;\n if (j>= flag && j 书签/\nif (Config.bookmarks) {\n let 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 let book = JSON.parse(fetch('hiker://bookmark', {}));\n let team = Config.bookmarkclass ? book.filter(item => item.group == Config.bookmarkclass): book;\n team.map(data => d.push({\n title: data.title,\n url: data.url.replace(/.*rule:\/\//g,'rule://').replace(/.*hiker:\/\/home@/g,'hiker://home@'),\n col_type: Config.bookmarkStyle\n}))\n}\n\ntry{\n // 历史记录 \n if (Config.hikerHistory){\n var hData = [];\n let loc = typeof historyIndex == 'number'?historyIndex: historyIndex();\n hData.push({\n title:'🏷历史记录 (‘‘点此查看更多’’)🏷',\n url: \"hiker://history\",\n col_type: Config.functionStyle\n});\n history(loc+1);\n }\n // 我的收藏 \n if (Config.hikerCollection){\n var cData = [];\n let loc = typeof collectionIndex == 'number'?collectionIndex: collectionIndex();\n cData.push({\n title:'🏷收藏列表 (‘‘点此管理收藏’’)🏷',\n url: \"hiker://collection\",\n col_type: Config.functionStyle\n});\n collection(loc+1);\n }\n}catch(e){\n setError('\n——历史记录或者我的收藏出错:'+e.message);\n}\n// 底部留白 \nd.push({\n col_type:'long_text'\n});\n// 首页图片 \nif (!Config.localPattern && (Config.tool || Config.homepage)) {\n try {\n let json, desc='', title ='', url = Config.userqriginalpictureurl == Config.wallpaperurl ? Config.randomPic ? Config.userqriginalpictureurl +'#.jpg'+ timestamp: Config.userqriginalpictureurl +'#.jpg': Config.userqriginalpictureurl;\n let wrap = detailWrap ?'\n':'\t '\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 || source =='null')\n source =' 侠名 ';\n title = json.hitokoto;\n desc =' 出处:\t《'+ json.from +'》'+ wrap +' 作者:\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&memoryPosition=full';\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+')'+ wrap +' 风向:'+ 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 let toolbox = {};\n toolbox.title = title;\n toolbox.url = Config.homepage ? url:'toast://'+title;\n toolbox.desc = desc;\n toolbox.pic_url = Config.randomPic ? Config.wallpaperurl +'#.jpg'+ timestamp: Config.wallpaperurl +'#.jpg';\n toolbox.col_type = Config.functionStyle;\n if (Config.homepage) \n toolbox.col_type = 'pic_1';\n if (!Config.detailed)\n delete toolbox.desc;\n d.unshift(toolbox);\n } catch(e) {}\n}\n// 个人头像 \nif(Config.avatarSign){\n d.unshift({\n title: Config.signature,\n url:'toast://'+Config.signature,\n pic_url: Config.avatarPic,\n col_type:'avatar'\n});\n}\nsetHomeResult({data:d.concat.apply([],d)});","search_url":"","titleColor":"#ff228be6","group":"①推荐 ","searchFind":"","detail_col_type":"text_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":"eval(base64Decode('aWYoTVlfUlVMRS5hdXRob3IuaW5kZXhPZignQExveURnSWsnKT09LTEpc2V0RXJyb3IoJ1xuXHTmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKTs='))"}