您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
For subscribers to RubyTapas who are tired of having to download every single video, this script will automatically embed the video from the download link.
// ==UserScript== // @name RubyTapas Video Embedder // @namespace https://github.com/habibalamin-userscripts // @include https://rubytapas.dpdcart.com/subscriber/post?id=* // @description:en For subscribers to RubyTapas who are tired of having to download every single video, this script will automatically embed the video from the download link. // @version 0.0.1.20141031182553 // @description For subscribers to RubyTapas who are tired of having to download every single video, this script will automatically embed the video from the download link. // ==/UserScript== (function embedVideo() { var files = document.getElementById('blog-container'); var links = files.getElementsByTagName('a'); var contentArea = document.getElementById('main'); contentArea.style.maxWidth = "80%"; var videoLink; for (var i = 0; i < links.length; i++) { if (links[i].textContent.match(/mp4/)) { videoLink = links[i]; break; } } var videoEmbed = document.createElement('video'); var lineBreak = document.createElement('br'); videoEmbed.setAttribute('controls', true); videoEmbed.setAttribute('autoplay', true); videoEmbed.setAttribute('src', videoLink.getAttribute('href')); videoEmbed.setAttribute('id', 'rb-video'); videoEmbed.style.marginLeft = "-20px"; videoEmbed.style.maxWidth = "100%"; videoEmbed.style.width = "100%"; lineBreak.setAttribute('id', 'rb-video-linebreak'); videoLink.parentNode.insertBefore(videoEmbed, videoLink.nextSibling); videoLink.parentNode.insertBefore(lineBreak, videoLink.nextSibling); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址