-
-
Save DoublePipe/c54acced73f8d9a7cf5f5b1c2e59a12a to your computer and use it in GitHub Desktop.
This file contains 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
// ==UserScript== | |
// @name Derpibooru Tag Name Change | |
// @include https://derpibooru.org/* | |
// @include https://trixiebooru.org/* | |
// @version 1.0.2 | |
// @grant none | |
// ==/UserScript== | |
const tags = { | |
'busty applejack': 'applerack', | |
'busty minuette': 'curvegate', | |
}; | |
function replaceName(el) { | |
if (tags.hasOwnProperty(el.textContent)) el.textContent = tags[el.textContent]; | |
} | |
[...document.querySelectorAll('.tag__name')].forEach(replaceName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment