Skip to content

Instantly share code, notes, and snippets.

@DoublePipe
Last active March 14, 2017 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DoublePipe/c54acced73f8d9a7cf5f5b1c2e59a12a to your computer and use it in GitHub Desktop.
Save DoublePipe/c54acced73f8d9a7cf5f5b1c2e59a12a to your computer and use it in GitHub Desktop.
// ==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