Live data from Hacker News

Unsubscribe from all LinkedIn email in one click

gist.github.com

1–10 of 70 posts

Re: Unsubscribe from all LinkedIn email in one click

#3
post #2

cool idea. Can this be done for many sites? like macros that take advantage of the site's own JS.

I don't think it would be easy to write a global one for every site, but I think it would be cool to make a community-driven unsubscribe script collection.

Re: Unsubscribe from all LinkedIn email in one click

#4
post #2

cool idea. Can this be done for many sites? like macros that take advantage of the site's own JS.

Typically. For example, on reddit you can run this in console to downvote everything on a comment thread:

$.each($(".down.arrow"), function(index, vote){ $(vote).click(); });

Re: Unsubscribe from all LinkedIn email in one click

#5
post #2

cool idea. Can this be done for many sites? like macros that take advantage of the site's own JS.

Typically. For example, on reddit you can run this in console to downvote everything on a comment thread: $.each($(".down.arrow"), function(index, vote){ $(vote).click(); });

Just curious, is there any reason you used `$.each` instead of `$(".down.arrow").each`?

Re: Unsubscribe from all LinkedIn email in one click

#7
post #2

cool idea. Can this be done for many sites? like macros that take advantage of the site's own JS.

I don't think it would be easy to write a global one for every site, but I think it would be cool to make a community-driven unsubscribe script collection.

While there would be some positive aspects of something like that, you'd either have to have it moderated strictly by a trusted moderator or make sure every user understood every line of all code they were executing from the site.

The potential for scripts that did very bad things is immense, especially given how easily you can massively obfuscate JavaScript code.

Re: Unsubscribe from all LinkedIn email in one click

#9

Earlier quoted context omitted.

Typically. For example, on reddit you can run this in console to downvote everything on a comment thread: $.each($(".down.arrow"), function(index, vote){ $(vote).click(); });

Just curious, is there any reason you used `$.each` instead of `$(".down.arrow").each`?

seems like the more functional-style way of doing it

Re: Unsubscribe from all LinkedIn email in one click

#10
post #2

cool idea. Can this be done for many sites? like macros that take advantage of the site's own JS.

Typically. For example, on reddit you can run this in console to downvote everything on a comment thread: $.each($(".down.arrow"), function(index, vote){ $(vote).click(); });

This won't down vote everything. Votes get throttled, so I guess a setTimeout has to be used.
Post reply on HN