您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects Dailymotion to embedded videos
// ==UserScript== // @name Embed Dailymotion // @match *://www.dailymotion.com*/* // @grant none // @version 1.0 // @author elor1 // @description Redirects Dailymotion to embedded videos // @icon https://www.google.com/s2/favicons?domain=www.dailymotion.com // @namespace https://greasyfork.org/users/1012230 // ==/UserScript== function test(url){ return !!url.match(/^(|http(s?):\/\/)(|www.)dailymotion.com\/video(\/.*|$)/gim); } function getNewPage(url){ const myArray = url.split("com"); return myArray[0] + "com/embed" + myArray[1]; } if(test(window.location.href)){window.location.assign(getNewPage(window.location.href));}