New music player (Fixed)

Music player for io flash games

  1. // ==UserScript==
  2. // @name New music player (Fixed)
  3. // @namespace http://tampermonkey.net/
  4. // @version 4.1
  5. // @description Music player for io flash games
  6. // @author You
  7. // @match *://arras.io/*
  8. // @match *://*.moomoo.io/*
  9. // @match *://moomoo.io/*
  10. // @match *://sandbox.moomoo.io/*
  11. // @match *://splix.io/*
  12. // @match *://paper-io.com/*
  13. // @match *://moomoo.io/*
  14. // @match *://starblast.io/*
  15. // @match *://narwhale.io/*
  16. // @match *://surviv.io/*
  17. // @match *://agar.io/*
  18. // @match *://gf.qytechs.cn/*
  19. // @grant none
  20.  
  21. // @license MIT
  22. // ==/UserScript==
  23. //YT: https://www.youtube.com/channel/UCOA8lE9-0XnEIdHqjfQUz1A
  24.  
  25. // WIP @match https://www.roblox.com/home
  26. // WIP @match *://slither.io/*
  27. console.warn(started=performance.now())
  28. var llength='RDJsG8fl0VfkQ'.length;
  29. var default_s
  30. window.default_list='RDJsG8fl0VfkQ'
  31. function setplayer_(e){var src=e.src;var old=setElement(new Player(src).set);var list=src.split('list')[1];return [old,list,src]
  32. }
  33. function getP(url){var n=url.split('&'),o=n[0],p=n[1],q=n[2];return p?p.split('=')[1]:window.default_list}
  34. function getlink(url){
  35. var vid=setElement(url)
  36. var list=getP(url)
  37. return setup(vid,list)
  38. }
  39. function setup(url,list){if(!url){return}if(!list){return}return`https://www.youtube.com/watch?v=${url}?wmode=opaque&autohide=1&autoplay=1&enablejsapi=1&list=${list}`}
  40. function setplayer(e){e.src=setup(setElement(new Player(e.src).set),e.src.split('list')[1]);}
  41. function makeid(length) {var result = '';var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';var charactersLength = characters.length;for ( var i = 0; i < length; i++ ) {result += characters.charAt(Math.floor(Math.random() * charactersLength));}return result;}
  42. setElement = function(url) {var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;var match = String(url).match(regExp);console.log(match);return(match&&match[7].length==11)? match[7]: false;};
  43. Player = function(oldurl){if(!oldurl){return}var newpid=makeid(length);var newurl=setElement(oldurl);var p=setup(newurl,newpid);this.set=p}
  44. var isalready=eval(localStorage.getItem('isplayer'))==null?true:eval(localStorage.getItem('isplayer'))
  45. isalready=isalready==false
  46. window.onunload=function(){
  47. localStorage.setItem('isplayer',false);
  48. }
  49. if(isalready){
  50. localStorage.setItem('isplayer',true);
  51. iframe='<iframe id="msc" src="https://www.youtube.com/embed/${id}?list=PLx0sYbCqOb8TBPRdmBHs5Iftvv9TPboYG" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'
  52. function toggled(e){var is2=[e.style.display=='none',e.style.display=='block'];if(!is2[0]&&!is2[1]){e.style.display='block'}var is=[e.style.display=='none',e.style.display=='block'];console.log(is);if(is[0]){e.style.display='block'};if(is[1]){e.style.display='none'};return e.style.display;};
  53. ta=document.getElementsByTagName('*');
  54. var toadd=[];
  55. var allEqual = (arr,a) => arr.every( v => {console.log(v === a);return v === a} );
  56. var allEqual2 = (arr) => arr.every( v => v === arr[0] );
  57. ta.list=function(id,classname,tag){
  58. var res=[];
  59. var put={};
  60. var array=[];
  61. todo=document.getElementsByTagName((tag||'*'));
  62. todo.forEach=[].forEach;
  63. todo.forEach(e=>{
  64. array=[];
  65. if(typeof id=='string'){
  66. put.i=id==e.id;
  67. }else{put.i=true}
  68. if(typeof classname=='string'){
  69. put.c=classname==e.className;
  70. }else{put.c=true}
  71. array=[put.c,put.i];
  72. array=allEqual(array,true);
  73. if(array){res.push(e);console.count();}
  74. })
  75. console.countReset();
  76. return res;
  77. };
  78. function isHidden(el) {
  79. if(el){
  80. return (el.offsetParent === null)
  81. }
  82. }
  83. id=function(id){return document.getElementById(id)}
  84. dd=function (names) {let unique = {};names.forEach(function(i) {if(!unique[i]) {unique[i] = true;}});return Object.keys(unique);};
  85. clas=function(classname){return document.getElementsByClassName(classname)};
  86. var vcent=location.href.includes('moomoo')?false:
  87. location.href.includes('narwhale')?false:
  88. location.href.includes('starblast')?false:
  89. location.href.includes('surviv')?false:
  90. location.href.includes('roblox')?false:
  91. document.domain.includes('slither')?true:
  92. document.domain.includes('greasyfork')?false:
  93. document.domain.includes('agar')?true:
  94. document.domain.includes('paper-io')?true:
  95. document.domain.includes('splix')?true:0;
  96. var canclear,pendto;
  97. idlenght='-Mypt378fkc'.length;
  98. CE=function(tag,id,classname){var e=document.createElement(tag);e.classname=classname;if(id){if(id.length){e.id=id;};};return e;}
  99. setElement(URL);
  100. playlist=function(url,...list){
  101. console.log('1',getlink(url))
  102. var id=setElement(url);
  103. if(id&&idlenght==id.length)null
  104. else {id=false;console.log('id','does','not','match','length')}
  105. if(!id)id=localStorage.getItem('lid');
  106. if(list &&llength==list.length)null
  107. else{list =false;console.log('list','does','not','match','length')}
  108. if(!list)list=localStorage.getItem('list');
  109. music_frame.src=setup(id,list);
  110. }
  111. function imsub(){playlist()};
  112. ;fix=URL=>{URL=setElement(URL);document['YTID']=URL;return "https://www.youtube.com/embed/"+URL+"?wmode=opaque&autohide=1&autoplay=1&enablejsapi=1&list=RDJsG8fl0VfkQ";};
  113. function fix2(item,val){return localStorage.getItem(item)?[true,localStorage.getItem(item)]:[false,localStorage.setItem(item,val)]};hh=function(item,val){localStorage.setItem(item,val)};jj=function(item){return localStorage.getItem(item)};frame=CE('iframe','music_frame');inputm=CE('input','insert');frame.value;inputm.onsubmit=imsub;inputm.onkeyup=function(e){
  114. function getP(url){var n=url.split('&'),o=n[0],p=n[1],q=n[2];return p?p.split('=')[1]:window.default_list}
  115. function getlink(url){
  116. var vid=setElement(url)
  117. var list=getP(url)
  118. return setup(vid,list)
  119. }
  120. function setup(url,list){if(!url){return}if(!list){return}return `https://www.youtube.com/embed/${url}?list=${list}`;/*`https://www.youtube.com/watch?v=${url}?wmode=opaque&autohide=1&autoplay=1&enablejsapi=1&list=${list}`}*/}
  121. var new_url=getlink(e.target.value)
  122. console.log(new_url);
  123. localStorage.setItem('LP',new_url)
  124. frame.src=new_url
  125. };
  126. if(!eval(fix2('test4',true))[0]){inputm.placeholder=fix('://www.youtube.com/watch?v=-Mypt378fkc');alert('test');frame.src=localStorage.getItem('LP')||inputm.placeholder;}else{fix2('RS','https://www.youtube.com/watch?v=-Mypt378fkc');frame.src=fix(jj('RS'));};var br=CE('br');if(canclear){pendto.innerHTML=''};listn=CE('input','list');listn.placeholder='enter Plist id'
  127. var hb=CE('button','H_B');
  128. fix2('list','RDJsG8fl0VfkQ')
  129. fix2('lid','-Mypt378fkc')
  130. var hb2=CE('button','H_B2');
  131. hb2.innerText='New player list'
  132. frame.setAttribute('controls',1);
  133. hb.innerText='Toggle player';
  134. set=function(a,b,c){a.setAttribute(b,c);};
  135. var test3=[
  136. {site:location.href.includes('greasyfork'),cent:true,clear:false,parent:function(){return (document.getElementById('home-top-sites')||document.getElementById('script-list-sort')||document.getElementById('script-links')).parentNode}},
  137. {site:location.href.includes('moomoo'),cent:false,clear:true,parent:function(){setTimeout(function(){setTimeout(function(){
  138. document.getElementById('nameInput').placeholder = "𝗚𝗶𝘃𝗲 𝗵𝗶𝗺 ▶ 🐳 a name";
  139. document.getElementById('desktopInstructions').remove();
  140. document.getElementById('youtuberOf').remove();
  141. document.getElementById('diedText').innerHTML = '❌ΣLIMIΠΔTΣD❌';
  142. $('#diedText').css({'background-color': 'rgba(0, 0, 0, 0.74)'});
  143. $('#diedText').css({'color': 'rgba(212, 32, 32, 1)'});
  144. document.getElementById('enterGame').innerHTML = '🎮𝐏𝐋𝐀𝐘🎮';
  145.  
  146. $('#gameName').css({'color': '#000000',
  147. 'text-shadow': '0 1px 0 rgba(60, 100, 231, 1), 0 2px 0 rgba(60, 100, 231, 1), 0 3px 0 rgba(60, 100, 231, 1), 0 4px 0 rgba(60, 100, 231, 1), 0 5px 0 rgba(57, 149, 171, 1), 0 6px 0 rgba(57, 149, 171, 1), 0 7px 0 rgba(57, 149, 171, 1), 0 8px 0 rgba(57, 149, 171, 1), 0 9px 0 rgba(57, 149, 171, 1)',
  148. 'text-align': 'center',
  149. 'font-size': '156px',
  150. 'margin-bottom': '-30px'});
  151.  
  152. var moomooVer = $('#linksContainer2 .menuLink').html(),
  153. hideSelectors = ['#mobileDownloadButtonContainer',
  154. '#followText',
  155. '#smallLinks',
  156. '#linksContainer1',
  157. '#twitterFollow',
  158. '#youtubeFollow',
  159. '#cdm-zone-02',
  160. '#youtuberOf',
  161. '#promoImg',
  162. '#downloadButtonContainer',
  163. '.menuHeader',
  164. '.menuLink',
  165. '.menuHeader:nth-child(5)',
  166. '.menuHeader:nth-child(6)',
  167. '.menuText'
  168. ],
  169.  
  170. css = '#rightCardHolder {display: block!important}',
  171. head = document.head || document.getElementsByTagName('head')[0],
  172. style = document.createElement('style');
  173. /*var Buy={acc:[],hat:[]}
  174. changeStoreIndex(1)
  175. var items2=document.getElementsByClassName('storeItem')
  176. items2.forEach=[].forEach
  177. items2.forEach(e=>{
  178. try{Buy.acc.push({buy:e.getElementsByClassName('joinAlBtn')[0],price:e.getElementsByClassName('itemPrice')[0].innerText*1})}catch(err){Buy.acc.push({buy:e.getElementsByClassName('joinAlBtn')[0],price:e.getElementsByClassName('itemPrice')[0]})})
  179. });
  180. changeStoreIndex(0)
  181. var items2=document.getElementsByClassName('storeItem')
  182. items2.forEach=[].forEach
  183. items2.forEach(e=>{
  184. try{Buy.hat.push({buy:e.getElementsByClassName('joinAlBtn')[0],price:e.getElementsByClassName('itemPrice')[0].innerText})}catch(e){Buy.hat.push({buy:e.getElementsByClassName('joinAlBtn')[0],price:0})}
  185. })*/
  186.  
  187. style.type = 'text/css';
  188. if (style.styleSheet){
  189. style.styleSheet.cssText = css;
  190. } else {
  191. style.appendChild(document.createTextNode(css));
  192. }
  193. promoImgHolder.remove();
  194. (function() {var css = [
  195. " #twitterFollow, ",
  196. " #youtubeFollow, ",
  197. " #downloadButtonContainer, ",
  198. " #followText, ",
  199. " #promoImg {",
  200. " display: none;",
  201. " }",
  202. "",
  203. " #featuredYoutube > a.ytLink, ",
  204. " a {",
  205. " color: #FFFF00 !important;",
  206. " font-size: 20px;",
  207. " margin-top: 0px;",
  208. " transition: 0.5s;",
  209. " }",
  210. " a:hover {",
  211. " color: #51FF00 !important;",
  212. " }",
  213. "",
  214. " #featuredYoutube {",
  215. " margin-top: 30px;",
  216. " }",
  217. "",
  218. " #linksContainer2, ",
  219. " .partyWrap {",
  220. " background: rgba(0,0,0,0.6);",
  221. " border: 3px solid rgba(0,0,0,0.9);",
  222. " border-radius: 10px;",
  223. " padding: 10px;",
  224. " font-size: 20px;",
  225. " position: absolute;",
  226. " color: #fff;",
  227. " }",
  228. "",
  229. " .partyWrap {",
  230. " min-height: 80px;",
  231. " min-width: 160px;",
  232. " top: 10px;",
  233. " right: 10px;",
  234. " }",
  235. "",
  236. " #followText {",
  237. " min-height: 200px;",
  238. " bottom: 10px;",
  239. " left: 10px;",
  240. " }",
  241. "",
  242. " #linksContainer2 {",
  243. " bottom: 10px;",
  244. " right: 10px;",
  245. " color: transparent;",
  246. " }",
  247. "",
  248. " .menuCard {",
  249. " background: rgba(0,0,0,0.6);",
  250. " border-radius: 10px;",
  251. " border: 10px solid rgba(0,0,0,0.9);",
  252. " box-shadow: none;",
  253. " overflow:auto;",
  254. " height:180px;",
  255. " }",
  256. "",
  257. " ::-webkit-scrollbar {",
  258. " width: 10px;",
  259. " border-right: 2px solid #ec0e0ed6;",
  260. " }",
  261. "",
  262. " ::-webkit-scrollbar-thumb {",
  263. " border: 2px solid #ffeb3b;",
  264. " }",
  265. "",
  266. " ::-webkit-scrollbar-thumb:hover {",
  267. " background: #ec0e0ed6;",
  268. " }",
  269. "",
  270. " ::-webkit-scrollbar-thumb:active {",
  271. " background: black;",
  272. " border: 2px solid #000000;",
  273. " }",
  274. "",
  275. " .menuHeader {",
  276. " font-size: 24px;",
  277. " color: #eeeeee;",
  278. " margin-bottom: 3px;",
  279. " border-bottom: 3px solid #eee;",
  280. " }",
  281. "",
  282. " .menuHeader:first-child {",
  283. " margin-bottom: 30px;",
  284. " }",
  285. "",
  286. " .menuText {",
  287. " font-size: 18px;",
  288. " color: #ccc;",
  289. " margin-bottom: 10px;",
  290. " }",
  291. "",
  292. " .ytLink {",
  293. " color: #FF8C00;",
  294. " font-size: 24px;",
  295. " text-decoration: none;",
  296. " transition: 0.5s;",
  297. " }",
  298. "",
  299. " .menuButton {",
  300. " color: #fff;",
  301. " background-color: transparent;",
  302. " border: 5px solid #ffe600;",
  303. " position: relative;",
  304. " display: inline-flex;",
  305. " padding: 0px 70px;",
  306. " font-family: fantasy;",
  307. " transition: color .5s;",
  308. " overflow: hidden;",
  309. " width: 100%;",
  310. " justify-content: center;",
  311. " }",
  312. "",
  313. " .menuButton:hover {",
  314. " font-family: monospace;",
  315. " color: #FFFFFF !important;",
  316. " border: 5px solid #ff0000;",
  317. " cursor: pointer;",
  318. " background-color: transparent;",
  319. " }",
  320. "",
  321. " .menuButton:before {",
  322. " content: \'\';",
  323. " position: absolute;",
  324. " top: 0;",
  325. " left: 0;",
  326. " width: 130%; ",
  327. " height: 10000%;",
  328. " background: #2dff00;",
  329. " border-right: 20px solid #FF0000;",
  330. " z-index: -1;",
  331. " transform-origin:0 0 ;",
  332. " transform:translateX(-112%) skewX(45deg);",
  333. " transition: transform .5s;",
  334. " }",
  335. "",
  336. " .menuButton:hover:before {",
  337. " color: #FFFFFF !important;",
  338. " transform: translateX(-20%) skewX(45deg);",
  339. " }",
  340. "",
  341. " .menuCard span {",
  342. " margin: 10px;",
  343. " }",
  344. "",
  345. " #promoHolderImg > img {",
  346. " width: 300px;",
  347. " height: 94px;",
  348. " }",
  349. "",
  350. " #guideCard {",
  351. " max-height: 282px;",
  352. " }",
  353. "",
  354. " .skinColorItem {",
  355. " transition: 1s;",
  356. " width: 23px;",
  357. " height: 23px;",
  358. " border: 3px solid #000;",
  359. " }",
  360. "",
  361. " select {",
  362. " background: #000000;",
  363. " border-radius: 5px;",
  364. " border: 3px solid #006EC4;",
  365. " margin-bottom: 10px;",
  366. " color: #fff;",
  367. " transition: 0.5s;",
  368. " }",
  369. "",
  370. " select:hover {",
  371. " background: #ff8007;",
  372. " border: 3px solid #B20E0E;",
  373. " }",
  374. "",
  375. " #pre-content-container {",
  376. " display: none!important;",
  377. " }",
  378. "",
  379. " .actionBarItem {",
  380. " background-color: rgba(0,0,0,0.6) !important;",
  381. " border: 3px solid rgba(255,235,59,1);",
  382. " border-radius: 15px !important;",
  383. " transition: 0.5s;",
  384. " }",
  385. "",
  386. " .actionBarItem:hover {",
  387. " background-color: rgba(0,0,0,0.5) !important;",
  388. " border: 3px solid rgba(255,136,0,1);",
  389. " border-radius: 50px !important;",
  390. " }",
  391. "",
  392. " .uiElement {",
  393. " background-color: rgba(0,0,0,0.6) !important;",
  394. " border: 3px solid rgba(234,0,255,1);",
  395. " border-radius: 50px !important;",
  396. " transition: 0.5s;",
  397. " }",
  398. "",
  399. " .uiElement:hover {",
  400. " background-color: rgba(0,0,0,0.5) !important;",
  401. " border: 3px solid rgba(0,95,255,1);",
  402. " border-radius: 0px !important;",
  403. " }",
  404. "",
  405. " .resourceDisplay {",
  406. " background-color: rgba(0,0,0,0.6) !important;",
  407. " border: 3px solid rgba(255,255,0,0.9);",
  408. " border-radius: 50px !important;",
  409. " color: #A200FF;",
  410. " transition: 0.5s;",
  411. " }",
  412. "",
  413. " #topInfoHolder, #itemInfoHolder, #mapDisplay, #chatBox { ",
  414. " background-color: rgba(0,0,0,0.6) !important;",
  415. " border: 3px solid rgba(0,0,0,0.9);",
  416. " border-radius: 10px !important;",
  417. " color: #FF0000;",
  418. " }",
  419. "",
  420. " #itemInfoHolder { ",
  421. " -webkit-text-stroke: transparent;",
  422. " }",
  423. "",
  424. " .material-icons { ",
  425. " color: #000000;",
  426. " font-size: 31px;",
  427. " -webkit-text-stroke: 0.3px #fff;",
  428. " }",
  429. "",
  430. " #altServer > a > i {",
  431. " font-size: 30px !important;",
  432. " -webkit-text-stroke: transparent !important;",
  433. " }",
  434. "",
  435. " #ageBarBody {",
  436. " background: url('https://ak.picdn.net/shutterstock/videos/822988/thumb/3.jpg');",
  437. " border: 1px solid #fff",
  438. " }",
  439. "",
  440. " #ageBar {",
  441. " background-color: rgba(0,0,0,0.6) !important;",
  442. " border: 1px solid rgba(0,0,0,0.9);",
  443. " height: 5px;",
  444. " padding-bottom: 10px;",
  445. " }",
  446. "",
  447. " .actionBarItem {",
  448. " width: 65px;",
  449. " height: 65px;",
  450. " background-position: center; ",
  451. " background-size: 55px 55px;",
  452. " }",
  453. "",
  454. " #aBox {",
  455. " color: #FF8C00!important;",
  456. " transition: 0.5s;",
  457. " }",
  458. "",
  459. " #chatBox::placeholder {",
  460. " color: #17FF00!important;",
  461. " }",
  462. "",
  463. " #chatBox:hover {",
  464. " background: rgba(0,0,0,0.5)!important;",
  465. " }",
  466. "",
  467. " #chatBox:hover::placeholder {",
  468. " color: #00FFFF!important;",
  469. " }",
  470. "",
  471. " .ytLink:hover {",
  472. " color: #cc0000;",
  473. " }",
  474. "",
  475. " #nameInput {",
  476. " background: #fff;",
  477. " border: 5px solid #00FF9E;",
  478. " transition: 0.5s;",
  479. " }",
  480. "",
  481. " #nameInput::placeholder {",
  482. " color: #00FF9E;",
  483. " transition: 0.5s;",
  484. " }",
  485. "",
  486. " #nameInput:hover {",
  487. " background: #4ACA1A;",
  488. " color: #fff;",
  489. " }",
  490. "",
  491. " #nameInput:hover::placeholder {",
  492. " background: #4ACA1A;",
  493. " color: #fff;",
  494. " }",
  495. "",
  496. " #linksContainer2 {",
  497. " max-height: 500px;",
  498. " width: 250px;",
  499. " }",
  500. "",
  501. " #linksContainer2 > * {",
  502. " display:table-cell;",
  503. " vertical-align:middle;",
  504. " text-align: center;",
  505. " width:700px;",
  506. " }",
  507. " ",
  508. " .storeTab, ",
  509. " #storeHolder, ",
  510. " #allianceHolder, ",
  511. " #allianceInput, ",
  512. " .allianceButtonM {",
  513. " background: rgba(0,0,0,0.6);",
  514. " border: 3px solid rgba(0,0,0,0.9);",
  515. " }",
  516. "",
  517. " .storeItem, ",
  518. " .storeTab, ",
  519. " .allianceButtonM, ",
  520. " #allianceInput::placeholder, ",
  521. " .allianceItem {",
  522. " color: #FF8C00 !important;",
  523. " }",
  524. "",
  525. " .storeItem, ",
  526. " .storeTab, ",
  527. " .allianceButtonM, ",
  528. " #allianceInput::placeholder, ",
  529. " .allianceItem, ",
  530. " .joinAlBtn {",
  531. " color: #FFF700 !important;",
  532. " }",
  533. "",
  534. " .storeItem:hover, ",
  535. " .storeTab:hover, ",
  536. " .allianceButtonM:hover,",
  537. " .allianceItem:hover, ",
  538. " .joinAlBtn:hover {",
  539. " color: #F1F41D !important;",
  540. " }",
  541. "",
  542. " #allianceInput, ",
  543. " color: #FF8C00;",
  544. " }",
  545. " ",
  546. " #allianceInput:hover {",
  547. " background: rgba(0,0,0,0.5);",
  548. " color: #fc9f9f;",
  549. " }",
  550. "",
  551. " #allianceInput:hover::placeholder{",
  552. " color: #fc9f9f;",
  553. " }",
  554. "",
  555. " #linksContainer2 > *:first-child {",
  556. " border-bottom: 3px solid #8B00FF;",
  557. " }",
  558. "",
  559. " #moddedMenu {",
  560. " position: absolute;",
  561. " top: 30.25%;",
  562. " left: 0px;",
  563. " width: 3%;",
  564. " height: 45.0%;",
  565. " background: url(https://i.pinimg.com/originals/30/b8/17/30b8174c6f1a07e0af9bcf41fec3a5f5.gif);",
  566. " border: 3px solid rgba(100,0,255,0.9);",
  567. " border-top-right-radius: 30px;",
  568. " border-bottom-right-radius: 0px;",
  569. " transition: 1s;",
  570. " z-index: 999;",
  571. " }",
  572. "",
  573. " #moddedMenu:hover {",
  574. " width: 22%;",
  575. " }",
  576. "",
  577. " .titleMM {",
  578. " color: #A20000;",
  579. " border-bottom: 3px solid #0030ff;",
  580. " font-size: 32px;",
  581. " transform: rotate(90deg);",
  582. " white-space: nowrap;",
  583. " margin-top: 250%;",
  584. " transition: 1s;",
  585. " }",
  586. "",
  587. " #moddedMenu:hover > .titleMM {",
  588. " transform: rotate(0deg) translate(0,-1580%)",
  589. " }",
  590. "",
  591. "",
  592. " .text {",
  593. " bottom: 76%;",
  594. " position: absolute;",
  595. " color: #eee;",
  596. " font-size: 20px;",
  597. " left: 0%;",
  598. " display: none;",
  599. " transition: 1s;",
  600. " }",
  601. "",
  602. " .text > b { ",
  603. " font-size: 20px;",
  604. " color: #ff6500;",
  605. " }",
  606. "",
  607. " b:hover { ",
  608. " color: #ff0000;",
  609. " }",
  610. "",
  611. " .one > .text {",
  612. " top: 5.5%;",
  613. " }",
  614. "",
  615. " .two > .text {",
  616. " top: 10.7%;",
  617. " }",
  618. "",
  619. " .three > .text {",
  620. " top: 37.5%;",
  621. " }",
  622. "",
  623. " .four > .text {",
  624. " top: 47.5%;",
  625. " }",
  626. "",
  627. " .five > .text {",
  628. " top: 57.5%;",
  629. " }",
  630. "",
  631. " .six > .text {",
  632. " top: 67.5%;",
  633. " }",
  634. "",
  635. " .seven > .text {",
  636. " top: 77.5%;",
  637. " }",
  638. "",
  639. " .eight > .text {",
  640. " top: 87.5%;",
  641. " }",
  642. "",
  643. "",
  644. "",
  645. " #moddedMenu:hover .switch {",
  646. " opacity: 1;",
  647. " }",
  648. "",
  649. " #moddedMenu:hover .text {",
  650. " display: block;",
  651. " }",
  652. "",
  653. "",
  654. " .slider {",
  655. " position: absolute;",
  656. " cursor: pointer;",
  657. " background-color: #888;",
  658. " -webkit-transition: .4s;",
  659. " transition: .4s;",
  660. " }",
  661. "",
  662. " .slider:before {",
  663. " position: absolute;",
  664. " background-color: orange;",
  665. " -webkit-transition: .4s;",
  666. " transition: .4s;",
  667. " }",
  668. "",
  669. " input:checked + .slider {",
  670. " background-color: #FF8C00;",
  671. " }",
  672. " ",
  673. " input:focus + .slider {",
  674. " box-shadow: 0 0 1px #FF8C00;",
  675. " }",
  676. "",
  677. " input:checked + .slider:before {",
  678. " -webkit-transform: translateX(26px);",
  679. " -ms-transform: translateX(26px);",
  680. " transform: translateX(10px);",
  681. " }",
  682. "",
  683. " .slider.round {",
  684. " border-radius: 34px;",
  685. " }",
  686. "",
  687. " .slider.round:before {",
  688. " border-radius: 50%;",
  689. " }"
  690. ].join("\n");
  691. if (typeof GM_addStyle != "undefined") {
  692. GM_addStyle(css);
  693. } else if (typeof PRO_addStyle != "undefined") {
  694. PRO_addStyle(css);
  695. } else if (typeof addStyle != "undefined") {
  696. addStyle(css);
  697. } else {
  698. var node = document.createElement("style");
  699. node.type = "text/css";
  700. node.appendChild(document.createTextNode(css));
  701. var heads = document.getElementsByTagName("head");
  702. if (heads.length > 0) {
  703. heads[0].appendChild(node);
  704. } else {
  705. document.documentElement.appendChild(node);
  706. }
  707. }
  708. })();
  709. },100)},1000);return id('adCard');},css:[['#adCard','background-color', 'rgba(0,0,0,0)'],['#insert','background-color', 'rgba(0,0,0,0)'],['#H_B','color', 'red'],['#serverBrowser','background-color','rgba(0,0,0,0)'],['#guideCard','background-color','rgba(0,0,0,0)'],['#setupCard','background-color','rgba(0,0,0,0)'],['#nameInput','background-color','rgba(0,0,0,0)'],['#nameInput','color','rgb(254, 28, 73)']]},
  710. {site:location.href.includes('slither'),cent:true,clear:true,parent:function(){return id('login')}},
  711. {site:location.href.includes('narwhale'),cent:false,clear:false,parent:function(){return id('adZone')}},
  712. {site:location.href.includes('starblast'),cent:false,clear:false,parent:function(){return id('content')}},
  713. {site:location.href.includes('surviv'),cent:true,clear:true,parent:function(){return id('ad-block-left')},css:[['#H_B','background-color', 'rgba(0,0,0,0)'],['#insert','background-color', 'rgba(0,0,0,0)'],['#H_B','color', 'red'],['#ad-block-left','background-color','rgba(0,0,0,0)']]},
  714. {site:location.href.includes('roblox'),cent:false,clear:false,parent:function(){return clas('home-header')[0]}},
  715. {site:location.href.includes('agar'),cent:true,clear:true,parent:function(){return id('mainui-ads')}},
  716. {site:location.href.includes('paper-io'),cent:true,clear:true,parent:function(){return id('bottom')}},
  717. {site:location.href.includes('splix'),cent:true,clear:true,parent:function(){return id('newsboxContent')}},
  718. {site:location.href.includes('arras'),cent:true,clear:true,parent:function(){id('ad-spawn').remove();id('arras-io_336x280').remove();return document.getElementsByClassName('referral')[0]}},
  719. ];
  720. var a
  721. window.br=document.createElement('br')
  722. hb.onclick=function(){var ei;try{toggled(centy2);}catch(e){console.log('Failed',2,e)};try{toggled(centy)}catch(e){console.log('Failed',1,e)}}
  723. hb2.onclick=setup2
  724. function add_styles(){
  725. insert.className='script'
  726. H_B.className='script'
  727. H_B2.className='script'
  728. frame.className='script'
  729. frame.after(br)
  730. if (typeof GM_addStyle != "undefined") {
  731. GM_addStyle(css);
  732. } else if (typeof PRO_addStyle != "undefined") {
  733. PRO_addStyle(css);
  734. } else if (typeof addStyle != "undefined") {
  735. addStyle(css);
  736. } else {
  737. var node = document.createElement("style");
  738. node.type = "text/css";
  739. node.appendChild(document.createTextNode(`
  740. iframe.script {
  741. border: 2px solid red;
  742. border-radius: 8px;
  743. border-style: solid;
  744. border-width: medium;
  745. }
  746. button.script{
  747. border: 2px solid red;
  748. border-radius: 8px;
  749. border-style: solid;
  750. border-width: medium;
  751. background:black;
  752. color:white
  753. }
  754. input.script::placeholder{color:red}
  755. input.script{
  756. border: 2px solid red;
  757. border-radius: 8px;
  758. border-style: solid;
  759. border-width: medium;
  760. border-width:0px;
  761. color:black;
  762. background: rgba(0, 0, 0, 0)
  763. }`));
  764. var heads = document.getElementsByTagName("head");
  765. if (heads.length > 0) {
  766. heads[0].appendChild(node);
  767. } else {
  768. document.documentElement.appendChild(node);
  769. }
  770. }
  771. }
  772. function style(a,b,c){$(a).css(b,c);};
  773. function setup2(){var info=setplayer_(music_frame);document.getElementById('insert').value=info[0];imsub();}
  774. function place(a,b){try{a.placeholder=b}catch(err){}}
  775. window.setup3=function setup3(css){
  776. set(frame,'allow','autoplay; encrypted-media')
  777. set(frame,'frameborder','0')
  778. var bf=pendto
  779. var xcent=CE('center','centy3');
  780. if(canclear){pendto.innerHTML='';}
  781. if(vcent){
  782. clearInterval(a);
  783. a=setInterval(function(){
  784. console.log('waiting')
  785. try{
  786. if(pendto){
  787. clearInterval(a);
  788. var p2=pendto
  789. frame.src=localStorage.getItem('LP')
  790. window.onunload=function(e){localStorage.setItem('LP',frame.src)}
  791. console.log(pendto)
  792. var cent=CE('center','centy');
  793. pendto.appendChild(cent);
  794. pendto=centy;
  795. pendto.appendChild(br);
  796. pendto.appendChild(frame);
  797. pendto.appendChild(br);
  798. pendto.appendChild(br);
  799. pendto.appendChild(inputm);
  800. pendto.appendChild(br);
  801. pendto.appendChild(br);
  802. clearInterval(a);
  803. xcent.appendChild(br);
  804. xcent.appendChild(hb)
  805. xcent.appendChild(br)
  806. xcent.appendChild(hb2)
  807. p2.appendChild(xcent)
  808. console.log('Done setting up')
  809. console.log(started-performance.now())
  810. add_styles()
  811. }
  812. }catch(e){console.error(e);}
  813. },0)
  814. }
  815. else{
  816. clearInterval(a);
  817. a=setInterval(function(){
  818. try{
  819. if(pendto){
  820. clearInterval(a);
  821. var div=pendto;
  822. pendto=CE('div','centy2');
  823. pendto.appendChild(br);
  824. pendto.appendChild(frame);
  825. frame.src=localStorage.getItem('LP')
  826. window.onunload=function(e){localStorage.setItem('LP',frame.src)}
  827. pendto.appendChild(br);
  828. pendto.appendChild(br);
  829. pendto.appendChild(inputm);
  830. div.appendChild(pendto)
  831. div.appendChild(br);
  832. div.appendChild(hb);
  833. div.appendChild(br)
  834. div.appendChild(hb2)
  835. console.log('Done setting up')
  836. alert('done')
  837. console.log(started-performance.now());
  838. add_styles();
  839. }
  840. }catch(e){console.error(e)}
  841. },0)
  842. }
  843.  
  844. setTimeout(function(){
  845. if(css){
  846. css.forEach(e=>{
  847. style(e[0],e[1],e[2])
  848. });
  849. }
  850. place(id('insert'),'insert song here');
  851. },1000)};
  852. test3.forEach(e=>{
  853. if(e.site){
  854. pendto=window.pendto=e.parent();
  855. vcent=window.vcent=e.cent
  856. canclear=window.canclear=e.clear
  857. console.log(e)
  858. if(e.css){setup3(e.css);console.log('w/o')}else{setTimeout(window.setup3,100);console.log('found')};
  859. }
  860. });
  861. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址