youtuber

Watch Youtube that's all

  1. // ==UserScript==
  2. // @name youtuber
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Watch Youtube that's all
  6. // @author Makarov
  7. // @match https://www.youtube.com/*
  8. // @match https://www.google.com/*
  9. // @require http://code.jquery.com/jquery-3.3.1.min.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. setInterval(function(){
  16. var videoLinks = document.querySelectorAll('a[href*="/watch?v="]');
  17. videoLinks.forEach(function(item){
  18. item.addEventListener('click',function(){
  19. window.location.href = this.href+'&feature=youtu.be';
  20. });
  21. if(window.location.href.includes('google') && !item.href.includes('&feature=youtu.be')){
  22. item.href+='&feature=youtu.be';
  23. }
  24. //console.log(item.href);
  25. });
  26. },900);
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址