Skip to content

Instantly share code, notes, and snippets.


Evan Boehs boehs

View GitHub Profile
View enable-canvas-totals.js
// ==UserScript==
// @name Bypass "Calculation of totals has been disabled" for canvas
// @namespace
// @match https://**/grades
// @grant none
// @version 1.1.0
// @author Evan Boehs
// @description Calculates totals when canvas doesn't want to
// @supportURL
// @license GPL-3.0-only
boehs /
Created Aug 26, 2022
Make discord think you have spotify premium

Spotify premium discord features free

Discord has a number of features related to music streaming that are "exclusively" available for spotify premium members. Notably, listening parties. To restrict these features to spotify premium, discord runs a few premium checks that we can overwrite.


Why does this work? Shouldn't discord not have these permissions for non premium members, just like every other app?

Discord has the ability to control the playback of music for non premium members so they can pause the music on spotify if they are talking too long in a voice call. Spotify could have exclusively granted permission to pause music, instead of playing, pausing, changing songs, etc, but they did not, presumably because they did not have the fine grained control and did not care enough to implement it.

View ublock scriptlets.js
// plotARoutePremium.js
document.addEventListener("DOMContentLoaded", () => {
console.log('if you are seeing this, everything went well')
View getyourselfbanned.js
const apiPrefix = ''
var delay = ms => new Promise(res => setTimeout(res, ms))
var qs = obj =>
.map(([k, v]) => `${k}=${v}`)
const apiCall = (apiPath, body, method = 'GET') => {
View index.html
<h2>some japanese chars</h2>
<div class="table-wrapper">
View jsonBlog.js
let d = [{
"title": "post one",
"date": 1627421886,
"content": "lorum ipsut"
"title": "post two",
"date": 1727421886,
"content": "lorum ipsut dolar",
"tags": ["a", "b", "c"]

Keybase proof

I hereby claim:

  • I am boehs on github.
  • I am ewwn ( on keybase.
  • I have a public key ASDUL91Kx9ukmOAXjc2ddaeaarjHMHw19qHjCaQXxE7iPQo

To claim this, I am signing this object: