This file contains hidden or 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
# ********************************************************************** | |
# * Project: 00-piws-vars * | |
# * Created: 05/06/2018 22:27 * | |
# * Author: Martin Svensson aka ztealmax - pi-workbench.org * | |
# * Info: create in /etc/chromium-browser/customizations/ * | |
# * Note: replaces rpi-chromium-mods * | |
# ********************************************************************** | |
# | |
PICHROMIUMMODS="/etc/chromium-browser/customizations/00-rpi-vars" |
This file contains hidden or 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
const got = require('got'); | |
const crypto = require('crypto'); | |
const querystring = require('querystring'); | |
const JSON5 = require('json5'); // Lazy-parse JSON | |
const URL_BASE = 'https://www18.kickassanime.io'; | |
const SEARCH_URL = `${URL_BASE}/api/anime_search`; | |
const IV_REGEX = /"vt":"(.*?)"/; | |
const KEY_REGEX = /"sig":"(.*?)"/; |
This file contains hidden or 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
class AsyncLoop { | |
constructor(length, looper, cb) { | |
this.i = -1; | |
this.length = length; | |
this.looper = looper; | |
this.callback = cb; | |
this.loop(); | |
} | |
loop() { | |
this.i++; |
NewerOlder