Skip to content

Instantly share code, notes, and snippets.

@cymruu
Created June 3, 2019 11:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cymruu/a8c33d93e16dba7ca7e53dbb34f38397 to your computer and use it in GitHub Desktop.
Save cymruu/a8c33d93e16dba7ca7e53dbb34f38397 to your computer and use it in GitHub Desktop.
MyTramperMonkeyExtenstions
// ==UserScript==
// @name FBUnseen
// @description blocks seen and typing indicator on facebook!
// @author Filip
// @match https://www.facebook.com/*
// @match https://www.messenger.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var openNative = XMLHttpRequest.prototype.open;
var sendNative = XMLHttpRequest.prototype.send;
var blocking = ["/ajax/messaging/typ.php", "/ajax/mercury/change_read_status.php"];
XMLHttpRequest.prototype.open = function ()
{
this.allow = !(blocking.indexOf(arguments[1]) > -1);
return openNative.apply(this, arguments);
}
XMLHttpRequest.prototype.send = function ()
{
if(this.allow) return sendNative.apply(this, arguments);
console.log("BLOCKED REQUST", arguments);
}
})();
// ==UserScript==
// @name InstaUnSeen
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.instagram.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var openNative = XMLHttpRequest.prototype.open;
var sendNative = XMLHttpRequest.prototype.send;
var blocking = ["/stories/reel/seen"];
XMLHttpRequest.prototype.open = function ()
{
this.allow = !(blocking.indexOf(arguments[1]) > -1);
return openNative.apply(this, arguments);
}
XMLHttpRequest.prototype.send = function ()
{
if(this.allow) return sendNative.apply(this, arguments);
console.log("BLOCKED REQUST", arguments);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment