Skip to content

Instantly share code, notes, and snippets.

View alexkirsz's full-sized avatar

Alex Kirszenberg alexkirsz

View GitHub Profile
@alexkirsz
alexkirsz / sixth-sense.js
Created May 23, 2016 18:56
Core hook of the Facebook Sixth Sense Chrome extension
function getUserId(fbid) {
return fbid.split(':')[1];
}
requireLazy(
['MercuryTypingReceiver', 'MercuryThreads', 'ShortProfiles'],
(MercuryTypingReceiver, MercuryThreads, ShortProfiles) => {
MercuryTypingReceiver
.get()
@alexkirsz
alexkirsz / facebook-flowers.js
Created June 2, 2016 00:48
Always add flowers to Facebook Messenger
import React, { Component } from 'react';
function compose(ChatMessage, ImmutableObject) {
return class ComposedChatMessage extends Component {
render() {
const message = new ImmutableObject(this.props.message, {
customizations: [
{
customization_type: 'border',
customization_value: 'flowers',
@alexkirsz
alexkirsz / user-script.js
Created October 2, 2016 12:16
Decent OfficeMix player
// ==UserScript==
// @name Decent OfficeMix player
// @version 1.0
// @description Remove paused logo and add keyboard controls to the OfficeMix player
// @author Alexandre Kirszenberg <alexandre.kirszenberg@gmail.com>
// @run-at document-start
// @match https://mix.office.com/embed/*
// @grant none
// ==/UserScript==
@alexkirsz
alexkirsz / tamper.js
Created February 9, 2018 18:18
Tamper with Facebook's draft editor
// ==UserScript==
// @name Facebook Tamper
// @version 0.1
// @author Alexandre Kirszenberg
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
(function() {
function compose(React, ContentState, EditorState, DraftEditor) {