Last active
October 8, 2020 19:54
-
-
Save CEBracco/bd0a6cf7b548dd865e7592390b340e20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name DownloadStarsMap | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description try to take over the world! | |
// @author You | |
// @match https://strellas.com/kreator/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$('.poster-options .poster-container').first().prepend(`<a class="downloadStarsMap" href="#">Descargar Mapa</a>`) | |
$('.downloadStarsMap').on('click',function(e) { | |
e.preventDefault(); //stop the browser from following | |
window.location.href = $(".img-responsive.stars-map").first().attr("src"); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment