Tampermonkey script: no, Newegg, I don’t freakin’ want to subscribe

By | February 11, 2025

Over the years I have repeatedly been tripped up by the fact that Newegg‘s checkout form has a mailing list subscribe checkbox which they randomly check by default, so if you forget to uncheck it you get subscribed. I have been subscribed to their list against my will over and over because of this. It’s frankly a mystery to me why they don’t remember when people have unsubscribed and stop resubscribing them, but I guess they think it earns them more in revenue than it drives away in pissed-off customers.

Anyway, now Tampermonkey will uncheck the box for me so I don’t have to remember.

The script is published on Greasy Fork. Here it is here as well:

// ==UserScript==
// @name         Uncheck Newegg Subscribe
// @copyright    2025 Jonathan Kamens
// @license      MIT
// @namespace    http://tampermonkey.net/
// @version      2025-02-11
// @description  Uncheck the checked-by-default Newegg subscription checkbox at checkout
// @author       You
// @match        https://secure.newegg.com/shop/checkout*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=newegg.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let label = document.getElementsByClassName("form-checkbox")[0];
    if (! label) return;
    let input = label.getElementsByTagName("input")[0];
    if (! input) return;
    let title = label.getElementsByTagName("span")[0];
    if (! title) return;
    if (! title.innerText.includes("Subscribe")) return;
    input.checked = false;
})();
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)