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
"""This is a basic script I mashed together to download all the media on a users profile. | |
Nothing else I found seemed to work well, so I added support for all the media types I came across. | |
The code isn't particularly clean or optimised, it just gets the job done. | |
Usage: | |
UserDownloader(username).download() | |
It will download to `current_dir/username/filename.ext`. | |
An SQLite database saved in the same folder is used to ignore duplicate urls and file hashes. | |
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
// ==UserScript== | |
// @name Remove Yt Shorts Recommendation on restart | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description The other script not fast enough to observe the fast query on restart so do this instead | |
// @author FadhilAF | |
// @match https://www.youtube.com/shorts/* | |
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Youtube_shorts_icon.svg/193px-Youtube_shorts_icon.svg.png | |
// @grant none | |
// @run-at document-idle |
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
FROM composer:2.5 AS build | |
WORKDIR /application | |
ENV APP_ENV=prod | |
COPY . . | |
RUN composer install --no-dev --no-scripts --ignore-platform-reqs --optimize-autoloader |
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 CryptoJS = require("crypto-js"); | |
const decrypt = (input) => { | |
const key = CryptoJS.enc.Utf8.parse("webapp1.0+202106"); | |
const ciphertext = CryptoJS.enc.Base64.parse(input); | |
const encryptedCP = CryptoJS.lib.CipherParams.create({ | |
ciphertext: ciphertext, | |
}); | |
const decryptedWA = CryptoJS.AES.decrypt(encryptedCP, key, { iv: key }); | |
const decryptedUtf8 = decryptedWA.toString(CryptoJS.enc.Utf8); |
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
{ | |
"code": 0, | |
"data": { | |
"keyWord": "", | |
"nextPageToken": "CBQQAA,eyJiIjp7IkN1cnNvciI6ImV5SnpJam8wTURJNE1pNHpOekkyTkRneU1qY3pOU3dpWkNJNlptRnNjMlVzSW5RaU9uUnlkV1Y5In0sImEiOnsiQ3Vyc29yIjoiZXlKeklqb3pOakV5TGpVMk5UTXhNVFkwT1RNeExDSmtJanBtWVd4elpTd2lkQ0k2ZEhKMVpYMD0ifX0,2", | |
"liveVideoPojoList": [ | |
{ | |
"id": "YouTube_UC9CYT9gSNLevX5ey2_6CK0Q_oyuvbMM0AVk", | |
"channelId": "YouTube", | |
"liveId": "YouTube_UC9CYT9gSNLevX5ey2_6CK0Q", |
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
UNFORTUNATELY - the naming is not consistent for simulators. | |
"ios_device": "ios-arm64_armv7", | |
"ios_simulator": "ios-arm64_i386_x86_64-simulator", | |
"ios_device": "ios-arm64", | |
"ios_simulator": "ios-arm64_x86_64-simulator", |