Skip to content

Instantly share code, notes, and snippets.

@reggi
Last active March 18, 2024 16:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reggi/36b3a54c788243a88b5706fe75fa4916 to your computer and use it in GitHub Desktop.
Save reggi/36b3a54c788243a88b5706fe75fa4916 to your computer and use it in GitHub Desktop.
Greasemonkey / Tampermonkey Scripts
// ==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