Skip to content

Instantly share code, notes, and snippets.

Last active February 27, 2021 20:28
What would you like to do?
Remove Tumblr URL cruft.
.tmblr-iframe—app-cta-button {
display: none !important;
$(document).ready(function() {
// Remove Tumblr redirects (inspired by magnusthemes@tumblr)
$('a[href*=""]').each(function() {
let originalURL = $(this).attr('href');
let replaceURL = originalURL.replace('', '').replace(/\?b\=.+$/, '');
$(this).attr('href', replaceURL);
Copy link

trey commented Feb 21, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment