Range Start | Range End | Java Version |
---|---|---|
1.18 | 1.19.4 | 17 |
1.17 | 1.17.1 | 16 |
1.0 | 1.16.5 | 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
// 'beforescriptexecute' event with loadPayloadSync | |
// original version: https://gist.github.com/jspenguin2017/cd568a50128c71e515738413cd09a890 | |
;(function () { | |
'use strict'; | |
class Event { | |
constructor(script, target) { | |
this.script = script; | |
this.target = target; |
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
Promise = new Proxy(Promise, { | |
construct(target, args) { | |
let p = new target(...args) | |
p.fulfilled = false; | |
p.then(()=>p.fulfilled = true) | |
p.catch(()=>p.fulfilled = true) | |
return p; | |
} | |
}) |
This file has been truncated, but you can view the full file.
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
mail2 | |
www | |
ns2 | |
ns1 | |
blog | |
localhost | |
m | |
ftp | |
mobile |
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
// Add a webpack module to get the module export cache | |
(webpackChunk_twitter_responsive_web.push([[''],{},e=>{ | |
window.moduleCache = []; | |
for(let c in e.c) { | |
window.moduleCache.push(e.c[c]); | |
} | |
}])); | |
// Find API definitions in the module cache | |
window.moduleCache.filter(x=> typeof x.exports == "object" && "queryId" in x.exports).map(x=>[x.exports.operationName,x.exports.queryId]) |
Array.up() and Array.down() let you do semi-basic array processing without nesting Array.map() calls.
This is a silly thing I made in 20 minutes because I thought it would be cursed. You probably shouldn't actually use it.
Somewhat inspired by vectorized functions in python.
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
// go to grade graph page and paste into console to hide own grade for screenshots | |
document.querySelector(".yourgrade").remove() | |
Chart.instances[0].data.datasets[0].backgroundColor.fill("#0068b3") | |
Chart.instances[0].update() |