Skip to content

Commit

Permalink
Update actapublica_tweak.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rasasak authored Aug 7, 2021
1 parent 9d7bacf commit f079fce
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion actapublica_tweak.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Actapublica tweak
// @version 0.4.1
// @version 0.5.0
// @downloadURL https://github.com/rasasak/MZA_tweak/raw/main/actapublica_tweak.user.js
// @updateURL https://github.com/rasasak/MZA_tweak/raw/main/actapublica_tweak.user.js
// @description Malá vylepšení pro web MZA...
Expand Down Expand Up @@ -36,4 +36,16 @@ $(document).ready(function() {

//delete minimap
$("[id^='navigator-']").remove()

//dezoomify button
var dezoomify_url = $('#pill_images script').text()
dezoomify_url = dezoomify_url.split(";")
dezoomify_url = dezoomify_url[8].split(",")
dezoomify_url = dezoomify_url[1].replaceAll('"','')
dezoomify_url = dezoomify_url.replaceAll('\\','')
dezoomify_url = "https://dezoomify.ophir.dev/dezoomify/dezoomify.html#"+dezoomify_url

$('#seadragon-toolbar .form-group').after(`<a href="`+dezoomify_url+`" target="_blank" id="download" type="button" class="btn btn-light mr-1" title="Stáhnout (Dezoomify)" style="display: inline-block; position: relative;">
<i class="fas fa-cloud-download-alt"></i>
</a>`)
});

0 comments on commit f079fce

Please sign in to comment.