God_Plan.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. const BASE_URL = "https://git.tyrantg.com/tyrantgenesis/hikerViewRules/raw/master/"
  2. /* Base Function */
  3. /**
  4. * @param fetch_file String 远程文件web地址
  5. * @param local_file String 本地文件路径
  6. * */
  7. const godWriteFile = (fetch_file, local_file) => {
  8. let localFile = request(local_file);
  9. let fetchFile = request(fetch_file);
  10. if (!localFile || localFile !== fetchFile) writeFile(local_file, fetchFile)
  11. }
  12. const godSaveFile = (fetch_file, local_file) => {
  13. let localFile = request(local_file);
  14. let fetchFile = request(fetch_file);
  15. if (!localFile) writeFile(local_file, fetchFile)
  16. }
  17. const time = (new Date()).getTime()
  18. /* Base Function */
  19. /* Customize Function */
  20. const home_page = _ => {
  21. godWriteFile(BASE_URL+"tyrantgenesis.js?t="+time, 'hiker://files/TyrantG/tyrantgenesis.js')
  22. godWriteFile(BASE_URL+"public/Home.html?t="+time, 'hiker://files/TyrantG/public/Home.html')
  23. godSaveFile(BASE_URL+"public/fonts/AlexBrush-Regular.ttf", 'hiker://files/TyrantG/public/fonts/AlexBrush-Regular.ttf')
  24. godSaveFile(BASE_URL+"public/js/vue.min.js", 'hiker://files/TyrantG/public/js/vue.min.js')
  25. godSaveFile(BASE_URL+"public/js/element-ui.js", 'hiker://files/TyrantG/public/js/element-ui.js')
  26. }
  27. const new_homepage = _ => {
  28. godWriteFile(BASE_URL+"HOME/index.html?t="+time, 'hiker://files/TyrantG/HOME/index.html')
  29. godWriteFile(BASE_URL+"TEST/new-homepage.js?t="+time, 'hiker://files/TyrantG/TEST/new-homepage.js')
  30. }
  31. const tyrantgenesis = _ => {
  32. godWriteFile(BASE_URL+"data/base.json?t="+time, 'hiker://files/TyrantG/data/base.json')
  33. godWriteFile(BASE_URL+"tyrantgenesis.js?t="+time, 'hiker://files/TyrantG/tyrantgenesis.js')
  34. godSaveFile(BASE_URL+"public/css/element-ui.css", 'hiker://files/TyrantG/public/css/element-ui.css')
  35. godSaveFile(BASE_URL+"public/js/vue.min.js", 'hiker://files/TyrantG/public/js/vue.min.js')
  36. godSaveFile(BASE_URL+"public/js/element-ui.js", 'hiker://files/TyrantG/public/js/element-ui.js')
  37. }
  38. const acfun = _ => {
  39. godWriteFile(BASE_URL+"TEST/acfun-bangumilist.js?t="+time, 'hiker://files/TyrantG/TEST/acfun-bangumilist.js')
  40. godWriteFile(BASE_URL+"public/category.html?t="+time, 'hiker://files/TyrantG/public/category.html')
  41. godSaveFile(BASE_URL+"public/js/vue.min.js", 'hiker://files/TyrantG/public/js/vue.min.js')
  42. godSaveFile(BASE_URL+"public/js/element-ui.js", 'hiker://files/TyrantG/public/js/element-ui.js')
  43. }
  44. const TMusic = _ => {
  45. godWriteFile(BASE_URL+"data/music_list.json?t="+time, 'hiker://files/TyrantG/data/music_list.json')
  46. godWriteFile(BASE_URL+"TOOL/cloud-music.js?t="+time, 'hiker://files/TyrantG/TOOL/cloud-music.js')
  47. }
  48. const douyu_live = _ => {
  49. godWriteFile(BASE_URL+"LIVE/douyu.js?t="+time, 'hiker://files/TyrantG/LIVE/douyu.js')
  50. godWriteFile(BASE_URL+"public/douyu-tabs.html?t="+time, 'hiker://files/TyrantG/public/douyu-tabs.html')
  51. godWriteFile(BASE_URL+"public/douyu-player.html?t="+time, 'hiker://files/TyrantG/public/douyu-player.html')
  52. godSaveFile(BASE_URL+"public/css/element-ui.css", 'hiker://files/TyrantG/public/css/element-ui.css')
  53. godSaveFile(BASE_URL+"public/css/aliplayer-min.css", 'hiker://files/TyrantG/public/css/aliplayer-min.css')
  54. godSaveFile(BASE_URL+"public/js/vue.min.js", 'hiker://files/TyrantG/public/js/vue.min.js')
  55. godSaveFile(BASE_URL+"public/js/aliplayer-min.js", 'hiker://files/TyrantG/public/js/aliplayer-min.js')
  56. godSaveFile(BASE_URL+"public/js/element-ui.js", 'hiker://files/TyrantG/public/js/element-ui.js')
  57. }
  58. const douyu_danmu = _ => {
  59. godWriteFile(BASE_URL+"LIVE/douyu_danmu.js?t="+time, 'hiker://files/TyrantG/LIVE/douyu_danmu.js')
  60. godWriteFile(BASE_URL+"public/douyu-danmu-tabs.html?t="+time, 'hiker://files/TyrantG/public/douyu-tabs.html')
  61. godSaveFile(BASE_URL+"public/css/douyu_danmu.css", 'hiker://files/TyrantG/public/css/douyu_danmu.css')
  62. godSaveFile(BASE_URL+"public/js/douyu_danmu.js", 'hiker://files/TyrantG/public/js/douyu_danmu.js')
  63. godSaveFile(BASE_URL+"public/douyu_danmu.html", 'hiker://files/TyrantG/public/douyu_danmu.html')
  64. }
  65. const twitch = _ => {
  66. godWriteFile(BASE_URL+"LIVE/twitch.js?t="+time, 'hiker://files/TyrantG/LIVE/twitch.js')
  67. }
  68. const _17live = _ => {
  69. godWriteFile(BASE_URL+"LIVE/17live.js?t="+time, 'hiker://files/TyrantG/LIVE/17live.js')
  70. }
  71. const huya_live = _ => {
  72. godWriteFile(BASE_URL+"LIVE/huya.js", 'hiker://files/TyrantG/LIVE/huya.js')
  73. godWriteFile(BASE_URL+"public/huya-tabs.html", 'hiker://files/TyrantG/public/huya-tabs.html')
  74. godWriteFile(BASE_URL+"public/huya-category.html", 'hiker://files/TyrantG/public/huya-category.html')
  75. // godWriteFile(BASE_URL+"public/huya-player.html?t="+time, 'hiker://files/TyrantG/public/huya-player.html')
  76. // godSaveFile(BASE_URL+"public/utils/huya_lib.js", 'hiker://files/TyrantG/public/utils/huya_lib.js')
  77. godSaveFile(BASE_URL+"public/css/element-ui.css", 'hiker://files/TyrantG/public/css/element-ui.css')
  78. // godSaveFile(BASE_URL+"public/css/aliplayer-min.css", 'hiker://files/TyrantG/public/css/aliplayer-min.css')
  79. godSaveFile(BASE_URL+"public/js/vue.min.js", 'hiker://files/TyrantG/public/js/vue.min.js')
  80. // godSaveFile(BASE_URL+"public/js/aliplayer-min.js", 'hiker://files/TyrantG/public/js/aliplayer-min.js')
  81. godSaveFile(BASE_URL+"public/js/element-ui.js", 'hiker://files/TyrantG/public/js/element-ui.js')
  82. }
  83. const qie_egame_live = _ => {
  84. godWriteFile(BASE_URL+"LIVE/qie_egame.js?t="+time, 'hiker://files/TyrantG/LIVE/qie_egame.js')
  85. godWriteFile(BASE_URL+"public/qieEgame-tabs.html?t="+time, 'hiker://files/TyrantG/public/qieEgame-tabs.html')
  86. godSaveFile(BASE_URL+"public/css/element-ui.css", 'hiker://files/TyrantG/public/css/element-ui.css')
  87. godSaveFile(BASE_URL+"public/js/vue.min.js", 'hiker://files/TyrantG/public/js/vue.min.js')
  88. godSaveFile(BASE_URL+"public/js/element-ui.js", 'hiker://files/TyrantG/public/js/element-ui.js')
  89. }
  90. const qie_sport_live = _ => {
  91. godWriteFile(BASE_URL+"LIVE/qie_sport.js?t="+time, 'hiker://files/TyrantG/LIVE/qie_sport.js')
  92. }
  93. const _95_xiu_live = _ => {
  94. godWriteFile(BASE_URL+"LIVE/95_xiu.js?t="+time, 'hiker://files/TyrantG/LIVE/95_xiu.js')
  95. }
  96. const yande_re = _ => {
  97. godWriteFile(BASE_URL+"GHS/yande.re.js?t="+time, 'hiker://files/TyrantG/GHS/yande.re.js')
  98. }
  99. const pornhub = _ => {
  100. godWriteFile(BASE_URL+"GHS/pornhub.js?t="+time, 'hiker://files/TyrantG/GHS/pornhub.js')
  101. }
  102. const jable = _ => {
  103. godWriteFile(BASE_URL+"GHS/jable.js?t="+time, 'hiker://files/TyrantG/GHS/jable.js')
  104. }
  105. const spankbang = _ => {
  106. godWriteFile(BASE_URL+"GHS/spankbang.js?t="+time, 'hiker://files/TyrantG/GHS/spankbang.js')
  107. }
  108. const eroticmovies_xyz = _ => {
  109. godWriteFile(BASE_URL+"GHS/eroticmovies.xyz.js?t="+time, 'hiker://files/TyrantG/GHS/eroticmovies.xyz.js')
  110. }
  111. const eporner = _ => {
  112. godWriteFile(BASE_URL+"GHS/eporner.js?t="+time, 'hiker://files/TyrantG/GHS/eporner.js')
  113. }
  114. const _7719 = _ => {
  115. godWriteFile(BASE_URL+"GHS/7719.js?t="+time, 'hiker://files/TyrantG/GHS/7719.js')
  116. }
  117. const shuiguopai = _ => {
  118. godWriteFile(BASE_URL+"GHS/shuiguopai.js?t="+time, 'hiker://files/TyrantG/GHS/shuiguopai.js')
  119. }
  120. const ohentai = _ => {
  121. godWriteFile(BASE_URL+"GHS/ohentai.js?t="+time, 'hiker://files/TyrantG/GHS/ohentai.js')
  122. }
  123. const aktool = _ => {
  124. godWriteFile(BASE_URL+"TOOL/aktools.js?t="+time, 'hiker://files/TyrantG/TOOL/aktool.js')
  125. }
  126. const prts = _ => {
  127. godWriteFile(BASE_URL+"TOOL/prts.js?t="+time, 'hiker://files/TyrantG/TOOL/prts.js')
  128. }
  129. const ys_map = _ => {
  130. godWriteFile(BASE_URL+"TOOL/ys_map.js?t="+time, 'hiker://files/TyrantG/TOOL/ys_map.js')
  131. }
  132. const zczc = _ => {
  133. godWriteFile(BASE_URL+"TOOL/zczc.js?t="+time, 'hiker://files/TyrantG/TOOL/zczc.js')
  134. }
  135. const naraka_score = _ => {
  136. godWriteFile(BASE_URL+"TOOL/naraka_score.js?t="+time, 'hiker://files/TyrantG/TOOL/naraka_score.js')
  137. }
  138. const artStation = _ => {
  139. godWriteFile(BASE_URL+"IMAGE/artstation.js?t="+time, 'hiker://files/TyrantG/IMAGE/artstation.js')
  140. }
  141. const zcool = _ => {
  142. godWriteFile(BASE_URL+"IMAGE/zcool.js?t="+time, 'hiker://files/TyrantG/IMAGE/zcool.js')
  143. }
  144. const huashi6 = _ => {
  145. godWriteFile(BASE_URL+"IMAGE/huashi6.js?t="+time, 'hiker://files/TyrantG/IMAGE/huashi6.js')
  146. }
  147. const manhuagui = _ => {
  148. godWriteFile(BASE_URL+"COMIC/manhuagui.js?t="+time, 'hiker://files/TyrantG/COMIC/manhuagui.js')
  149. }
  150. const picacg = _ => {
  151. godWriteFile(BASE_URL+"COMIC/picacg.js?t="+time, 'hiker://files/TyrantG/COMIC/picacg.js')
  152. }
  153. const ednovas = _ => {
  154. godWriteFile(BASE_URL+"VIDEO/ednovas.js?t="+time, 'hiker://files/TyrantG/VIDEO/ednovas.js')
  155. }
  156. const youtube = _ => {
  157. godWriteFile(BASE_URL+"TEST/youtube.js?t="+time, 'hiker://files/TyrantG/TEST/youtube.js')
  158. }
  159. const douyin_web = _ => {
  160. godWriteFile(BASE_URL+"VIDEO/douyin_web.js?t="+time, 'hiker://files/TyrantG/VIDEO/douyin_web.js')
  161. }
  162. /* Customize Function */