swag(R站)vip视频随意观看&19J.TV韩国女主播vip视频任意看 永久vip

swag(R站)vip视频&19J.TV韩国女主播vip视频

As of 24/03/2022. See the latest version.

  1. // ==UserScript==
  2. // @name swag(R站)vip视频随意观看&19J.TV韩国女主播vip视频任意看 永久vip
  3. // @name:zh-TW swag(R站)vip視頻隨意觀看&19J.TV韓國女主播vip視頻任意看 永久vip
  4. // @namespace http://tampermonkey.net/
  5. // @version 1.3.4
  6. // @description swag(R站)vip视频&19J.TV韩国女主播vip视频
  7. // @description:zh-TW swag(R站)vip視頻&19J.TV韓國女主播vip視頻
  8. // @author FFFFFFeng
  9. // @include /^https://swag.+\.xyz.*$/
  10. // @icon https://www.google.com/s2/favicons?domain=swag555.xyz
  11. // @grant none
  12. // @antifeature payment
  13. // ==/UserScript==
  14. (function () {
  15. // /localStorage isGetPermission
  16. // localStorage getTokenTime
  17. let div = document.createElement("div")
  18. div.setAttribute("id", "inserted")
  19. div.innerHTML = `
  20. <div id="myPanel">
  21. <div class="panelItem">
  22. <div style="padding:5px;">
  23. 提示:
  24. <span class="tipContent">请稍等...</span>
  25. </div>
  26. <div class="getPermission">解</div>
  27. <p style="transform:translate(10px,40px);font-size:10px;">JamJamToday@protonmail.com</p>
  28. <input id="txm" type="text" placeholder="点右下角↘获取通行码后点此输入" />
  29. </div>
  30. <div class="panelItem">
  31. <div class="money">
  32. <div>
  33. <div class="gonggaoBox"><div class="gonggao">暂无脚本公告!</div></div>
  34. </div>
  35. <div>
  36. <p>----------------------------------</p>
  37. <p style="text-indent:2em;">1.输入通行码(也就是你支付宝昵称)后,点解。</p>
  38. <p>----------------------------------</p>
  39. <p style="text-indent:2em;">2.稍等即可观看vip视频。</p>
  40. <p>----------------------------------</p>
  41. <p style="text-indent:2em;">3.网站自带下载功能。</p>
  42. <p>----------------------------------</p>
  43. <p style="text-indent:2em;">4.注意,获取权限成功后,点击右上角会员中心找到19J的登录方式。</p>
  44. </div>
  45. <span id="read" style="font-size:13px;color:red;">没问题后点我付款</span>
  46. </div>
  47. </div>
  48. <div id="readItem">
  49. <p style="text-indent:2em;">0.双网站vip,价格:39.99,脚本使用期为永久,一定要付款前设置好支付宝昵称。</p>
  50. <p style="text-indent:2em;">1.提前设置好支付宝昵称,如果你支付宝App头像旁边显示的是你的真实姓名,那就是你没设置昵称。</p>
  51. <p style="text-indent:2em;">2.昵称设置规则:三位字符或以上,不要使用如:123、啊啊啊之类简单的,大概率会失效。</p>
  52. <p style="text-indent:2em;">3.付完款后可能有延迟,请稍等。</p>
  53. <p style="text-indent:2em;">4.有任何问题联系我的邮箱。</p>
  54. <p style="text-indent:2em;"><a style="text-decoration:underline;color:red;" href="https://i.postimg.cc/HkWjXk1v/swag-z.png" target="_blank">没问题后点我付款.</a></p>
  55. <span id="closeRead">关闭</span>
  56. </div>
  57. <span class="bottomBtn">获取权限</span>
  58. <span class="bottomBtn">获取通行码</span>
  59. </div>
  60. <div id="hiddenBtn" class="show" style="width:80px;height:50px;line-height:50px;color:red;position:absolute;right:-90px;top:270px;font-size:20px;"><< 隐藏</div>
  61. `
  62. let style = document.createElement("style")
  63. style.innerHTML = `
  64. .getPermission {
  65. font-size:20px;
  66. background-color:#990033;
  67. width:100px;
  68. height:100px;
  69. border-radius:50px;
  70. text-align:center;
  71. line-height:100px;
  72. margin:0 auto;
  73. transform:translateY(15px);
  74. cursor:pointer;
  75. }
  76. @keyframes myfirst
  77. {
  78. from {transform: translateX(0%);}
  79. to {transform: translateX(-100%);}
  80. }
  81. .gonggaoBox {
  82. width:100%;
  83. height:1.5em;
  84. overflow:hidden;
  85. }
  86. .gonggao {
  87. animation: myfirst 10s linear 2s infinite;
  88. word-break:keep-all; /* 不换行 */
  89. white-space:nowrap; /* 不换行 */
  90. overflow:hidden; /* 内容超出宽度时隐藏超出部分的内容 */
  91. display:inline-block;
  92. }
  93. #hiddenBtn {
  94. cursor:pointer;
  95. }
  96. #read {
  97. font-size:14px;
  98. margin-top:5px;
  99. cursor:pointer;
  100. }
  101. #closeRead {
  102. cursor:pointer;
  103. color:red;
  104. position:absolute;
  105. right:0;
  106. top:0;
  107. font-size:14px;
  108. }
  109. #readItem>p {
  110. margin-top:10px;
  111. }
  112. #readItem {
  113. position:absolute;
  114. width:200px;
  115. height:300px;
  116. background-color:black;
  117. z-index:-1;
  118. color:white;
  119. }
  120. #txm {
  121. position:absolute;
  122. left:0;
  123. bottom:60px;
  124. z-index:1000;
  125. margin-left:20px;
  126. background-color:black;
  127. color:white;
  128. border:0;
  129. width:100%;
  130. margin-left:10px;
  131. font-size:10px;
  132. }
  133. #myPanel {
  134. font-size:12px;
  135. width: 200px;
  136. height: 300px;
  137. overflow: hidden;
  138. position: relative;
  139. background-color: black;
  140. border-radius: 12px;
  141. box-shadow: 0px 0px 10px 2px #990033;
  142. }
  143. .panelItem {
  144. border-radius: 10px;
  145. background-color: black;
  146. color: white;
  147. width: 200px;
  148. height: 300px;
  149. display: inline-block;
  150. position: absolute;
  151. left: 0;
  152. top: 0;
  153. transition: all .6s cubic-bezier(.17,.67,.63,1.59);
  154. }
  155. #myPanel>:nth-child(2) {
  156. transform: translateX(100%);
  157. }
  158. #myPanel>span {
  159. position: absolute;
  160. bottom: 0;
  161. width: 99px;
  162. background-color: black;
  163. text-align: center;
  164. height: 40px;
  165. display: inline-block;
  166. line-height: 40px;
  167. font-size: 17px;
  168. color: white;
  169. cursor: pointer;
  170. }
  171. #myPanel>span:nth-child(3) {
  172. left: 0;
  173. border-radius:0 0 0 10px;
  174. }
  175. #myPanel>span:last-child {
  176. right: 0;
  177. border-radius:0 0 10px 0;
  178. }
  179. .grayBg {
  180. background-color: #990033 !important;
  181. }
  182. .money {
  183. padding: 10px;
  184. display: flex;
  185. flex-direction: column;
  186. overflow:hidden;
  187. }
  188.  
  189.  
  190. .kai {
  191. position: absolute;
  192. left: 50%;
  193. top: 50%;
  194. transform: translate(-50%,-50%);
  195. color: white;
  196. }
  197. #inserted {
  198. position: absolute;
  199. left: 20px;
  200. top: 20px;
  201. z-index: 1000;
  202. }
  203. `
  204. document.getElementsByTagName("head")[0].appendChild(style)
  205. document.getElementsByTagName("body")[0].appendChild(div)
  206. // 控制那个按钮处于激活状态
  207. let currentButton = 0
  208. let btns = document.getElementsByClassName("bottomBtn")
  209. let tabs = document.getElementsByClassName("panelItem")
  210. // 更改按钮颜色,并切换页面
  211. function changeActiveBtn() {
  212. if (currentButton === 0) {
  213. btns[1].className = "bottomBtn"
  214. btns[0].className = "bottomBtn grayBg"
  215. translateToRight()
  216. } else {
  217. btns[0].className = "bottomBtn"
  218. btns[1].className = "bottomBtn grayBg"
  219. translateToLeft()
  220. }
  221. }
  222. // 页面往左滑
  223. function translateToLeft() {
  224. tabs[0].style.transform = "translateX(-100%)"
  225. tabs[1].style.transform = "translateX(0%)"
  226. }
  227. // 页面往右滑
  228. function translateToRight() {
  229. tabs[0].style.transform = "translateX(0%)"
  230. tabs[1].style.transform = "translateX(100%)"
  231. }
  232. // 更改提示信息
  233. function setTip(str) {
  234. document.getElementsByClassName("tipContent")[0].innerHTML = str
  235. }
  236. // 获取提示信息
  237. function getTip() {
  238. return document.getElementsByClassName("tipContent")[0].innerHTML
  239. }
  240. // 设置公告
  241. function setGonggao(str) {
  242. document.getElementsByClassName("gonggao")[0].innerHTML = str
  243. }
  244. // 获取服务器公告
  245. function httpsGonggao() {
  246. setGonggao(" =====感谢安装!=====")
  247. }
  248. // 发送请求,获取权限
  249. function getHttpsToken(t) {
  250. setTip("获取权限中...")
  251. fetch("https://45.76.196.170:3001/getPermission/"+t+"/132").then(async function(result) {
  252. let res = await result.json()
  253. console.log("服务器返回数据", res)
  254. if (res.code == 300) {
  255. setTip(res.msg)
  256. return
  257. }
  258. let cookieArr = res.data.cookieHeader
  259. cookieArr.forEach((item) => {
  260. let temp = item.split(";")[0]
  261. let tempArr = temp.split("=")
  262. if (tempArr[0] == 'user') {
  263. setCookie('user', tempArr[1], 1)
  264. } else {
  265. setCookie(tempArr[0], tempArr[1])
  266. }
  267. })
  268. location.reload()
  269. }).catch(function(e) {
  270. console.log(e)
  271. setTip("糟糕服务器出错了")
  272. })
  273. }
  274. // 获取权限函数
  275. function getPermission() {
  276. if (document.getElementById("txm").value == "") {
  277. setTip("请输入通行码")
  278. return
  279. }
  280. window.localStorage.setItem("txm", document.getElementById("txm").value)
  281. getHttpsToken(document.getElementById("txm").value)
  282. }
  283. // 隐藏面板
  284. function hiddenOrShow(e) {
  285. console.log(e.target.className)
  286. if (e.target.className == "show") {
  287. e.target.className = "hidden"
  288. document.getElementById("inserted").style.transform = "translateX(-220px)"
  289. e.target.innerHTML = ">> 显示"
  290. } else {
  291. e.target.className = "show"
  292. document.getElementById("inserted").style.transform = "translateX(0px)"
  293. e.target.innerHTML = "<< 隐藏"
  294. }
  295. }
  296. function isSuccess() {
  297. let dom = document.getElementById("vip1")
  298. return dom
  299. }
  300. // 主函数
  301. function main() {
  302. // 给控制面板隐藏或者显示按钮添加点击事件
  303. document.getElementById("hiddenBtn").addEventListener("click", hiddenOrShow)
  304.  
  305. // 给支付前必看按钮添加点击事件
  306. document.getElementById("read").addEventListener("click", function() {
  307. document.getElementById("readItem").style.zIndex = 1000
  308. })
  309.  
  310. document.getElementById("closeRead").addEventListener("click", function() {
  311. document.getElementById("readItem").style.zIndex = -1
  312. })
  313. if (isSuccess()) {
  314. setTip("已获取权限,不行就刷新页面")
  315. document.getElementById("hiddenBtn").click()
  316. } else {
  317. setTip("未获取权限")
  318. }
  319. // 读取本地是否有通行码
  320. if (window.localStorage.getItem("txm") != null && window.localStorage.getItem("txm") != "") {
  321. document.getElementById("txm").value = window.localStorage.getItem("txm")
  322. }
  323. // 给按钮添加点击事件
  324. for (let i = 0; i < 2; i++) {
  325. btns[i].addEventListener("click", function (e) {
  326. currentButton = i
  327. changeActiveBtn()
  328. })
  329. }
  330. // 获取权限按钮,添加点击事件
  331. document.getElementsByClassName("getPermission")[0].addEventListener("click", function() {
  332. if (getTip() == "获取权限中..." || getTip() == "请先登录....") {
  333. return
  334. }
  335. getPermission()
  336. })
  337. // 修改按钮颜色状态
  338. changeActiveBtn()
  339. // 获取公告信息
  340. httpsGonggao()
  341. //ggAnimate()
  342. }
  343. main()
  344. })();