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 Smiley Face Button | |
// @namespace Violentmonkey Scripts | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
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 Add Smiley Face | |
// @namespace Violentmonkey Scripts | |
// @match http*://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
// Create a div element for the smiley face | |
const smileyDiv = document.createElement("div"); |
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 Replace Yudkowsky with Ludkowsky on Twitter | |
// @namespace Violentmonkey Scripts | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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 New script - github.com | |
// @namespace Violentmonkey Scripts | |
// @match https://github.com/* | |
// @grant none | |
// @version 1.0 | |
// ==/UserScript== | |
function publishGist(button) { | |
if (localStorage.getItem("gistTokenName")) { | |
// get the gist token and publish the gist |
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 publishGist(button) { | |
if (localStorage.getItem("gistTokenName")) { | |
// get the gist token and publish the gist | |
const tokenName = localStorage.getItem("gistTokenName"); | |
const tokenValue = localStorage.getItem("gistTokenValue"); | |
const codeElement = button.nextElementSibling; | |
const gistPayload = { | |
description: "My Gist", | |
public: true, |
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 publishGist(button) { | |
if (localStorage.getItem("gistTokenName")) { | |
// get the gist token and publish the gist | |
const tokenName = localStorage.getItem("gistTokenName"); | |
const tokenValue = localStorage.getItem("gistTokenValue"); | |
const codeElement = button.nextElementSibling; | |
const gistPayload = { | |
description: "My Gist", | |
public: true, |
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 publishGist(button) { | |
if (localStorage.getItem("gistTokenName")) { | |
// get the gist token and publish the gist | |
const tokenName = localStorage.getItem("gistTokenName"); | |
const tokenValue = localStorage.getItem("gistTokenValue"); | |
const codeElement = button.nextElementSibling; | |
const gistPayload = { | |
description: "My Gist", | |
public: true, |
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
javascript:(function() { | |
function extractText(element) { | |
if (element.nodeType === Node.TEXT_NODE) { | |
return element.textContent.trim() + ' '; | |
} | |
if (element.nodeType !== Node.ELEMENT_NODE) { | |
return ''; | |
} | |
let text = ''; | |
for (const child of element.childNodes) { |
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
Setlist for 27th | |
Intro/Outro padding gimmies: | |
- franklins tower | |
- you don’t know how it feels | |
- I know you rider | |
- catfish john | |
- can’t you see | |
- can’t always get what you want |
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 testGenerateImportExport(cipher){ | |
return crypto.subtle.generateKey(cipher, true, cipher.usage).then(function(keys){ | |
if (keys.type === "secret") //only one secret key (e.g. with HMAC) | |
cipher.keys = [keys]; | |
else | |
cipher.keys = [keys.privateKey, keys.publicKey]; | |
var exportProms = []; | |
for (var i = 0; i < cipher.keys.length; i++){ | |
exportProms.push(crypto.subtle.exportKey("jwk", cipher.keys[i])); |