Skip to content

Instantly share code, notes, and snippets.

View SheepTester's full-sized avatar
🐑
Existing

Sean Yen SheepTester

🐑
Existing
View GitHub Profile
@SheepTester
SheepTester / underground-schoology.user.js
Last active December 22, 2022 00:24
Underground Schoology userscript
// ==UserScript==
// @name Underground Schoology
// @namespace https://orbiit.github.io/
// @version pre-1.1.15
// @description A second social media on top of Schoology
// @author Anti-SELF revolutionaries
// @match https://pausd.schoology.com/home
// @grant none
// ==/UserScript==
@SheepTester
SheepTester / bot.html
Created May 21, 2019 17:08
Moofy on a Chromebook
<!DOCTYPE html>
<html lang="en">
<head>
<title>bot</title>
<meta charset="UTF-8">
<meta name="description" content="wow wow wow"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="./discord.stable.min.js" charset="utf-8"></script>
<script src="./token.js" charset="utf-8"></script>
<style>
/* ==UserStyle==
@name Moomath dark theme
@namespace sheeptester.github.io
@version 1.0.0
@license unlicense
==/UserStyle== */
@-moz-document domain("moomath.com") {
html {
color: rgba(255, 255, 255, 0.7);
@SheepTester
SheepTester / README.md
Created August 21, 2019 01:13
F Word backend using Firebase

F Word backend code

I censored some code because I put all my Firebase code in a single file.

You should probably change adminuid to something else should you use this.

Try F Word here.

@SheepTester
SheepTester / render-gui.jsx
Last active April 11, 2024 11:47
To load a project file from a URL for a Scratch 3.0 mod (see comments)
import React from 'react';
import ReactDOM from 'react-dom';
import {compose} from 'redux';
import AppStateHOC from '../lib/app-state-hoc.jsx';
import GUI from '../containers/gui.jsx';
import HashParserHOC from '../lib/hash-parser-hoc.jsx';
import log from '../lib/log.js';
const onClickLogo = () => {
@SheepTester
SheepTester / explainer.md
Created May 4, 2020 19:35
Change speed of Edpuzzle video

Edpuzzle aggressively reverts the playbackRate of a <video> element, so you can't simply change it to increase the speed. Thus, a more aggressive response is necessary to combat it.

Firstly, we get the <video> element:

video = document.querySelector('video')

Then, we get the setter function for the playbackRate property using Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'playbackRate').set. It is called with the <video> element as this and with speed as the new value. This way, the <video> element is properly notified of the speed change by simulating assigning a value to playBackRate directly (ie using =).

@SheepTester
SheepTester / fetch.js
Created May 6, 2020 05:08
Simple Scratch fetch extension
class Fetch {
constructor () {}
getInfo () {
return {
id: 'fetch',
name: 'Fetch',
blocks: [
@SheepTester
SheepTester / event-utils.js
Last active May 18, 2020 21:31
Using for await for listening to events; inspired by Deno's http module
export async function * on (target, ...events) {
const nextPromises = []
let onFire
function addNextPromise () {
addNextPromise.push(new Promise(resolve => (onFire = resolve)))
}
addNextPromise()
function listener (event) {
const ArgumentType = require('../../extension-support/argument-type')
const BlockType = require('../../extension-support/block-type')
class LocalStorage {
constructor () {}
getInfo () {
return {
id: 'localstorage',
name: 'LocalStorage',
@SheepTester
SheepTester / sheep.txt
Last active July 26, 2020 19:40
About me
🐑