Created
June 3, 2019 11:23
-
-
Save cymruu/a8c33d93e16dba7ca7e53dbb34f38397 to your computer and use it in GitHub Desktop.
MyTramperMonkeyExtenstions
This file contains hidden or 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 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); | |
} | |
})(); |
This file contains hidden or 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 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