PineappleeaHacker

替换页面中的github链接改为下载地址直连

Stan na 12-04-2021. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name           PineappleeaHacker
// @namespace      https://pineappleea.github.io/
// @description    替换页面中的github链接改为下载地址直连
// @include        https://pineappleea.github.io/*
// @version 0.0.1.202104122200
// ==/UserScript==

var sites = [
    {
        domain: 'pineappleea.github.io',
        handler: function() {
            var source_link_node = document.getElementsByClassName('scrollbox')[0].getElementsByTagName('a');
          for(var i =0;i< source_link_node.length;i++)
          {
            var ti = source_link_node[i].text.replace('Yuzu EA ','') ;
            var dl ="https://github.wuyanzheshui.workers.dev/pineappleEA/pineapple-src/releases/download/EA-"+ ti+ "/Windows-Yuzu-EA-"+ti+".7z" 
            source_link_node[i].setAttribute('href',dl);

          }
        }
    }
    
];

var url = document.URL;
var i, site;
for (i = 0; i < sites.length; i += 1) {
    site = sites[i];
    if (url.indexOf(site.domain) != -1) {
        site.handler();
        break;
    }
}