Last updated: August 16, 2023
| Endpoint Name | path |
|---|
Last updated: August 16, 2023
| Endpoint Name | path |
|---|
| /** | |
| * this code is copied from https://github.com/open-wa/wa-decrypt-nodejs | |
| * i just made it more simplified | |
| */ | |
| const { default: axios } = require('axios'); | |
| const crypto = require('crypto'); | |
| const hkdf = require('futoin-hkdf'); | |
| const atob = require('atob'); |
| var saveBlob = (function () { | |
| var a = document.createElement("a"); | |
| document.body.appendChild(a); | |
| a.style = "display: none"; | |
| return function (blob, fileName) { | |
| var url = window.URL.createObjectURL(blob); | |
| a.href = url; | |
| a.download = fileName; | |
| a.click(); | |
| window.URL.revokeObjectURL(url); |
| const url = 'https://api.example.com/v1/sse'; | |
| const accessToken = 'test'; | |
| fetch(url, { | |
| headers: { | |
| Authorization: `Bearer ${accessToken}`, | |
| }, | |
| }) | |
| .then(response => { | |
| if (response.ok && response.body) { | |
| reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); |
| import Cocoa | |
| import Foundation | |
| // Move around and click automatically at random places in macos, kinda human like in a cheap way. | |
| // Moves the mouse pointer to `moves` random locations on the screen and runs the `action` function at | |
| // each point with the point as argument. | |
| func mouseMoveWithAction(moves: Int, action: (CGPoint) -> Void = defaultAction) { | |
| let screenSize = NSScreen.main?.visibleFrame.size |
A Pen by Matt Daniel Brown on CodePen.
Some might be outdated.
Taken from (404 as of today): https://macosxautomation.com/system-prefs-links.html
$ open "x-apple.systempreferences:com.apple.preference.security?General"