This file contains 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
/** | |
1. Find TextNode contains specified text using XPath | |
2. Collect TextNode from XPath snapshot result into array | |
3. Edit TextNode with 3 steps below, eg. ```<p>ABCあいうXYZ</p>``` (highlight: ```あいう```) | |
1. Split prefix from ```ABCあいうXYZ```[1], and replace [1] to prefix ```ABC```[2]. (Temporally result: ```<p>ABC</p>```) | |
2. Append suffix ```XYZ```[3] after [2]. (Temporally result: ```<p>ABC``` ```XYZ</p>```) | |
3. Insert highlight node ```<span class="highlight">あいう</span>``` before suffix [3]. | |
4. Final result: ```<p>ABC<span class="highlight">あいう</span>XYZ</p>``` | |
*/ | |
const highlight = (text) => { |
This file contains 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
; Microsoft Designer Compact Keyboardの[A][あ]を[無変換][変換]にする | |
vk16::sc079 | |
vk1a::sc07b | |
; Ctrl+WをCtrl+F4、Ctrl+QをAlt+F4にする | |
^w::^F4 | |
^q::!F4 | |
; Win+Cで現在のウィンドウをキャプチャしてデスクトップにPNGファイルとして保存 (IfranView使用) | |
#c::Run("C:\Program Files\IrfanView\i_view64.exe" " /capture=2 /convert=" A_Desktop "\capture_$U(%Y%m%d%H%M%S).png") |
This file contains 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 Custom Font Remover | |
// @version 2.1 | |
// @include http://* | |
// @include https://* | |
// @grant none | |
// ==/UserScript== | |
const GM_log = () => {};//unsafeWindow.console.log; | |
const BLACK_LIST = [ |
This file contains 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 Selection Disabler Canceller | |
// @version 1.1 | |
// @include http://* | |
// @include https://* | |
// @grant none | |
// ==/UserScript== | |
(() => { |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\vscode] | |
@="Visual Studio Codeで開く(&V)" | |
"Icon"=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,\ | |
00,6c,00,65,00,73,00,25,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,\ | |
66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,00,6f,\ | |
00,64,00,65,00,2e,00,65,00,78,00,65,00,22,00,2c,00,30,00,00,00 | |
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command] |
This file contains 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 Pocket Direct Linkify | |
// @description Rewrite Pocket item link to directly opens original website | |
// @namespace kobachi.dev | |
// @version 2.2 | |
// @include https://getpocket.com/my-list | |
// ==/UserScript== | |
(function() { | |
function simplify(articles) { |
This file contains 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 Android Gradle Dependency Formatter | |
// @description Re-format mvnrepository.com's Gradle dependency for Android Gradle | |
// @namespace kobachi.dev | |
// @version 1.0 | |
// @include https://mvnrepository.com/artifact/* | |
// ==/UserScript== | |
(function () { | |
var textarea = document.querySelector("#gradle-div > textarea"); |
This file contains 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 Google Search Tracking Remover | |
// @description Remove click tracking from Google search result | |
// @namespace kobachi.dev | |
// @version 1.2 | |
// @include https://www.google.co*/search* | |
// @include http://www.google.co*/search* | |
// ==/UserScript== | |
(function(){ |
This file contains 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
# Install pre-requirements | |
sudo apt install gnupg software-properties-common | |
# Add GPG key | |
curl https://apt.corretto.aws/corretto.key | sudo apt-key add - | |
# Add Amazon Corretto repository | |
sudo add-apt-repository 'deb https://apt.corretto.aws stable main' | |
# Update and Check |
This file contains 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
function urlencode { | |
t=$(echo "$1" | nkf -WwMQ | sed 's/=$//g' | tr = % | tr -d '\n') | |
echo ${t//\%2F/\/} | |
} |
NewerOlder