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
https://mega.nz/file/qtwixaBC#cJ3mJ-oOtkOMrLeI01E3NQ1E9FzXDS0Jz71VYG2tCSs |
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
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'); |
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 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'; |
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
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; |
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 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"); |
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
/* | |
ブラウザのコンソール入力。 API制限有るので、ほどほどに! | |
*/ | |
window['resetScript'] = () => { | |
window['scriptBusy'] = false; | |
}; | |
window['invokeScript'] = async() => { | |
const sleep = ms => new Promise((r, j) => setTimeout(r, ms)); // async用 delay関数 |
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
// 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(); |
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
wfwfwfw |