Factorio Mod Downloader

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey 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 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         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
});