Create a gist now

Instantly share code, notes, and snippets.

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();
@brianherman

You mispelled 2. You may need to login.

@chengyin
Owner

Thanks @brianherman, fixed.

@erigentry

Thanks @chengyin. That's literally the first time I've used the Javascript console and found your instructions super easy.

@d3mcfadden

πŸ‘

@rileyteige

My inbox thanks you.

@chamblin

Awesome.

@niveditc

Thanks :D Good job!

@rordaz

tHANKS !

@dillera

thx

@jchatard

Awesome! Thanks!

@geekgonecrazy

Sweet! Thanks!

@emadow

+1

@thoughtpalette

Thanks!

@nvk

+1

@javajosh

Nicely done. Handy.

@spacenick

You just changed my life; thank you very much

@connor

🍺

@miguelrochefort

Rename this to LinkedOut.

@chengyin
Owner

@miguelrochefort done. brilliant.

@larrybolt

πŸ‘ Linkedin should have added an easier way to do this!

@jpittman

Brilliant. Thank you.

@skyebook

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

@chengyin
Owner

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

@rravu3

+1

@JustinAiken

🍺

@edap

thanks

@thebillywayne

You're my hero.

@zcbenz

🍻

@oneman

chengyin knows about JS Console!

@paulschreiber

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

@ghost

Amazing... Thanks!!!

@gauthamses

Thanks

@jbrooksuk

My inbox sends you ❀️ and a πŸͺ.

@spamr

<3

@dakull

awesome

@montchr

πŸ‘

@fordarnold

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