Last active
December 21, 2024 12:59
-
-
Save PSingletary/fdb6e121890e044b6310e8b5fc4039e7 to your computer and use it in GitHub Desktop.
bookmarklet to userscript conversion of Like-bomb
This file contains hidden or 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
// ==UserScript== | |
// @name 💞💣 | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-12-21 | |
// @description like all loaded posts on bsky.app | |
// @author https://PSingletary.me | |
// @license MIT | |
// @downloadURL https://gist.githubusercontent.com/PSingletary/fdb6e121890e044b6310e8b5fc4039e7/raw/0dd909abbe2f71771a53400fff493ab50887914b/like-bomb.js | |
// @updateURL https://gist.githubusercontent.com/PSingletary/fdb6e121890e044b6310e8b5fc4039e7/raw/0dd909abbe2f71771a53400fff493ab50887914b/like-bomb.js | |
// @match https://bsky.app/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app | |
// @grant GM.xmlHttpRequest | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var documentQuery = document.querySelectorAll.bind(document); | |
var hostname = window.location.hostname; | |
var likeButtons = documentQuery("button[aria-label^=\"Like (\"]"); | |
var visibleLikeButtons = [...likeButtons].filter(button => !!button.offsetParent); | |
visibleLikeButtons.forEach(button => button.click()); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment