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 walk = (acc = [], outer) => { | |
if (typeof outer === null) { | |
return acc | |
} | |
if (typeof outer === 'string') { | |
if (outer === ' ') { | |
return acc | |
} |
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 tf = function (attachPoint) { | |
const root = globalThis || window | |
const dom = root.document || document | |
function selectEl(el) { | |
if (el.ELEMENT_NODE) { | |
return el | |
} | |
else { | |
return dom.querySelector(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
/** | |
CHANGELOG | |
2-10-25 - Ask about whether to use webviews. | |
*/ | |
/** | |
* This script is a JavaScript for Automation (JXA) script that uses the SiteSucker app to download a website. | |
* | |
* Background: JXA is dogshit. I know there is no need to hold back on the cursing, because if you are using JXA, | |
* you have already explored every explitive available. The official JXA documentation is apple's changelog which |
OlderNewer