Play QuickTime MOV in Plugin (for stand-alone .mov)

For Firefox 45+, replaces the HTML5 video player with a plugin for a .mov file opened stand-alone

  1. // ==UserScript==
  2. // @name Play QuickTime MOV in Plugin (for stand-alone .mov)
  3. // @description For Firefox 45+, replaces the HTML5 video player with a plugin for a .mov file opened stand-alone
  4. // @author Jefferson "jscher2000" Scher
  5. // @namespace JeffersonScher
  6. // @copyright Copyright 2016 Jefferson Scher
  7. // @license BSD 3-clause
  8. // @include http*://*/*.mov
  9. // @include http*://*/*.mov?*
  10. // @include http*://*/*.mov#*
  11. // @include file:///*/*.mov
  12. // @version 0.5
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. /*
  17. To enable this script for local file:/// URLs you need to use about:config to switch the following
  18. preference from false to true: extensions.greasemonkey.fileIsGreaseable
  19. */
  20.  
  21. // Check for video/quicktime plugin support
  22. if (!navigator.mimeTypes['video/quicktime']){
  23. window.alert("Sorry, no plugin found to play QuickTime video!");
  24. } else {
  25. // Create object
  26. var obj = document.createElement('object');
  27. obj.setAttribute('type', "video/quicktime");
  28. obj.setAttribute('data', window.location.href);
  29. obj.setAttribute('autoplay', 'true');
  30. obj.setAttribute('style', 'width:90%; height:90%; display:block; margin-left:auto; margin-right:auto;');
  31. // Replace body with object
  32. document.body.innerHTML = '<p style="color:#3dd">Inserting QuickTime player below...</p>';
  33. document.body.appendChild(obj);
  34. }

QingJ © 2025

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