Skip to content

Instantly share code, notes, and snippets.

@chengyin
Last active July 11, 2021 15:23
Show Gist options
  • Save chengyin/7021086 to your computer and use it in GitHub Desktop.
Save chengyin/7021086 to your computer and use it in GitHub Desktop.
Unsubscribe all LinkedIn email in "one click". For an easier to use version, you can check out the bookmarklet: http://chengyin.github.io/linkedin-unsubscribed/
// 1. Go to page https://www.linkedin.com/settings/email-frequency
// 2. You may need to login
// 3. Open JS console
// ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers))
// 4. Copy the following code in and execute
// 5. No more emails
//
// Bookmarklet version:
// http://chengyin.github.io/linkedin-unsubscribed/
$('.settings li select:has(option[value=never])').val('never');
$('.settings li select:has(option[value=WEB])').val('WEB');
$('.settings li select:has(option[value=NEVER])').val('NEVER');
$('.settings li select:has(option[value=NONE])').val('NONE');
$('.settings li select:has(option[value=false])').val('false');
$('input[type=submit]').prop('disabled', false).click();
@jpittman
Copy link

Brilliant. Thank you.

@skyebook
Copy link

Accepted Invitations doesn't take the setting for some reason, even though it should be covered since it uses the EMAIL/WEB enumeration.

@chengyin
Copy link
Author

@skyebook as far as I can see it is a bug/feature of theirs.

@rravu3
Copy link

rravu3 commented Oct 17, 2013

+1

@JustinAiken
Copy link

🍺

@edap
Copy link

edap commented Oct 17, 2013

thanks

@exergonic
Copy link

You're my hero.

@zcbenz
Copy link

zcbenz commented Oct 18, 2013

🍻

@oneman
Copy link

oneman commented Oct 18, 2013

chengyin knows about JS Console!

@paulschreiber
Copy link

"You may need to login" --> You may need to log in. (Login is a noun, log in is a verb.)

Copy link

ghost commented Oct 18, 2013

Amazing... Thanks!!!

@gauthamses
Copy link

Thanks

@jbrooksuk
Copy link

My inbox sends you ❤️ and a 🍪.

@brunsgaard
Copy link

+1

@spamr
Copy link

spamr commented Oct 18, 2013

<3

@bzmw
Copy link

bzmw commented Oct 18, 2013

+1!

@marianposaceanu
Copy link

awesome

@montchr
Copy link

montchr commented Oct 27, 2013

👍

@fordarnold
Copy link

Just tried it... Nice! I was sick of those LinkedIn emails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment