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 Open Instagram App | |
| // @version 1.0.0 | |
| // @author beebeo | |
| // @match *://*.instagram.com/* | |
| // @downloadURL https://gist.github.com/beebeo/7b454b776577d7c0ac9c91a054cf50cb/raw/open-instagram-app.user.js | |
| // @updateURL https://gist.github.com/beebeo/7b454b776577d7c0ac9c91a054cf50cb/raw/open-instagram-app.user.js | |
| // @homepage https://gist.github.com/beebeo/7b454b776577d7c0ac9c91a054cf50cb/ | |
| // ==/UserScript== |
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
| function FacebookAPI (path, data) { | |
| return new Promise(callback => { | |
| new AsyncRequest() | |
| .setURI(path) | |
| .setMethod("POST") | |
| .setData(data || {}) | |
| .setFinallyHandler((d) => callback(d.payload.payload)) | |
| .send(); | |
| }) | |
| } |
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
| var uid = window.require('CurrentUserInitialData').ACCOUNT_ID | |
| window.requireLazy(['MWV2ChatText.bs', 'MqttProtocolClient'], (MWV2ChatText, protocolClient) => { | |
| const publish = protocolClient.prototype.publish | |
| protocolClient.prototype.publish = function () { | |
| let args = arguments[1] | |
| let data = safeParse(args) | |
| if (args && data) { | |
| if (opt.block_typing && data.type === 4 && data.payload && data.payload.includes('is_typing')) { | |
| data.payload = safeParse(data.payload) | |
| data.payload.payload = safeParse(data.payload.payload) |