Open4

Web browser / HTML

counterintuitivecounterintuitive

Data URI Scheme ブックマークに入れて業務効率化

連続改行除去

data:text/html;charset=utf-8,
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Converter</title>
</head><body>

<textarea name="source" id="_source" style="width:48%;min-height:800px;"></textarea>
<textarea name="converted" id="_converted" style="width:48%;min-height:800px;"></textarea>

<script>
function inputChange(event){
    let v = event.currentTarget.value;
    let vn = v.replace(/(\r\n){2,}|\r{2,}|\n{2,}/g, '\n');
    console.log(v);
    document.getElementById('_converted').value = vn;
}

let source_ = document.getElementById('_source');
source_.addEventListener('input', inputChange);

</script>
</body>
</html>

テンプレ

data:text/html;charset=utf-8,
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Converter</title>
</head><body>

<textarea name="source" id="_source" style="width:48%;min-height:400px;"></textarea>
<textarea name="converted" id="_converted" style="width:48%;min-height:400px;"></textarea>


<!--
<label>TextArea<textarea name="example" id="_textArea" cols="50%" rows="10"></textarea></label>

<label>Text<input type="text" id="_text"></label>
</p>

<p>
<label>Option:
    <select id="_option">
    <option value="">Select</option>
    <option value="_opt1_">Option 1</option>
    <option value="_opt2_">Option 2</option>
    <option value="_opt3_">Option 3</option>
    </select>
</label>
</p>

<p>
<input type="radio" id="_radio1" name="div" value="_radio1_" checked>
<label for="_radio1">Radio 1</label><br>
<input type="radio" id="_radio2" name="div" value="_radio2_" checked>
<label for="_radio2">Radio 2</label><br>
<input type="radio" id="_radio3" name="div" value="_radio3_" checked>
<label for="_radio3">Radio 3</label><br>
</p>
-->

<script>
function inputChange(event){
    let v = event.currentTarget.value;
    let vn = v.replace(/(\r\n){2,}|\r{2,}|\n{2,}/g, '\n');
    console.log(v);
    document.getElementById('_converted').value = vn;
}

let source_ = document.getElementById('_source');
source_.addEventListener('input', inputChange);

<!--
let textArea_ = document.getElementById('_textArea');
textArea_.addEventListener('input', inputChange);

let text_ = document.getElementById('_text');
text_.addEventListener('input', inputChange);

let option_ = document.getElementById('_option');
option_.addEventListener('input', inputChange);

let radio1_ = document.getElementById('_radio1');
radio1_.addEventListener('input', inputChange);
let radio2_ = document.getElementById('_radio2');
radio2_.addEventListener('input', inputChange);
let radio3_ = document.getElementById('_radio3');
radio3_.addEventListener('input', inputChange);
-->

</script>

</body>
</html>

counterintuitivecounterintuitive

Chrome、Edge設定

検索エンジン

chrome://settings/searchEngines
edge://settings/searchEngines
プロジェクトで使われているもの(Jira、Confluence、SharePointなど)のサイト内検索を設定しておく

検索エンジン設定

Zenn

https://zenn.dev/search?q=%s

Qiita

https://qiita.com/search?q=%s

ChatGPT

https://chatgpt.com/?q=%s&hints=search&ref=ext

ChatGPT Temporary Chat

https://chatgpt.com/?q=%s&temporary-chat=true

Perplexity

https://www.perplexity.ai/?q=%s

Yahoo! Realtime

https://search.yahoo.co.jp/realtime/search?p=%s

はてなブックマーク検索

http://b.hatena.ne.jp/search/text?q=%s

Google翻訳

http://translate.google.co.jp/?source=osdd#auto|auto|%s

X

https://x.com/search?q=%s

拡張機能

Intention - Stop Mindless Browsing - Chrome Web Store

Copy Title and Url as Markdown Style - Chrome Web Store
ショートカットキーをAlt+Mに設定する

Video Speed Controller - Chrome Web Store

News Feed Eradicator - Chrome Web Store

Session Buddy - Chrome Web Store

Stylebot - Chrome Web Store

Vertical Tabs - Chrome Web Store

AutoPagerize - Chrome Web Store

Tampermonkey - Chrome Web Store

ChatHub - GPT-4, Gemini, Claude side by side - Chrome Web Store

ブックマークレット

https://zenn.dev/counterintuitiv/scraps/2454eb96866f59