Skip to content

Instantly share code, notes, and snippets.

View jim60105's full-sized avatar
🛸
🚗🚕🚙🚓🚑🚚🚛🚜🏎🚓🚔🚍🚒🚘🚖🛺🚐🚖🚲🏍️🛵🚄🚅🚈🚂🚆🚇🚖🛴🚊🚉🚁🚆🚟🚝🚞🚋🚈🛶🚤🚢⛵🚀🛸🛹🚂🚃🚎🚌🛵🛺🚲🚍🚑🚒🚐

陳鈞 jim60105

🛸
🚗🚕🚙🚓🚑🚚🚛🚜🏎🚓🚔🚍🚒🚘🚖🛺🚐🚖🚲🏍️🛵🚄🚅🚈🚂🚆🚇🚖🛴🚊🚉🚁🚆🚟🚝🚞🚋🚈🛶🚤🚢⛵🚀🛸🛹🚂🚃🚎🚌🛵🛺🚲🚍🚑🚒🚐
View GitHub Profile
@jim60105
jim60105 / 淘寶商品頁網址清理
Last active November 4, 2020 10:09
放在書籤,在淘寶的商品頁點擊使用
//將網址列多餘的參數清理
javascript:window.location.replace('https://item.taobao.com/item.htm?id='+location.href.match(/id=(\d+)/)[1]);
//由大陸淘寶跳轉到World淘寶
javascript:window.location.replace('http://world.taobao.com/item/'+location.href.match(/id=(\d+)/)[1]+'.htm');
//由World淘寶跳轉到大陸淘寶
javascript:window.location.replace('https://item.taobao.com/item.htm?id='+location.href.match(/item\/(\d+)/)[1]);
@jim60105
jim60105 / Angular 11 開發環境說明.md
Created March 5, 2021 07:06 — forked from doggy8088/Angular 17 Dev Setup.md
Angular 11 開發環境說明

Angular 11 開發環境說明

為了能讓大家能夠順利的建立起 Angular 11 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

  • Windows 10 以上版本
  • Mac OS X 10.6 以上版本

[ 套件管理器 ( Mac OS X Only ) ]

@jim60105
jim60105 / showroom.user.js
Last active May 20, 2021 10:25 — forked from aikatsukamen/gist:52041be267c213fcc38efa4d876db696
ShowRoomの見た目なんとかする
// ==UserScript==
// @name ShowRoomスッキリ
// @namespace http://tampermonkey.net/
// @version 0.2
// @description ごちゃごちゃすぎる
// @author Momoyama Mirai (Edited by jim60105)
// @match https://www.showroom-live.com/*
// @grant none
// ==/UserScript==
const sleep = (time) => new Promise((resolve) => setTimeout(() => resolve(), time * 1000));
@jim60105
jim60105 / test.sh
Last active July 19, 2021 12:41
test script for live-dl
#!/bin/bash
_url='https://www.youtube.com/channel/UCBC7vYFNQoGPupe5NxPG4Bw/live'
# _url='https://www.youtube.com/watch?v=Y-EVxJhfsfE'
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
_body=$(curl -s --compressed -H "User-Agent: $USER_AGENT" -b cookies.txt "$_url")
# Extract metadata from fetched page
@jim60105
jim60105 / settings.json
Last active June 23, 2022 09:00
Windows terminal settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@jim60105
jim60105 / facebook_banner_li_killer.txt
Last active February 4, 2023 07:32
facebook_banner_li_killer
facebook.com#?#li:has(> span > div > a[aria-label="Watch"])
facebook.com#?#li:has(> span > div > a[href="/watch/"])
facebook.com#?#li:has(> span > div > a[aria-label="Marketplace"])
facebook.com#?#li:has(> span > div > a[href="/marketplace/?ref=app_tab"])
facebook.com#?#li:has(> span > div > a[aria-label="遊戲"])
facebook.com#?#li:has(> span > div > a[href="/gaming/"])
facebook.com#?#li:has(> span > div > a[href="/gaming/?ref=games_tab"])
facebook.com#?#div[data-visualcompletion="ignore-dynamic"]:has(div[aria-label="video chats that people can join"])
@jim60105
jim60105 / 1-video-dl-mkv.bat
Last active April 16, 2023 08:50
yt-dlp quick excute batch
@ECHO OFF
set url="%1"
yt-dlp.exe --ignore-config --external-downloader aria2c --external-downloader-args "-j 16 --retry-wait 10 --max-tries 10" --cookies-from-browser brave --youtube-skip-dash-manifes --merge-output-format mkv --prefer-free-formats --embed-thumbnail --embed-metadata --no-part -o "%%(upload_date)s %%(title)s (%%(id)s).%%(ext)s" "%url%"
PAUSE
$sourceFolder = "${pwd}\*"
$filePatterns = '*.png','*.jpg','*.gif'
Get-ChildItem -Path $sourceFolder -Include $filePatterns -File -Recurse | ForEach-Object {
$name = $_.FullName
$webp = [System.IO.Path]::ChangeExtension($name,".webp")
$avif = [System.IO.Path]::ChangeExtension($name,".avif")
echo "Orig: $name"
echo "WebP: $webp"
magick "$name" "$webp"
{
"www.alphapolis.co.jp/novel/*/*/episode/*": {
"css": "#content{\r\n width: unset;\r\n \r\n}\r\n#main{\r\n width: 90vw;\r\n float: unset;\r\n margin: 0px auto;\r\n}\r\nbody{\r\n background-color: #22272e;\r\n}\r\n.novel-body{\r\n color:rgb(173, 186, 199);\r\n font-weight: 600;\r\n background-color: #22272e;\r\n}",
"readability": false,
"enabled": true,
"modifiedTime": "2023-05-27T17:10:35.242+08:00"
},
"kakuyomu.jp/works/*/episodes/*": {
"css": ".widget-episode-inner{\r\n width: 90%;\r\n max-width: unset;\r\n}",
"readability": false,
@jim60105
jim60105 / vs2019.vsconfig
Last active June 8, 2023 09:19
My VS 安裝組態
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.NetCore.Component.Runtime.5.0",
"Microsoft.NetCore.Component.Runtime.3.1",
"Microsoft.NetCore.Component.SDK",
"Microsoft.VisualStudio.Component.NuGet",
"Microsoft.Net.Component.4.6.1.TargetingPack",