AGE换了一下网站域名

视界 动漫
获赞:11    评论:7    查看:1328
海阔视界规则分享,当前分享的是:首页频道¥home_rule¥{"title":"AGE动漫","author":"quietboy","url":"https://www.agefans.net/catalog/fyclass-all-all-fyyear-all-time-fypage-all-all-fyareafysort","version":5,"col_type":"movie_3","class_name":"全部&TV&剧场版&OVA","class_url":"all&TV&剧场版&OVA","area_name":"全部&连载&完结&未播放","area_url":"all&连载&完结&未播放","sort_name":"规则相关:&更新规则&配置规则","year_name":"全部&搞笑&运动&励志&热血&战斗&竞技&校园&青春&爱情&冒险&后宫&百合&治愈&萝莉&魔法&悬疑&推理&奇幻&科幻&游戏&神魔&恐怖&血腥&机战&战争&犯罪&历史&社会&职场&剧情&伪娘&耽美&童年&教育&亲子&真人&歌舞&肉番&美少女&轻小说&吸血鬼&乙女向&泡面番&欢乐向","sort_url":"&ppuqq&ppcqq","year_url":"all&搞笑&运动&励志&热血&战斗&竞技&校园&青春&爱情&冒险&后宫&百合&治愈&萝莉&魔法&悬疑&推理&奇幻&科幻&游戏&神魔&恐怖&血腥&机战&战争&犯罪&历史&社会&职场&剧情&伪娘&耽美&童年&教育&亲子&真人&歌舞&肉番&美少女&轻小说&吸血鬼&乙女向&泡面番&欢乐向","find_rule":"js:\nconst _config = {\r\n  home_name: \"AGE动漫\",\r\n  remote_update: 'https://gitee.com/quiet_boy/hiker/raw/master/agefans/update.json',\r\n  local_js: 'hiker://files/quietboy/agefans.js',\r\n  local_config: true,\r\n  local_config_path: 'hiker://files/quietboy/agefans_config.json',\r\n}\r\n\r\nfunction queryUpdate() {\r\n  if (getUrl().indexOf('ppuqq') >= 0) {\r\n    return true;\r\n  }\r\n  else {\r\n    return false;\r\n  }\r\n}\r\nfunction queryConfig() {\r\n  if (!_config.local_config) {\r\n    return false;\r\n  }\r\n  if (getUrl().indexOf('ppcqq') >= 0) {\r\n    return true;\r\n  }\r\n  else {\r\n    return false;\r\n  }\r\n}\r\nfunction getLocalVersion(name) {\r\n  let home = fetch('hiker://home', {});\r\n  let version = -1;\r\n  homeJson = JSON.parse(home);\r\n  homeJson.some(i => {\r\n    if (i.title == name) {\r\n      version = i.version;\r\n      return true;\r\n    }\r\n    else {\r\n      return false;\r\n    }\r\n  });\r\n  return version;\r\n}\r\nfunction getLocalJS() {\r\n  let jsCode = fetch(_config.local_js, {});\r\n  return jsCode;\r\n}\r\nfunction getRemoteCommandRoute(remote_command) {\r\n  return fetch(remote_command, {});\r\n}\r\nfunction displayUpdate() {\r\n  let res = {};\r\n  let localVersion = getLocalVersion(_config.home_name);\r\n  let remoteJson = JSON.parse(fetch(_config.remote_update, {}));\r\n  let remoteVersion = remoteJson.version;\r\n  let remoteCMD = remoteJson.command;\r\n  let remoteJS = remoteJson.remote;\r\n  let remoteConfig = JSON.stringify(remoteJson.config);\r\n  d = [{\r\n    title: '本地版本:V' + localVersion + '    远程版本:V' + remoteVersion,\r\n    desc: '点击更新规则,若无效请联系作者修复',\r\n    url: `hiker://empty@lazyRule=.js:` +\r\n      `writeFile('` + _config.local_js + `', fetch('` + remoteJS + `', {}));` +\r\n      ((_config.local_config) ? (`writeFile('` + _config.local_config_path + `','` + remoteConfig + `');`) : (``)) +\r\n      `'` + getRemoteCommandRoute(remoteCMD) + `'`,\r\n    col_type: 'text_1'\r\n  }, {\r\n    title: '<p style=\"text-align: center;\"><strong><font color=\"red\">·更新日志·</font></strong><ul><li>' + remoteJson.note.join('</li><li>') + '</li></ul></p>',\r\n    col_type: 'rich_text'\r\n  }];\r\n  res.data = d;\r\n  setHomeResult(res);\r\n}\r\nfunction displayConfig() {\r\n  function findOptTitle(opts, value) {\r\n    let title = '';\r\n    opts.some((item) => {\r\n      if (item.value == value) {\r\n        title = item.title;\r\n        return true;\r\n      }\r\n      else {\r\n        return false;\r\n      }\r\n    });\r\n    return title;\r\n  }\r\n  let res = {};\r\n  let d = [];\r\n  let Config = JSON.parse(getVar('Config'));\r\n  for (let i = 0; i < Config.length; i++) {\r\n    d.push({\r\n      title: Config[i].title + ': ‘‘' + findOptTitle(Config[i].opts, Config[i].value) + '’’',\r\n      col_type: 'text_1'\r\n    });\r\n    for (let j = 0; j < Config[i].opts.length; j++) {\r\n      d.push({\r\n        title: Config[i].opts[j].title,\r\n        col_type: 'text_3',\r\n        url: `hiker://empty@lazyRule=.js:let Config = JSON.parse(getVar('Config'));Config[` + i + `].value=Config[` + i + `].opts[` + j + `].value;writeFile('` + _config.local_config_path + `',JSON.stringify(Config));refreshPage();'toast://修改成功!'`\r\n      });\r\n    }\r\n  }\r\n  res.data = d;\r\n  setHomeResult(res);\r\n}\r\ntry {\r\n  if (queryUpdate()) {\r\n    displayUpdate();\r\n  }\r\n  else if (queryConfig()) {\r\n    displayConfig();\r\n  }\r\n  else {\r\n    var localJS = getLocalJS();\r\n    if (localJS == '') {\r\n      throw 'none';\r\n    }\r\n    else {\r\n      eval(localJS);\r\n      jiexi();\r\n    }\r\n  }\r\n} catch (e) {\r\n  displayUpdate();\r\n}","search_url":"https://www.agefans.net/search?query=**&page=fypage","titleColor":"#ff871f78","group":"④动漫","searchFind":".blockcontent1&&.cell;.cell_imform&&.cell_imform_name&&Text;a&&href;.newname&&Text;.cell_imform_kv_desc&&Text;img&&src","detail_col_type":"text_3","detail_find_rule":"js:\neval(fetch('hiker://files/quietboy/agefans.js'),{});\nerji();","sdetail_col_type":"text_3","sdetail_find_rule":"*","ua":"auto","preRule":"const local_config = 'hiker://files/quietboy/agefans_config.json';\r\n\r\nvar configJson = fetch(local_config, {});\r\nvar configString = '{}';\r\nif (configJson != '') {\r\n  configString = configJson;\r\n}\r\nputVar2('Config', configString);"}
杨yang
忧play
南鸢
落寒
Jehovah
回复(7)
发表话题
  • 积分
    1
  • 注册排名
    1380