Skip to content

Instantly share code, notes, and snippets.

View Ophuscado's full-sized avatar

Ophuscado Ophuscado

View GitHub Profile
@Ophuscado
Ophuscado / reddit-upvote-downvote-automation.js
Last active September 17, 2022 00:17
Reddit automatisation for clicking on upvote and downvote arrows
// The following script is meant to undo upvotes on Reddit using the JavaScript console.
// You can change its behaviour by modifying the following parameters.
async function main() {
// Arrow modes are "upvote" or "downvote".
var mode = "upvote"
// Arrow states are "true" or "false".
// Click on the "true" arrows to disable them.
// Click on the "false" arrows to enable them.
@Ophuscado
Ophuscado / prime-video-history-removal.js
Last active October 1, 2022 02:20
Amazon automatisation for clicking on all items to delete watched history
// The following script is meant to remove Prime Video history using the JavaScript console.
// Amazon should have a one-click solution...
async function main() {
// Loop over all items loaded in the page
var items = document.querySelectorAll("button._1ovr-S");
for (var i = 0; i < items.length; i++) {
items[i].click();
}
}