Factorio Mod Downloader

A shortcut script link to https://1488.me/factorio/mods/

Stan na 13-04-2022. 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         Factorio Mod Downloader
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  A shortcut script link to https://1488.me/factorio/mods/
// @author       Q.Z.Lin
// @match        https://mods.factorio.com/mod/*
// @icon         https://wiki.factorio.com/images/thumb/Iron_gear_wheel.png/32px-Iron_gear_wheel.png
// @grant        none
// @require      https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js
// @license MIT
// ==/UserScript==

(function () {
    'use strict';
    let downloadBtn = document.querySelector("body > div.container > div > div.panel.pt0.pb0.mb32 > div.panel-inset-lighter.flex-column.p0 > div.panel-inset.m0.w100.p4 > div > div.text-right.flex.flex-items-center.flex-end > div.btn.mod-download-button.btn-download");
    let directDownload = $(downloadBtn).clone()
    directDownload.children().text("1488me")
    directDownload.children().attr("href","https://1488.me/factorio/mods/#"+window.location.href)
    $(downloadBtn).parent().append(directDownload)
})();

$(window).on("load", function () {
    // Handler when all assets (including images) are loaded
});