FastDL fetcher

Gets FastDL Lua lines to add to your GMOD server

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         FastDL fetcher
// @namespace    http://higherdimensionsgaming.com/
// @version      1.4
// @description  Gets FastDL Lua lines to add to your GMOD server
// @author       [HDG] Mr DeeJayy
// @match        http://steamcommunity.com/sharedfiles/filedetails/?id=*
// @match        https://steamcommunity.com/sharedfiles/filedetails/?id=*
// @grant        none
// ==/UserScript==
var GMOD = $(/Garry\'s Mod/i.test (document.body.innerHTML) );
var ADDON = $(/Subscribe/i.test (document.body.innerHTML) );
var _URL = window.location.href;
var Regex = /\d{5,}/;
var ID = Regex.exec(_URL);
var x = document.getElementsByClassName("example");
if (GMOD) {
    if (ADDON) {
       document.getElementsByClassName("game_area_purchase_margin")[0].innerHTML = document.getElementsByClassName("game_area_purchase_margin")[0].innerHTML + "<div class=\"game_area_purchase_game\"><h1><span>Add to FastDL</span><br><input type=\"text\" value=\"resource.AddWorkshop('" + ID + "')\" style=\"height: 25px;width: 300px;\"></span></h1></div>";
    }
}