Fix Youtube videos in Voxed.net

xdddd

当前为 2020-02-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Fix Youtube videos in Voxed.net
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description xdddd
  6. // @author Mav3ricK
  7. // @match http://www.voxed.net/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12. window.onload = function ()
  13. {
  14.  
  15. function move()
  16. {
  17.  
  18. if(document.querySelector('.commentAttach') !== null)
  19. {
  20. import('https://code.jquery.com/jquery-3.4.1.min.js');
  21. var xd = $('.commentAttach');
  22. xd.css('border','none');
  23. xd.css('padding','0');
  24. xd.css('max-width','100%');
  25.  
  26. if(xd.children().first().prop('tagName') == 'IFRAME')
  27. {
  28.  
  29. xd.children().css('width','390');
  30. xd.children().css('height','243.75');
  31. xd.classList.remove("attach_video");
  32.  
  33. }
  34.  
  35. }
  36.  
  37. setTimeout(move, 1000);
  38. }
  39.  
  40. //v4 updated
  41. move();
  42.  
  43.  
  44. };
  45.  
  46.  
  47.