Skip to content

Instantly share code, notes, and snippets.

@friendlyanon
friendlyanon / CleanDownloadGamePS3.user.js
Created February 18, 2017 17:24
Clean DownloadGamePS3
// ==UserScript==
// @name Clean DownloadGamePS3
// @namespace intermission
// @include http://downloadgameps3.com/*
// @version 1
// @run-at document-start
// @grant none
// ==/UserScript==
(function(){
@friendlyanon
friendlyanon / .gitignore
Last active May 10, 2017 18:46
Kizuna avatar
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################
/.vs
@friendlyanon
friendlyanon / Dark_theme_-_jsbench.me.user.js
Created September 21, 2017 16:28
jsBench.me Dark theme
// ==UserScript==
// @name Dark theme - jsbench.me
// @namespace intermission
// @match https://jsbench.me/*
// @version 1
// @run-at document-start
// @grant none
// ==/UserScript==
const animName = "jsBenchNodeInserted";
@friendlyanon
friendlyanon / disable_moongourd_alert.user.js
Created November 4, 2017 22:09
Disable popup on moongourd.com
// ==UserScript==
// @name Disable Moongourd alert
// @namespace intermission
// @match *://moongourd.com/*
// @match *://*.moongourd.com/*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==

Sadpanda in discord

  • Copy this piece of text:
javascript:void(prompt("Your ExHentai cookies", document.cookie))
  • Go to exhentai
  • Paste the copied text into the addressbar
  • If what you just pasted is missing javascript: from the beginning then just type it in. It is needed.
  • Press Enter
  • Cut the text from the textbox
@friendlyanon
friendlyanon / worker_addition.js
Last active March 24, 2018 17:24
Worker addition for gif-engine-js
const getDisposals = frameObj => frameObj.graphicExtension && frameObj.graphicExtension.disposalMethod || 0;
const getDelays = frameObj => frameObj.graphicExtension && frameObj.graphicExtension.delay - 1 || 0;
const copyColorsTransparent = async (source, target, fWidth, fHeight, oLeft, oTop, cWidth, flag) => {
for (let row = 0, pointer = -1; fHeight > row; ++row)
for (let column = 0; fWidth > column; ++column) {
let offset = (column + oLeft + (row + oTop) * cWidth) * 4;
if (flag && source[pointer + 4] === 0) {
pointer += 4;
continue;
}
@friendlyanon
friendlyanon / EmList.json
Created October 16, 2017 18:42
Exclusive Method JSON for CFW2OFW Helper v9
[{"titleIds":["BLES01697"],"works":0,"note":"Black screen after intro. [CFW2OFW Helper v8] [PS3GameConvert_V0.91] [Data Install] [SPRX]"},{"titleIds":["BLUS31478"],"works":1,"note":"Works without patch."},{"titleIds":["BLUS30187"],"works":0,"note":"Game has one patch but doesn't contain EBOOT.BIN. UPDATE: Tested with BLJM60066 EBOOT and multiple variations of file structures."},{"titleIds":["BLES01763"],"works":1,"note":"Install Game Data before DTU. Creates \"/game/BLES01767/\" directory."},{"titleIds":["BLES02143"],"works":1,"note":"You must pre-install game data before DTU."},{"titleIds":["BLUS31207"],"works":2,"note":"You must pre-install game data before DTU."},{"titleIds":["BCES01123","NPEA90127","BCUS98298"],"works":2,"note":"BCUS98298 - Requires Demo EBOOT, Edit PARAM.SFO Category from DG Disc Game (blueray) to HG Harddrive Game, Game Conversion not required."},{"titleIds":["BLUS30629"],"works":2,"note":"Copy & replace all 42 .SPRX files located in USRDIR/BINARIES/PS3/XJOB/SHIPPING."},{"titleIds":["BL
function* shrinkGen(s) {
let i = -1, c;
while (c = s.charCodeAt(++i)) yield c << 0 | (s.charCodeAt(++i) || 0) << 8;
}
function shrink(input) {
return String.fromCodePoint(...shrinkGen(input));
}
function* expandGen(str) {
"use strict";
const boxes = new WeakMap;
function Boxes() {
if (!new.target) {
return new Boxes;
}
boxes.set(Object.freeze(this), Object.seal({
list: []
}));