EasyOreno

Make videos on oreno3d link directly to iwara

19.05.2023 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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) {}