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
// Grab all images | |
for(i=0;i<document.images.length;i++) | |
{ | |
// if document.images[i].getAttribute("data-src"){ // If there's a "data-src" attribute on them | |
document.images[i].src = document.images[i].getAttribute("data-src"); // Set the src value to that of the data-src value | |
document.images[i].style.visibility = "visible"; | |
document.images[i].style.opacity = 1; | |
// } | |
} |
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
// Server side NodeJS. | |
var dateFormat = module.exports = {} | |
dateFormat.opts = { | |
day: 'numeric', | |
hour: 'numeric', | |
minute: 'numeric', | |
month: 'long', | |
weekday: 'long', | |
year: 'numeric', | |
timeZoneName: 'long' |
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
# Newline separated badwords filter using Regular expressions | |
assh.* | |
bitch.* | |
chink | |
cunt.* | |
daygo | |
dick.* | |
douche | |
fag.* | |
fatass |
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
// ==UserScript== | |
// @name NovelUpdates Series autoadd | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.novelupdates.com/series/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name HorribleSubs | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://horriblesubs.info/* | |
// @grant none | |
// ==/UserScript== |
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
const {fn: {b32_buf, buf_b32, getOTP}} = require('./totp') | |
const givea = fuck => console.log('%s %j', fuck.length.toString().padStart(4), fuck.toString()) | |
const it = process.hrtime() | |
const rt = ([s,ns] = process.hrtime(it)) => console.log('%ss elapsed', (s+ns/1e9).toFixed(9).padStart(12)) | |
rt() | |
const fucks = Buffer.from('Hi there fucks') | |
givea(fucks) |
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
// ==UserScript== | |
// @name Rainbowfy | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mangadex.org/forum | |
// @match https://mangadex.org/forums | |
// @match https://mangadex.org/forum/* | |
// @match https://mangadex.org/forums/* |
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
Object.defineProperty(self || this, 'addEventListeners', { | |
value: function addEventListeners(target, listeners, opts = {}) { | |
if (listeners === undefined) | |
return addEventListeners(this, target, opts) | |
if ('function' === typeof opts.init) opts.init.call(target) | |
if (opts.addSelf) Object.defineProperty(target, 'string' === typeof opts.addSelf ? opts.addSelf : addEventListeners.name, { | |
enumerate: true, | |
value: addEventListeners | |
}) | |
for (const listener in listeners) |
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
[package] | |
name = "structopt-example" | |
version = "0.1.0" | |
authors = ["Zane Hannan <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
structopt = { version = "0.3.11", features = [ "paw" ] } |