Diegiwg

Animes Online [dot] org

Oct 20th, 2021 (edited)
993
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Animes Online [dot] org
  3. // @match       https://*.animesonline.org/*
  4. // @version     10.0
  5. // ==/UserScript==
  6.  
  7. let pagina_atual = document.baseURI.split('/')[3];
  8.  
  9. if (pagina_atual === "download") {
  10.   var fontes_url = document.querySelectorAll('li.magnet.pt a');
  11.  
  12.   for (let i = 0; i < fontes_url.length; i++) {
  13.    
  14.     if ( fontes_url[i].href.includes('https://ouo.io/') ) { fontes_url[i].href = fontes_url[i].href.split('?s=')[1]; }
  15.    
  16.     fontes_url[i].innerHTML += '<video width="100%" height="150" controls><source id="url_video" src="'+fontes_url[i].href+'" type="video/mp4"></video>';
  17.   }
  18. } else {
  19.   document.querySelector('div#contenedor div#single.dtsingle div.sidebar.right.scrolling').innerHTML = '';
  20.   document.querySelector('div#contenedor div#single.dtsingle div.content.right').attributes[0].textContent = '';
  21.   document.querySelector('div#dt_contenedor div#contenedor div#single.dtsingle div div#info.sbox').innerHTML = '';
  22.   //document.querySelector('div#dt_contenedor div#contenedor div#single.dtsingle div div.module_single_ads').innerHTML = '';
  23. }
  24.  
  25. if (pagina_atual === "episodio") {
  26.   let down_url = document.querySelectorAll('a.watch-party')[1].href;
  27.   document.querySelector('.dooplay_player').innerHTML = '<iframe src="'+down_url+'" width="100%" height="600"></iframe>';
  28. }
  29.  
Add Comment
Please, Sign In to add comment