YouTube Unblocker

Adds menu button to automatically forward any currently blocked YouTube video to eachvideo.com and unblocks the video.

当前为 2016-11-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube Unblocker
  3. // @namespace YTUB
  4. // @version 4.0
  5. // @description Adds menu button to automatically forward any currently blocked YouTube video to eachvideo.com and unblocks the video.
  6. // @author drhouse
  7. // @include https://www.youtube.com/*
  8. // @include http://www.youtube.com/*
  9. // @grant GM_registerMenuCommand
  10. // @grant GM_getResourceText
  11. // @resource spfremove https://greasyfork.org/scripts/16935-disable-spf-youtube/code/Disable%20SPF%20Youtube.user.js
  12. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  13. // @icon https://s.ytimg.com/yts/img/favicon-vfldLzJxy.ico
  14. // @locale en
  15. // ==/UserScript==
  16.  
  17. $(document).ready(function () {
  18.  
  19. eval(GM_getResourceText("spfremove"));
  20.  
  21. GM_registerMenuCommand("YouTube Unblocker 2016", function(){
  22. var theurl = window.location.href;
  23. theurl = theurl.replace("youtube.com", "eachvideo.com");
  24. window.location.href = theurl;
  25. });
  26.  
  27. });