Sleazy Fork is available in English.

XVideos Download Link Extractor

Add high resolution download link on the right of the screen. Use save as... to download the video you need.

  1. // ==UserScript==
  2. // @author Newonroad
  3. // @name XVideos Download Link Extractor
  4. // @namespace newonroad
  5. // @description Add high resolution download link on the right of the screen. Use save as... to download the video you need.
  6. // @include http*://www.xvideos.com/video*
  7. // @version 0.0.3
  8. // @run-at document-start
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function extractXVideos() {
  13. window.addEventListener("DOMContentLoaded", function () {
  14. function createVideoDownloadElement(href, hintText) {
  15. var videoList = document.createElement("li");
  16. var videoDownloadElement = document.createElement("a");
  17. videoDownloadElement.setAttribute("href", href);
  18. videoDownloadElement.setAttribute("target", "_blank");
  19. videoDownloadElement.setAttribute("class", "btn btn-default");
  20. videoDownloadElement.setAttribute("download", window.xv.conf.dyn.id + ".mp4");
  21. videoDownloadElement.innerHTML = '<span class="icon download"></span><span class="visible-lg-inline"> '+hintText+'</span></a>';
  22. videoList.appendChild(videoDownloadElement);
  23. document.querySelector("#video-actions > ul").appendChild(videoList);
  24. }
  25. createVideoDownloadElement(window.html5player.url_high, "High");
  26. createVideoDownloadElement(window.html5player.url_low, "Low");
  27. createVideoDownloadElement(window.html5player.url_hls, "HLS");
  28. });
  29. }());