Last active
March 18, 2024 16:58
-
-
Save reggi/36b3a54c788243a88b5706fe75fa4916 to your computer and use it in GitHub Desktop.
Greasemonkey / Tampermonkey Scripts
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
// ==UserScript== | |
// @name ebay-preferences | |
// @namespace https://reggi.github.io/ | |
// @version 1.0.0 | |
// @description My ebay preferences | |
// @author Thomas Reggi | |
// @match https://www.ebay.com/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const preOwned = document.querySelector("#x-refine__group__2 > ul > li:nth-child(4) > div > a > div > span > input"); | |
const northAmerica = document.querySelector("#x-refine__group__5 > ul > li:nth-child(4) > div > a > div > span > input"); | |
const acceptsOffers = document.querySelector("#x-refine__group__4 > ul > li:nth-child(4) > div > a > div > span > input") | |
if (!preOwned.checked) preOwned.click(); | |
if (!northAmerica.checked) northAmerica.click(); | |
if (!acceptsOffers.checked) acceptsOffers.click(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment