This file contains 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
//9768 | |
var ran = false; | |
var showGPA = true; | |
var gaugeColor = '#0081c9'; | |
var inSettings; | |
var currentHTML; | |
var col; | |
var gpaInt; | |
var sinceLastChecked; | |
var changes = []; |
This file contains 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 averageRating(arr) { | |
return arr.reduce((a,c,i)=>a+c*(i+1))/arr.reduce((a,c)=>a+c); | |
} | |
// example: averageRating([12, 234, 456, 767, 566]) => 3.8... |
This file contains 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
/* | |
* Author : https://github.com/Andrew-9 | |
* Description : Quizlet Scatter Cheat, works in 0.0 seconds. | |
************************************************************************ | |
* Note: This only works in microscatter before you have start the game | |
************************************************************************ | |
*/ | |
// Click the start button | |
document.getElementsByClassName("UIButton--hero")[0].click(); |
This file contains 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
var last={x: null,y: null}; | |
document.addEventListener("touchstart", e => { | |
let touch = e.touches[0]; | |
last.x = touch.clientX; | |
last.y = touch.clientY; | |
}); | |
document.addEventListener("touchend", e => { | |
let touch = e.changedTouches[0]; | |
let diff = {x:last.x-touch.clientX,y:last.y-touch.clientY}; | |
if (Math.abs(diff.x) > Math.abs(diff.y)) { |
This file contains 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
// Shifts an alphabetic string (e.i. 'a' --> 'b') | |
// The 'str' argument is the string to pass in | |
// 'n' is the number of characters that should be shifted | |
// Supports shifting either forwards or backwards any amount | |
// Example: | |
// Input: shift('Ebiil, Tloia!', 3); | |
// Expected Output: "Hello, World!" | |
// Takes into account capital letters, lowercase letters, ignores non-alphabetic characters | |
function shift(str, n) { |