Just Copy and Paste! Simple "Detect Lines Over 40 Characters Without Commas"
Just keep it in your bookmarks!
A simple tool you can just copy and paste!
A companion for writing note articles!
Easy with Gemini! Create your own tool!
Introducing a prompt for one-shot creation too!
When sentences get too long and hard to read!
It happens quite often.
The problem is readability, especially on smartphones!
Set a rule of 40 characters!
Check if a comma (、) is included within that character count!
You only need to review the detected lines!
Line breaks are a different story!
🛠️ How to use (Smartphone version)
1. Bookmark any page
First, register any page, such as the one you are looking at now, to your bookmarks.
2. Open "Edit"
Long-pressthe bookmark you just created in the bookmark barand select"Edit".
3. Rewrite the content
In the settings screen that appears, change the following two items and save.
Name: (A name that is easy for you to understand)
URL: Delete the existing URL entirely andpaste the code.
It's easy, just press the bookmark!
📋 Paste this!
javascript:navigator.clipboard.readText().then(t=>{var lines=t.split(/\r\n|\r|\n/);var badLines=[];for(var i=0;i<lines.length;i++){var line=lines[i];if(line.length>=40&&line.indexOf('、')===-1){badLines.push('【'+(i+1)+'行目】'+line.substring(0,15)+'...('+line.length+'文字)');}}alert(badLines.length>0?'🚨 読点(、)なしで40文字を超えている行があります:\n\n'+badLines.join('\n'):'✅ すべての行に適切に「、」が打たれているか、40文字未満に収まっています!');});One-shot creation prompt!
以下の要件を完璧に満たす、クリップボード内のテキストを検証するブックマークレット(JavaScript)を作成してください。
【最重要・技術制約(ブラウザでの無反応バグを100%防ぐための必須条件)】
1. 【非同期の禁止】async/await はブラウザのアドレスバーで挙動が不安定になるため一切使用せず、必ず `navigator.clipboard.readText().then(t => { ... })` の形式でクリップボードからテキスト(t)を受け取ること。
2. 【%記号の完全禁止】コード内で「%(剰余演算子)」は絶対に一文字も使用しないでください。ブラウザのURL欄に入れた際にURLエンコードエラーを起こし、クリックしても「完全無反応」になる原因になります。
3. 【改行コード・改行の禁止】コード内に本物の改行(マルチライン)を入れないのはもちろん、文字列としての「\n」もコードの途中に配置しないでください。ブラウザがコードを破壊する原因になります。
【動作仕様】
・クリップボードのテキストを改行コード(/\r\n|\r|\n/)で分割し、1行ずつループ処理(for文)でチェックする。
・各行において「文字数が40文字以上」かつ「読点(、)が一文字も含まれていない(indexOf('、') === -1)」という条件を満たす行をすべて抽出する。
・該当する行があった場合、その行番号(i+1)と、冒頭15文字(substring(0,15))、その行の全文字数を配列に格納する。
【出力形式】
・結果は `alert` でポップアップ表示すること。
・三項演算子を使い、該当行がある場合はそのリストを連結して表示し、ない場合は「適切に打たれています」という旨のメッセージを出すこと。
・余計な解説や挨拶、導入文は一切省き、ブラウザのURL欄にそのまま貼り付けられる `javascript:...` から始まる完全な1行のコード(コードブロック形式)のみを出力してください。About this article!
Better late than never: points to note regarding Gemini 3-minute cooking articles | Heron
Ask me anything! I will answer everything I can!
Is it set up? Trying out a note question box in someone else's garden unexpectedly! | Heron
I've started a membership!
I'm still feeling my way around, but I will accept requests, wild demands, and questions as much as possible!
I'm participating! Please be sure to check it out 😆
Paid article, this time it's a problem statement and a warning!
I wrote a summary article of my first month of note life!All important parts are available for free!
I'm releasing what I've thought about and what I've done for a one-coin price to celebrate 500 followers!
I've placed all the props here!
☕ If you have time, please check this out too!
If you like it, please hit like and follow!
Even if you came from outside of note, it would encourage me if you could press the heart mark 😊
