Skip to content

Instantly share code, notes, and snippets.

View aiya000's full-sized avatar
🐶
Inu

aiya000 aiya000

🐶
Inu
View GitHub Profile
@aiya000
aiya000 / override-css.user.js
Last active April 14, 2025 14:10
Override a specified DOM element CSS of a specified URL (Disable all existing styles of elements matching a CSS selector and apply new styles)
// ==UserScript==
// @name Override CSS Styles
// @namespace https://gist.github.com/aiya000/0514d3b7994d9c13bf8a75075ddea82c
// @version 0.1
// @description Override CSS Styles (Disable all existing styles of elements matching a CSS selector and apply new styles)
// @author aiya000
// @match *://*/*
// @grant none
// ==/UserScript==
/**
* Hides [TechFeed](https://techfeed.io/categories/all) noises.
* e.g., 🔥XXXpt, 👍pt, and bookmark counts.
*/
tf-score-button,
tf-pin-button .count,
tf-comment-button .count,
tf-share-button .count {
display: none;
}
@aiya000
aiya000 / remove-twitter-follower-count.js
Last active April 13, 2025 22:27
Deprecated. ~~A tampermonky script, to solves the problem of the 'Control Panel for Twitter' extension not being able to hide the number of followers of a Twitter account.~~
// ==UserScript==
// @name Remove Twitter Follower Count
// @namespace https://gist.github.com/aiya000/9c5a16c3a96f0b14576923128fe261b4
// @version 2025-04-09
// @description Remove Twitter(X)'s follower count at profile. This solves the problem of the 'Control Panel for Twitter' extension not being able to hide the number of followers of a Twitter account.
// @author aiya000
// @match https://x.com/*
// @match https://twitter.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
@aiya000
aiya000 / toRawDeep.ts
Created March 14, 2025 17:29
zodにも限界がある例
import { toRaw } from 'vue'
import { z } from 'zod'
/**
* ```typescript
* import { ref } from 'vue'
* const x = ref({ a: { b: 42 } })
* // const y = structureClone(toRaw(x.value)) // 深いProxy(x.value.a.b)を除去できずに例外が出る
* const y = structureClone(toRawDeep(x.value)) // OK
* ```
@aiya000
aiya000 / gh-issue-view-select
Created March 4, 2025 17:48
Immediately open a GitHub issue by peco or fzf and etc
#!/bin/bash
# Shows GitHub issues in interactive filter and opens selected issue with gh issue view.
#
# ```shell-session
# $ gh-issue-view-select
# # Shows interactive filter with issues
# # Opens selected issue with gh issue view
# ```
@aiya000
aiya000 / virus_scan.sh
Last active February 24, 2025 16:39 — forked from nemasu/virus_scan.sh
Progress for clamdscan.
#!/bin/bash
# This respects the following original script:
# - Original: https://gist.github.com/nemasu/9d89d2998822980a07284bf442342482
#
# I'm also developing the newer version at here:
# - Support: https://github.com/aiya000/bash-toys
if [[ $# -eq 0 ]] ; then
@aiya000
aiya000 / vrcss-fov.sh
Created January 29, 2022 18:03
vrcss-fov.sh
#!/usr/bin/env zsh
# https://gist.github.com/chigirits/55d6eed4396ed5da64878af2b43111ed
dist=./vrcss-fov-dist
if [[ ! -d $dist ]] ; then
mkdir $dist
fi

あー、加賀ちゃん、またあたしのプリンたべてるー!! こらあー!

え、、、お仕事で疲れてて、間違えちゃったの? そっか……疲れてるならしょうがないよね

よーし、加賀ちゃんが元気出るように、おねーちゃんが魔法かけてあげる!

加賀ちゃん、マイペースにがんばって、ゆっくりはたらいて…… あたしのプリン、返してね!

#!/bin/bash
i_have xsel && alias pbcopy='xsel --clipboard --input'
@aiya000
aiya000 / LICENSE
Last active November 3, 2021 17:23
ひぐらしのなく頃に反 設定資料集
The MIT License (MIT)
Copyright (c) 2021 aiya000
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: