海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"我的主页","author":"","url":"hiker://empty","version":0,"col_type":"pic_2","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// 本地配置, 开启后所有自定义区的 Config 失效, 可以使用网页设置功能。\nlet localConfig = 1;\n\nputVar({key:'status', value:localConfig})\n// 本地模式, 田园生活 \nConfig.localPattern = 0;\nConfig.tool = 3; //1 一言; 2 网抑; 3 天气; 0 关闭 \nConfig.detailed = 1; // 详细 \nConfig.homepage = 1; // 首页图 \nConfig.bookmarks = 0; // 书签 \nConfig.hikerHistory = 1; // 历史记录 \nConfig.hikerCollection = 1; // 收藏 \nConfig.avatarSign = 1; // 头像签名 \n\nlet detailWrap = 1; // 详细是否换行 \nlet avatarIndex = 1; // 头像位置 \nlet historyIndex = ()=> d.length; // 历史记录位置 \nlet collectionIndex = ()=> d.length; // 收藏位置 \n\n\n/----首页图----/\nConfig.wallpaperurl = 'https://acg.xydwz.cn/api/api.php?t=';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 = ''; // 书签分类 \nConfig.historicalType =''; // 历史分类 \nConfig.collectionType =''; // 收藏分类 \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:'👨🏿🦳weisyr——没有如果,只有结果 ',\n url:'hiker://search',\n titleStyle:'icon_1_search',\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: 99\n}]\n})\n\n// 收藏列表 \nConfig.collectionStyle = '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://i.loli.net/2020/11/19/peV6y9Kj8RqocEz.png',n ' 书签 @@hiker://bookmark@@https://i.loli.net/2020/11/19/fVYX6GQE7T3r5Wu.png',n ' 历史 @@hiker://history@@https://i.loli.net/2020/11/19/RkZXUpaBT9u2ViF.png',n ' 我的下载 @@hiker://download@@https://i.loli.net/2020/11/19/QrdniCOWNK8bokz.png',n ' 常用工具 @@hiker://home@工具台 @@https://i.loli.net/2020/11/19/j7XY93Msbn5ShNV.png',n '首页设置 @@hiker://empty#noHistory#@rule=js:eval(fetch(\"hiker://files/rules/js/homeUtility.js\",{}));settingFirst()@@https://i.loli.net/2020/11/19/tZqUjRwgpNKXyOh.png'n];nnList.lists_1 =[\n' 开天斧 @@hiker://home@开天斧 @@https://i.loli.net/2020/11/20/8KnqoGsRQMumehx.png',n ' 海阔论坛 @@hiker://home@视界论坛 R@@https://i.loli.net/2020/11/20/KH7f1xDoralYZOh.png',n ' 豆娃 @@hiker://home@豆娃 R@@https://i.loli.net/2020/11/19/7a9XlgNMEkU65ns.png',n ' 泡饭 @@https://www.paofans.com/@@https://static.afanti100.com/hanyu/jpg/a798634f12723fb7685ac6a8f7f98419.jpg',n ' 腾讯 @@https://3g.v.qq.com/@@https://i.loli.net/2020/11/19/Kitr6VWNQqxkUey.png',n ' 爱奇艺 @@https://m.iqiyi.com/@@https://i.loli.net/2020/11/19/JAt2kDyM4OCizHa.png',n ' 优酷 @@https://www.youku.com/@@https://i.loli.net/2020/11/19/5AFGZoziwH8j9Qs.png',n ' 芒果 @@https://m.mgtv.com/channel/home/@@https://i.loli.net/2020/11/19/ChqsGDb71HJpLt5.png'n];nnList.lists_2 =[\n' 首页频道 @@hiker://home@@https://i.loli.net/2020/11/19/dbvjCVIoUWtE5ms.png',n' 我的下载 @@hiker://download@@https://i.loli.net/2020/11/19/QrdniCOWNK8bokz.png',n' 海阔社区 @@http://haikuoshijie.cn/@@https://i.loli.net/2020/11/20/KH7f1xDoralYZOh.png',n' 元素拦截 @@hiker://adRule@@https://i.loli.net/2020/11/19/aPSHZwr24c6VYDF.png',n' 网址拦截 @@hiker://adUrl@@https://i.loli.net/2020/11/19/Rqy4QZxELUXpPmD.png',n' 历史记录 @@hiker://history@@https://i.loli.net/2020/11/19/RkZXUpaBT9u2ViF.png',n' 网页插件 @@hiker://js@@https://i.loli.net/2020/11/19/DCL9V4BghFqIznY.png',n' 我的书签 @@hiker://bookmark@@https://i.loli.net/2020/11/19/fVYX6GQE7T3r5Wu.png',n' 我的收藏 @@hiker://collection@@https://i.loli.net/2020/11/19/peV6y9Kj8RqocEz.png',n' 常用设置 @@hiker://setting@@https://i.loli.net/2020/11/19/j7XY93Msbn5ShNV.png',n' 其它设置 @@hiker://settingMore@@https://i.loli.net/2020/11/19/efIYdH73BphZq9D.png'n];n/*------自定义区 end------*/nlet d = [];\nlet timestamp ='#'+ new Date().getTime();\n\nlet tem = fetch('hiker://files/HikerHome/homeConfiguration.json', {});\nlet tem2 = fetch('hiker://files/HikerHome/arrayConfiguration.json', {});\ntry{\n eval(fetch('hiker://files/rules/js/homeUtility.js', {}));\n} catch(e) {}\nif (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 if(localConfig) {\n try {\n eval('Config ='+ tem +';let ar='+ tem2);\n for (let i in ar) {\n cardArr[i].openClose = ar[i].openClose;\n }\n }catch(e) {}\n}\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,Config.historicalType);\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,Config.collectionType);\n }\n}catch(e){\n if(e.message=='\"history\" is not defined.') {\n setError('\n 请导入插件!\t 否则 \"设置 \",\"历史 \" 和 \"收藏 \" 将不能使用 ');\n} else if(e.message !='getSource is not a function, it is undefined.'){\n setError('\n——历史记录或者我的收藏出错:'+e.message);\n }\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.splice(avatarIndex,0,{\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":"","group":"①推荐 ","searchFind":"","detail_col_type":"movie_1","detail_find_rule":"","sdetail_col_type":"movie_1","sdetail_find_rule":"","ua":"auto","preRule":""}
到不了
分享了主页你有些页面一样打不开,里面的配置自己要改才可以用!!!
能分享下不
个人比较喜欢看漫画 动漫
群里爬会楼梯所以感觉 Zruiry 的不错
能不能来个类似于这样的版本的
🤣小萌新双手双脚表示支持
这个可以分享么
规则分享一下😍
大佬,规则有误,无法导入
谢谢大神
导不了