Last active
May 8, 2025 11:25
-
-
Save quanon/0481bb4fd719fded6d41cca0df26d077 to your computer and use it in GitHub Desktop.
Check if there is a link at Jun Aramaki's Yo-Yo Collection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
'use strict'; | |
const blocks = document.querySelectorAll('.wp-block-gallery .wp-block-image'); | |
Array.from(blocks).forEach((block) => { | |
const link = block.querySelector(`a[href^="${window.location.href}"]`); | |
if (link) { | |
const caption = block.querySelector('.wp-element-caption'); | |
const name = caption.innerText; | |
caption.innerText = `🔗 ${name}`; | |
} | |
}); | |
})(); |
Author
quanon
commented
May 8, 2025
- 荒牧淳のヨーヨーコレクション - Jun Aramaki's Yo-Yo Collection
To use user-scripts, install extensions such as Tampermonkey (Chrome) or Greasemonkey (Firefox).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment