Skip to content

Instantly share code, notes, and snippets.

Embed
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*="href.li"]').each(function() {
let originalURL = $(this).attr('href');
let replaceURL = originalURL.replace('https://href.li/?', '').replace(/\?b\=.+$/, '');
$(this).attr('href', replaceURL);
});
});
@trey
Copy link
Author

trey commented Feb 21, 2021

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