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(){ | |
| function deepQueryAll(selector) { | |
| const results = []; | |
| const stack = [document]; | |
| while (stack.length) { | |
| const root = stack.pop(); | |
| try { | |
| root.querySelectorAll && results.push(...root.querySelectorAll(selector)); | |
| } catch(_) {} | |
| root.querySelectorAll?.("*")?.forEach(el => { |
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
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "os" | |
| "fmt" | |
| "io" | |
| "strings" | |
| "net/http" |