initial commit
Signed-off-by: Martin Matous <m@matous.dev>
This commit is contained in:
commit
c4c0be94b0
7 changed files with 82 additions and 0 deletions
9
unf.js
Normal file
9
unf.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
const galleryElements = document.body.querySelectorAll('a.image.lightbox')
|
||||
for (const elem of galleryElements) {
|
||||
const thumb = elem.querySelector('img.thumbimage.lazyload')
|
||||
const src = thumb.getAttribute('data-src')
|
||||
const needle = '/latest'
|
||||
const fullImage = src.substring(0, src.indexOf(needle) + needle.length)
|
||||
elem.setAttribute('href', fullImage)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue