Last active
October 3, 2020 21:00
-
-
Save nhoizey/f681a2982b450b1d1756bf410b786821 to your computer and use it in GitHub Desktop.
Remove faves from gallery pages
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(){((document)=>{document.querySelectorAll('.engagement-item.fave.faved').forEach(row=>{row.closest('.photo-list-gallery-photo-view').remove();});})(window.document);})(); |
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
// Run this on a gallery page | |
((document) => { | |
document.querySelectorAll('.engagement-item.fave.faved').forEach(row => { | |
row.closest('.photo-list-gallery-photo-view').remove(); | |
}); | |
})(window.document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment