Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Facebook link tracking #226

Merged
merged 3 commits into from
Jun 12, 2017
Merged

Disable Facebook link tracking #226

merged 3 commits into from
Jun 12, 2017

Conversation

kevva
Copy link
Contributor

@kevva kevva commented Jun 8, 2017

Fixes #224.

index.js Outdated
@@ -222,6 +223,10 @@ app.on('ready', () => {
e.newGuest = new electron.BrowserWindow(options);
}
} else {
if (url.includes('://l.messenger.com/l.php')) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use if (url.startWith('https://l.messenger.com/l.php')) {? I'm pretty sure Facebook only uses HTTPS.

index.js Outdated
@@ -222,6 +223,10 @@ app.on('ready', () => {
e.newGuest = new electron.BrowserWindow(options);
}
} else {
if (url.includes('://l.messenger.com/l.php')) {
url = urlMod.parse(url, true).query.u;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Fixed!

@sindresorhus
Copy link
Owner

Can you add this feature to the readme?

@sindresorhus sindresorhus merged commit d3e7238 into master Jun 12, 2017
@sindresorhus sindresorhus deleted the disable-link-tracking branch June 12, 2017 23:54
@sindresorhus
Copy link
Owner

Thanks Kevin. As a bonus this also makes the links open much faster, since there's no longer a slow redirect.

@kevva
Copy link
Contributor Author

kevva commented Jun 13, 2017

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants