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
MIT License | |
Copyright (c) 2021 Jed Fox | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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 Messenger Native Emoji | |
// @namespace http://jedfox.com/ | |
// @version 1.0 | |
// @description Use native emoji on Messenger | |
// @author Jed Fox | |
// @match *://*.messenger.com/* | |
// @grant GM_addScript | |
// ==/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
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
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
load( | |
'https://charcoal-se.org/userscripts/vendor/debug.min.js', | |
[ | |
'https://cdn.rawgit.com/joewalnes/reconnecting-websocket/fd7c819bb15eeee3452c17e317c0a3664c442965/reconnecting-websocket.min.js', | |
'https://charcoal-se.org/userscripts/autoflagging/autoflagging.user.js' | |
], | |
'https://charcoal-se.org/userscripts/fire/fire.user.js', | |
[ | |
'https://charcoal-se.org/userscripts/vendor/actioncable.min.js', | |
'https://charcoal-se.org/userscripts/sds/sds.user.js' |
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
export default function(context) { | |
const fileSource = context.eslint.sourceCode.text | |
return { | |
ImportDeclaration(node) { | |
const idx = node.parent.body.indexOf(node) | |
const line = node.loc.start.line | |
if (idx > 0) { | |
const prevNode = node.parent.body[idx - 1] | |
if (line - prevNode.loc.end.line < 2) { |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks |
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
export default function (babel) { | |
const { types: t } = babel; | |
return { | |
visitor: { | |
CallExpression(path) { | |
if (!t.isMemberExpression(path.node.callee) | |
|| path.node.callee.object.name !== 'log') { | |
return | |
} |
A Babel plugin to inline methods on array literals.
Warning: If you have getters on objects in arrays, this could be lossy.
Example:const x = { get a () { someSideEffect(); return 2 } }; [x.a].length; // transforms to
NewerOlder