<script>
$(function(){
$('.main-main-right-main-main a').each(function(index,element){
const href = $(element).attr('href');
const suffix_array = href.split('.');
const suffix = suffix_array[suffix_array.length - 1];
const date = new Date().toLocaleDateString();
$(element).prop('download',date+"."+suffix);
$(element).attr('href',window.location.origin+href);
})
})
</script>
网友评论