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 Droidcon Fira Sans Clean (Softer Text) | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Fira Sans primary, Inter fallback, softer color and reduced spacing | |
// @match https://www.droidcon.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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 YouTube Channel Videos - Simple Most Viewed Button | |
// @namespace http://tampermonkey.net/ | |
// @version 1.4 | |
// @description Add a simple "Most Viewed" button to sort videos by view count | |
// @match https://www.youtube.com/*/videos | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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 Filter Specific Gym on ActiveSG | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Show only the specified gym in the gym list | |
// @author 100nandoo | |
// @match *://*.activesg.gov.sg/gym-capacity* | |
// @grant none | |
// ==/UserScript== |
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
winget upgrade --all --source winget --silent --accept-package-agreements --accept-source-agreements |
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
#!/bin/zsh | |
# Check if a URL is provided | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <video_url>" | |
exit 1 | |
fi | |
VIDEO_URL="$1" |
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
#!/bin/bash | |
# HOW TO INSTALL | |
# 1. put it on ~/scripts/yt-dlp-sub | |
# 2. add this into .zshrc | |
# export PATH="$HOME/scripts:$PATH" | |
# 3. reload zsh | |
# Check if a URL is provided | |
if [ -z "$1" ]; then | |
echo "Usage: yt-dlp-sub <YouTube_URL>" |
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
#!/bin/sh | |
# | |
# Inspired by TheFrenchGhosty's Ultimate YouTube-DL Scripts Collection | |
# with some additional changes | |
# | |
# I recommend to add alias on .zshrc or .bashrc | |
# alias yt-download='sh /path/to/script/best_1080p.sh' | |
# Output folder | |
OUTPUT_FOLDER="/Users/username/Downloads" |
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
# VERSION: 0.2 | |
# AUTHORS: nKlido | |
# LICENSING INFORMATION | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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 Sort | |
// @namespace Violentmonkey Scripts | |
// @match https://shopee.sg/* | |
// @grant none | |
// @version 0.1 | |
// @author 100nandoo | |
// @run-at document-end | |
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@1 | |
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2 |
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
// Change the media parameter with your own data class | |
suspend fun TransferObserver.await(media: Media): Boolean = | |
suspendCancellableCoroutine { cont -> | |
this.setTransferListener(object : TransferListener { | |
override fun onProgressChanged(id: Int, bytesCurrent: Long, bytesTotal: Long) { | |
val progress = ((bytesCurrent / bytesTotal) * 100).toInt() | |
media.uploadProgress = progress | |
media.progressListener?.notifyProgressChanged() | |
} |
NewerOlder