海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"firstHeader":"class","title":"主页","author":"@LoyDgIk","url":"hiker://home#简约而不简单","version":7,"col_type":"pic_1_card","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//自定义随机图,可为固定图片链接\n\nConfig.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_round_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://search',\n pic_url: '',\n titleStyle: 'icon_1_search',\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: '🤓面朝大海🤓',\nurl:'hiker://empty#noHistory#@rule=js:eval(fetch(\"hiker://files/rules/js/homeUtility.js\",{}));settingFirst()',\n titleStyle: 'text_center_1',\n list: 'List.lists_2',\n openClose: true,\n Styles: [{\n style: 'icon_4',\n numEnd: 8\n }]\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/*----列表----*/\n\nlet List = {};\nList.shortcut_list= [];\n\nList.lists_1 =[ '破解软件@@https://www.52pojie.cn/forum-16-1.html@@https://static.easyicon.net/preview/129/1290983.gif',\n'短视频@@hiker://home@V电影@@https://static.easyicon.net/preview/129/1290977.gif',\n'电视@@hiker://home@卫视中央@@https://static.easyicon.net/preview/129/1290964.gif',\n'音乐推荐@@hiker://home@网易云音乐@@https://static.easyicon.net/preview/129/1290963.gif',\n'新闻热榜@@hiker://home@今日热榜@@https://static.easyicon.net/preview/129/1290986.gif',\n'影视榜单@@hiker://home@豆瓣榜单@@https://static.easyicon.net/preview/129/1290959.gif',\n '高效@@hiker://home@Topbook@@https://static.easyicon.net/preview/129/1290968.gif',\n '哔哩@@https://m.bilibili.com/@@https://static.easyicon.net/preview/129/1290962.gif',\n'分组@@hiker://home@@https://static.easyicon.net/preview/129/1290978.gif',\n'社区@@hiker://home@视界论坛@@https://static.easyicon.net/preview/129/1290972.gif',\n'影视@@hiker://home@开天斧@@https://static.easyicon.net/preview/129/1290961.gif',\n'动漫@@hiker://home@维奇动漫@@https://static.easyicon.net/preview/129/1290976.gif',\n'专栏@@hiker://home@bili专栏@@https://static.easyicon.net/preview/129/1290974.gif',\n'直播@@hiker://home@虎牙直播@@https://static.easyicon.net/preview/129/1290960.gif',\n '插件@@hiker://js@@https://static.easyicon.net/preview/129/1290975.gif',\n '我的收藏@@hiker://collection@@https://static.easyicon.net/preview/129/1290980.gif'];\n\n\nList.lists_2 =[\n '我的下载@@hiker://download@@https://static.easyicon.net/preview/129/1290980.gif',\n '元素拦截@@hiker://adRule@@https://static.easyicon.net/preview/129/1290973.gif',\n '网址拦截@@hiker://adUrl@@https://static.easyicon.net/preview/129/1290987.gif',\n '其它设置@@hiker://settingMore@@https://static.easyicon.net/preview/129/1290946.gif',\n '网页插件@@hiker://js@@https://static.easyicon.net/preview/129/1290971.gif',\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 < cardArr[i].Styles[h].numEnd + flag)\n tmp = cardArr[i].Styles[h].style;\n }\n } else {\n tmp = 'text_3';\n }\n if (!tmp)\n break;\n d.push({\n title: k[0],\n url: k[1],\n pic_url: k[2],\n col_type: tmp\n });\n }\n}\n/*书签*/\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":"pic_1_card","detail_find_rule":"","sdetail_col_type":"pic_1_card","sdetail_find_rule":"","ua":"auto","preRule":"eval(base64Decode('aWYoTVlfUlVMRS5hdXRob3IuaW5kZXhPZignQExveURnSWsnKT09LTEpc2V0RXJyb3IoJ1xuXHTmlLnkvZzogIXlkI3nnJ/nmoTlpb3lkJcnKTs='))"}
三克油🥰
谢谢
http://pasteme.cn/66922 规则名:homeUtility
主页里的规则可以分享一下么
收到,谢谢蜗牛
贴张预览图就更完美了😅