Skip to content

Instantly share code, notes, and snippets.

@nicolas-t
Last active January 17, 2017 03:03
Show Gist options
  • Save nicolas-t/6007522 to your computer and use it in GitHub Desktop.
Save nicolas-t/6007522 to your computer and use it in GitHub Desktop.
Block facebook's "read status" notification on chat. Your contact won't know if you read his message or not.
// ==UserScript==
// @name Facebook read status
// @description block facebook's "read status" notification on facebook chat.
// @namespace frs
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// @grant none
// @version 1
// ==/UserScript==
(function() {
var proxy = window.XMLHttpRequest.prototype.open;
window.XMLHttpRequest.prototype.open = function() {
if( arguments[1] !== '/ajax/mercury/change_read_status.php') {
return proxy.apply(this, [].slice.call(arguments));
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment