您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
An userscript to embed video, images from links.
当前为
An userscript to embed videos, images from anchor link.
Checkout the module folder. It is welcome to contribute more modules.
A module object should look like:
{
name: "The module name",
global: true, // The module should work globally,
domains: ["example.com"], // or the module will only work on these domains.
getPatterns: function() {
// Return a list of regex object. Only matched urls will be sent to embed function.
return [
// ...
];
},
getEmbedFunction: function() {
// Return an embedding function.
//
// Params:
// 1...n The capturing groups returned by regex pattern. n = groups.length.
// n+1 The url of the link.
// n+2 The text content of the link.
// n+3 The link itself.
// n+4 A replace function.
//
// Usually you can return new element back. If you have to replace element asynchronously,
// send new element to replace function when you are finished.
return function (url, text, node, replace) {
// ...
}
}
}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址