YouTube™ Multi Downloader - sfrom.net (Shift + D)

Adds "sfrom.net/" to the front of YouTube URL when Shift + D is pressed to enable downloading videos easily.

当前为 2023-09-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube™ Multi Downloader - sfrom.net (Shift + D)
  3. // @namespace https://greasyfork.org/en/users/1175165-arnvgl
  4. // @version 1.0
  5. // @description Adds "sfrom.net/" to the front of YouTube URL when Shift + D is pressed to enable downloading videos easily.
  6. // @license MIT
  7. // @match https://www.youtube.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. document.addEventListener('keydown', function(event) {
  15. if (event.shiftKey && event.key === 'D') {
  16. event.preventDefault();
  17. var currentUrl = window.location.href;
  18. var newUrl = 'https://sfrom.net/' + currentUrl;
  19. window.location.href = newUrl;
  20. }
  21. });
  22. })();