Code update

This commit is contained in:
tom5079
2022-01-20 15:35:49 +09:00
parent 47abbfe35b
commit 2ac8bbf36d
4 changed files with 9 additions and 3 deletions

View File

@@ -61,4 +61,10 @@ function do_search(query) {
put_results_on_page();
}
});
}
function replace_jpg_tn(tn) {
if (tn.endsWith('jpg')) tn = tn.replace('bigtn', 'webpbigtn').replace(/jpg$/, 'webp');
return `https:${tn}`
}