您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sleazy Fork is available in English.
Make videos on oreno3d link directly to iwara
// ==UserScript== // @name EasyOreno // @namespace Violentmonkey Scripts // @match https://oreno3d.com/* // @grant none // @license MIT // @version 1.0 // @author - // @description Make videos on oreno3d link directly to iwara // ==/UserScript== function swapHref() { const mainGrid = document.querySelector("body > div.container > main > div > div.g-main-grid").querySelectorAll("article") const domParser = new DOMParser(); for (var i = 0; i < mainGrid.length; i++){ childLink = mainGrid[i].querySelector("a").getAttribute("href"); (function(index) { fetch(childLink) .then(response => response.text()) .then(sourceHTML => { const HTMLPage = domParser.parseFromString(sourceHTML, "text/html"); iwaraLink = HTMLPage.querySelector('a[href*="' + "iwara" + '"]').href; mainGrid[index].querySelector("a").href = iwaraLink; }) .catch(error => { console.error(`Error for URL ${index}:`, error); }); })(i); } } try{ swapHref(); } catch(error) {}