Skip to content

Commit

Permalink
Disable Facebook link tracking (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva authored and sindresorhus committed Jun 12, 2017
1 parent d42762f commit d3e7238
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const path = require('path');
const fs = require('fs');
const URL = require('url').URL;
const electron = require('electron');
const electronLocalShortcut = require('electron-localshortcut');
const log = require('electron-log');
Expand Down Expand Up @@ -233,6 +234,10 @@ app.on('ready', () => {
e.newGuest = new electron.BrowserWindow(options);
}
} else {
if (url.startsWith('https://l.messenger.com/l.php')) {
url = new URL(url).searchParams.get('u');
}

electron.shell.openExternal(url);
}
});
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ On *macOS*, you can toggle the window vibrancy effect in the `View` menu.

You can choose to prevent people from knowing when you've seen a message or are currently typing. Both options are available under the `Caprine`/`File` menu.

### Prevents link tracking

Links that you click on will not be tracked by Facebook.

### Jump to conversation hotkey

You can switch conversations similar to how you switch browser tabs: <kbd>Cmd/Ctrl</kbd> <kbd>n</kbd> (where `n` is `1` through `9`).
Expand Down

0 comments on commit d3e7238

Please sign in to comment.