Skip to content

Instantly share code, notes, and snippets.

@niamu
Last active June 8, 2022 03:27
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 niamu/02c59f4e6611616ce8c4c3bc9b1562e7 to your computer and use it in GitHub Desktop.
Save niamu/02c59f4e6611616ce8c4c3bc9b1562e7 to your computer and use it in GitHub Desktop.
A Dribbble bookmarklet to replace signup links to actual shot links
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