Skip to content

Instantly share code, notes, and snippets.

Avatar
🐕‍🦺
woof

Evan Boehs boehs

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

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.

F&Q

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
// www.plotaroute.com##+js(plotARoutePremium)
document.addEventListener("DOMContentLoaded", () => {
enablePremFeat()
console.log('if you are seeing this, everything went well')
})
View getyourselfbanned.js
{
const apiPrefix = 'https://discord.com/api/v9'
var delay = ms => new Promise(res => setTimeout(res, ms))
var qs = obj =>
Object.entries(obj)
.map(([k, v]) => `${k}=${v}`)
.join('&')
const apiCall = (apiPath, body, method = 'GET') => {
View index.html
<section>
<header>
<h1>Hi<wbr>ra<wbr>ga<wbr>na</h1>
<h2>some japanese chars</h2>
</header>
<div class="table-wrapper">
<table>
<tr>
<th></th>
<th>a</th>
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"]
View keybase.md

Keybase proof

I hereby claim:

  • I am boehs on github.
  • I am ewwn (https://keybase.io/ewwn) on keybase.
  • I have a public key ASDUL91Kx9ukmOAXjc2ddaeaarjHMHw19qHjCaQXxE7iPQo

To claim this, I am signing this object: