Skip to content

Instantly share code, notes, and snippets.

Avatar
🤒
Out sick

heape

🤒
Out sick
View GitHub Profile
View HELLO rich man
https://mega.nz/file/qtwixaBC#cJ3mJ-oOtkOMrLeI01E3NQ1E9FzXDS0Jz71VYG2tCSs
View -3923-24390-fmpaefa.js
var all = document.getElementsByTagName("*");
var dummy = document.body.appendChild(document.createElement('div')); // block
var style = window.getComputedStyle(dummy);
for(let i = 0; i < style.length; i++)
pageObj.DOM.default.style[style[i]] = style.getPropertyValue(style[i]);
for (let i = 0; i < all.length; i++) {
if(all[i].tagName === 'HEAD' || all[i].parentElement == document.head) {
// console.log('skipped');
@heape
heape / hentai_pooky.js
Created Dec 8, 2019
Hentai Pooky for Supreme TEST #001
View hentai_pooky.js
const util = require('./util.js'); // Download: https://gist.github.com/heape/f1327199405ad2f847ace1c3b07113ce
const url = require('url');
const path = require('path');
const puppeteer = require('puppeteer-extra');
const stealth = require('puppeteer-extra-plugin-stealth');
const sleep = ms => new Promise((r, j) => setTimeout(r, ms));
(async() => {
const userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36';
@heape
heape / request.cs
Last active Nov 1, 2019
C# Http Request Wrapper (NOOB)
View request.cs
private async Task<HttpResponseMessage> Request(string url, HttpMethod method, Dictionary<string, string> headers, string body)
{
HttpClientHandler clientHandler = new HttpClientHandler();
clientHandler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
clientHandler.Proxy = null;
clientHandler.UseProxy = false;
clientHandler.UseCookies = false;
clientHandler.AllowAutoRedirect = false;
@heape
heape / util.js
Created Oct 27, 2019
util.js for React + Electron
View util.js
const http = require('http'),
https = require('https'),
iconv = require('iconv-lite'),
zlib = require('zlib');
const sleep = ms => new Promise((r, j) => setTimeout(r, ms));
const randRange = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
const str2doc = str => {
let parser = new DOMParser();
return parser.parseFromString(str, "text/html");
@heape
heape / Twitterいいね!回しスクリプト.js
Last active Oct 23, 2019
Twitterいいね!回しスクリプト
View Twitterいいね!回しスクリプト.js
/*
ブラウザのコンソール入力。 API制限有るので、ほどほどに!
*/
window['resetScript'] = () => {
window['scriptBusy'] = false;
};
window['invokeScript'] = async() => {
const sleep = ms => new Promise((r, j) => setTimeout(r, ms)); // async用 delay関数
@heape
heape / util.js
Created Oct 19, 2019
a Mini Http Client Wrapper for Node.js
View util.js
// it's a mess :( and i'm not good at js! please edit the source as you like :D
/* usage: */
/*
const util = require('./util.js');
let url = 'https://www.google.com';
let cookie = '';
let ck = util.createCookieStore();