城市速瑞快递打包视频

城市速瑞快递打包视频,更正方向、全屏、允许录制、允许开声音

  1. // ==UserScript==
  2. // @name Record city express packaging
  3. // @name:zh-CN 城市速瑞快递打包视频
  4. // @namespace http://tampermonkey.net/
  5. // @version 2025-02-27
  6. // @description Record the packaging video of suruilogistics.com (ctexpress)
  7. // @description:zh-CN 城市速瑞快递打包视频,更正方向、全屏、允许录制、允许开声音
  8. // @author dont-be-evil
  9. // @match https://ct.suruilogistics.com/mobile/users.php?act=out_show*
  10. // @match https://ct.suruilogistics.com/mobile/users.php?act=showDbVideo*
  11. // @match https://open.ys7.com/ezopen/h5/iframe*
  12. // @icon https://www.google.com/s2/favicons?sz=64&domain=suruilogistics.com
  13. // @grant none
  14. // @run-at document-start
  15. // @license GPLv3
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. 'use strict';
  20.  
  21. if (window.location.href.includes("act=out_show")) {
  22. const params = new URLSearchParams(window.location.search);
  23. const order_id = params.get("order_id");
  24. // Intercept the click event on <a> elements with onclick="dbVideo()"
  25. document.addEventListener("DOMContentLoaded", function () {
  26. document.querySelectorAll("a[onclick*='dbVideo']").forEach(anchor => {
  27. anchor.addEventListener("click", function (event) {
  28. event.preventDefault(); // Stop original function
  29. event.stopPropagation();
  30. // Redirect to the second page
  31. window.location.href = `https://ct.suruilogistics.com/mobile/users.php?act=showDbVideo&outcomeId=${order_id}`;
  32. });
  33. });
  34. });
  35. } else if (window.location.href.includes("act=showDbVideo")) {
  36. // Wait for page to load, then redirect again
  37. window.addEventListener("load", function () {
  38. const video_url = document.getElementById("ysopen")?.src;
  39. if (video_url) {
  40. window.location.href = video_url;
  41. }
  42. });
  43. } else if (window.location.href.includes("ezopen")) {
  44. const params = new URLSearchParams(window.location.search);
  45. const begin_at = params.get("begin");
  46. const end_at = params.get("end");
  47.  
  48. function wait_stream() {
  49. try {
  50. const frame = document.getElementById("iframe-btn-container");
  51. frame.style.removeProperty('display');
  52. const toolbar = document.getElementById("iframe-btn-container");
  53. const open_sound = document.createElement("button");
  54. open_sound.textContent = "Open sound";
  55. open_sound.style.marginLeft = "1rem";
  56. open_sound.style.width = "3rem";
  57. open_sound.style.height = "2rem";
  58. open_sound.onclick = () => {
  59. if (open_sound.textContent === "Open sound") {
  60. decoder.openSound();
  61. open_sound.textContent = "Close sound";
  62. } else {
  63. decoder.closeSound();
  64. open_sound.textContent = "Open sound";
  65. }
  66. };
  67. toolbar.appendChild(open_sound);
  68. } catch (error) {
  69. setTimeout(wait_stream, 50);
  70. }
  71. }
  72.  
  73. wait_stream();
  74. }
  75.  
  76. })();

QingJ © 2025

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