Wikipedista:Universator/common.js
Poznámka: Po uložení musíte vyprázdnit mezipaměť vašeho prohlížeče, jinak změny neuvidíte.
$(function() {
//$('#protest-overlay').show();
//$('.close').on('click', function(e){
// $('#protest-overlay').hide();
//})
$('#mw-indicator-coordinates a').each(function(e){
var match = $(this).prop('href').match(/params=([0-9\.]+)_N_([0-9\.]+)/);
if (match !== null) {
var link = 'https://mapy.cz/turisticka?x='+match[2]+'&y='+match[1]+'&z=15&q='+match[1]+'N,'+match[2]+'E&l=16';
$(this).prop('href', link);
}
})
$('.coordinates a').each(function(e){
var match = $(this).prop('href').match(/params=([0-9\.]+)_N_([0-9\.]+)/);
if (match !== null) {
var link = 'https://mapy.cz/turisticka?x='+match[2]+'&y='+match[1]+'&z=15&q='+match[1]+'N,'+match[2]+'E&l=16';
$(this).prop('href', link);
}
})
});