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
function htos(input){var hex=input.match(/[\s\S]{2}/g)||[];var o='';for(var i=0,j=hex.length;i<j;++i){o+='%'+('0'+hex[i]).slice(-2)}return decodeURIComponent(o)} | |
htos(parseInt(1101000,2).toString(16)) | |
$(".question-wrapper > p").textContent.split(" ").map((b) => htos(b)) |
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 puppeteer = require('puppeteer') | |
;(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('https://youtube.com'); | |
// get a list of all elements - same as document.querySelectorAll('*') | |
const elements = await page.$$('*') |