Last active
January 9, 2017 16:47
-
-
Save naure/4d3190cdb204abea816f0451808aa331 to your computer and use it in GitHub Desktop.
Go directly to facebook messages, avoiding the feed time sink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Nope facebook", | |
"description": "Go directly to messages, avoiding the feed time sink.", | |
"version": "1.0", | |
"content_scripts": [ | |
{ | |
"matches": ["https://www.facebook.com/"], | |
"js": ["nope_facebook.user.js"] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bypass facebook feed and go directly to messages | |
// @namespace naure | |
// @include https://www.facebook.com/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
if(location.pathname === "/") { | |
// You went straight to the main feed? Nope. | |
window.stop(); | |
document.body.innerHTML="<br/> <i>Going straight to messages…</i>" | |
location.pathname = "/messages/"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment