Last active
June 8, 2022 03:27
-
-
Save niamu/02c59f4e6611616ce8c4c3bc9b1562e7 to your computer and use it in GitHub Desktop.
A Dribbble bookmarklet to replace signup links to actual shot links
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
javascript:(function(){ | |
function replace() { | |
document.querySelectorAll("a[data-subject-id]").forEach( | |
function(e) { | |
e.href = "/shots/" + e.dataset.subjectId; | |
e.removeAttribute("data-signup-trigger"); | |
var old_element = e; | |
var new_element = old_element.cloneNode(true); | |
old_element.parentNode.replaceChild(new_element, old_element); | |
} | |
); | |
} | |
replace(); | |
Dribbble.EventBus.$on("infiniteScroll:appendedMore", function() { | |
replace(); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment