Skip to content

Instantly share code, notes, and snippets.

//start setup
var Discord = require('discord.io');
var logger = require('winston');
var logID = '385518393601556538';
// Configure logger settings
logger.remove(logger.transports.Console);
logger.add(logger.transports.Console, {
colorize: true
});
logger.level = 'debug';
@bob1171
bob1171 / README.md
Last active November 24, 2017 16:30

To use this put in your html document:
<script type="text/javascript" src="https://is.gd/popupjs"></script>
and
<link rel="stylesheet" href="https://is.gd/popupcss">
Then, call popup() with the args as html code that you want to be in the popup.

// ==UserScript==
// @name Scratch Messages Finder
// @namespace scratch.mit.edu/users/bob1171
// @version 1.1
// @description Displays someone's message count
// @author @bob1171
// @match https://scratch.mit.edu/users/*
// @grant none
// ==/UserScript==
var var = var
new (function() {
var ext = this;
var descriptor = {
blocks: [
['b','installed','installed'],
],
url : '' // This is the URL for when someone clicks "learn more"
};
ext._shutdown = function() {
// ==UserScript==
// @name Love-Archiver
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Does cool magic fluffy unicorn kind of stuff.
// @author @TheUltimatum, @bob1171
// @match https://scratch.mit.edu/projects/*
// @grant none
// ==/UserScript==
@bob1171
bob1171 / comment
Last active September 11, 2017 20:24
var p = prompt('where?')
$.ajax({
type: "GET",
url: "https://api.scratch.mit.edu/users/" + p,
success: function(e) {
$.ajax({
type: "POST",
dataType: "html",
url: "/site-api/comments/user/" + p + "/add/",
data: JSON.stringify({
// ==UserScript==
// @name Love-Commenter
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Does cool magic fluffy unicorn kind of stuff.
// @author @TheUltimatum, @bob1171
// @match https://scratch.mit.edu/projects/*
// @grant none
// ==/UserScript==