Skip to content

Instantly share code, notes, and snippets.

View PH-68's full-sized avatar

PH-68

View GitHub Profile
{
"timeStamp": 1753071491806,
"version": "1.65.0",
"userSettings": {
"externalLists": "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt\nhttps://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt",
"importedLists": [
"https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt",
"https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt"
],
"popupPanelSections": 31
// ==UserScript==
// @name Kagi change region when searching non-ascii query
// @namespace Violentmonkey Scripts
// @match https://kagi.com/search*
// @grant none
// @version 1.0
// @author -
// @description 5/19/2025, 6:22:06 PM
// @run-at document-start
// ==/UserScript==
// ==UserScript==
// @name Auto dark theme for DuckDuckGo
// @match *://duckduckgo.com/*
// @grant none
// @version 1.0
// @author PH-68
// @description Self-explanatory
// @run-at document-start
// ==/UserScript==
(function() {
// ==UserScript==
// @name wikipeida 預設繁體
// @version 0.1
// @author PH-68
// @match https://zh.wikipedia.org/wiki/*
// @match https://zh.wikipedia.org/zh/*
// @match https://zh.wikipedia.org/zh-tw/*
// @match https://zh.wikipedia.org/zh-hk/*
// @match https://zh.wikipedia.org/zh-mo/*
// @match https://zh.wikipedia.org/zh-cn/*
@PH-68
PH-68 / unsplash.ps1
Last active April 4, 2023 03:09
Change Windows desktop wallpaper with unsplash using PowerShell
$ProgressPreference = 'SilentlyContinue'
$WallpaperPath = $env:LOCALAPPDATA + "\Temp\PS-Wallpaper.jpg"
$Response = Invoke-RestMethod -URI ("https://api.unsplash.com/photos/random?c=" + [string](Get-Date -UFormat %s -Millisecond 0) + "&client_id=fa60305aa82e74134cabc7093ef54c8e2c370c47e73152f72371c828daedfcd7&collections=317099&orientation=landscape")
Write-Host ($Response.urls.raw.Split("?")[0])
Invoke-WebRequest $Response.urls.raw.Split("?")[0] -OutFile $WallpaperPath
Write-Host((Get-Item $WallpaperPath).length/1MB)
$setwallpapersrc = @"
using System.Runtime.InteropServices;