xvideos video downloader

Download videos from the adult site xvideos with tubeninja.net without registering

  1. // ==UserScript==
  2. // @name xvideos video downloader
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description:es Descargar videos de la pagina de adultos xvideos con tubeninja.net sin necesidad de registrarse
  6. // @description Download videos from the adult site xvideos with tubeninja.net without registering
  7. // @author Alexito
  8. // @match https://www.xvideos.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. setInterval(setLoader, 1000);
  16.  
  17. function setLoader(){
  18. let link = document.getElementById('loader');
  19. if(!link){
  20. link = document.createElement('a');
  21. link.innerText = 'Download';
  22. link.setAttribute('target', '_blank');
  23. link.setAttribute('id', 'loader');
  24. document.querySelector('#video-tabs').appendChild(link);
  25. let btnOfLink = document.createElement('button');
  26. document.querySelector('#video-tabs').appendChild(btnOfLink);
  27. btnOfLink.appendChild(link);
  28. btnOfLink.setAttribute('class', 'stylish');
  29. let stylishBtn = document.querySelector('.stylish');
  30. stylishBtn.style.backgroundColor = '#999';
  31. stylishBtn.style.margin = '0px';
  32. stylishBtn.style.display = 'contents';
  33. stylishBtn.style.position = 'relative';
  34. link.style.textDecoration = 'none';
  35. link.style.color = 'red';
  36. link.style.fontFamily ='Curier';
  37. link.style.fontSize = '12px';
  38. document.querySelector('#video-tabs').style.padding='1px';
  39.  
  40. }
  41. let hrefLoad ='https://www.tubeninja.net/welcome?url=' + window.location;
  42. link.setAttribute('href', hrefLoad);
  43. }
  44. })();