Skip to content

Instantly share code, notes, and snippets.

@CEBracco
Last active October 8, 2020 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CEBracco/bd0a6cf7b548dd865e7592390b340e20 to your computer and use it in GitHub Desktop.
Save CEBracco/bd0a6cf7b548dd865e7592390b340e20 to your computer and use it in GitHub Desktop.
// ==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