Skip to content

Instantly share code, notes, and snippets.

@nicolas-t
Last active January 17, 2017 03:03
Show Gist options
  • Select an option

  • Save nicolas-t/6007522 to your computer and use it in GitHub Desktop.

Select an option

Save nicolas-t/6007522 to your computer and use it in GitHub Desktop.

Revisions

  1. nicolas-t revised this gist Jul 16, 2013. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions facebook-read-status.user.js
    Original file line number Diff line number Diff line change
    @@ -9,10 +9,10 @@
    // ==/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));
    }
    };
    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));
    }
    };
    })();
  2. nicolas-t created this gist Jul 16, 2013.
    18 changes: 18 additions & 0 deletions facebook-read-status.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    // ==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));
    }
    };
    })();