Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Chrome

PDF中のテキストを選択した際の挙動の差

PDF中のテキストを選択した際の挙動が、Adobe Acrobat Reader, Edge, Chrome, Firefoxで異なるケースを観測したのでこれも記録。例題は「日本語文字コード入門 α版 歴史とUnicodeにおける実装」 https://masanork.github.io/mjq/moji20250523.pdf の「はじめ…

PDF中の日本語をコピーした際の挙動の差 (2)

satob.hatenablog.com 上記記事の確認時のスクリーンショット。 Adobe Acrobat Reader 文字列選択時の見た目 メモ帳へペーストした際の見た目 Microsoft Edge 文字列選択時の見た目 メモ帳へペーストした際の見た目 Chrome 文字列選択時の見た目 メモ帳へペ…

PDF中の日本語をコピーした際の挙動の差 (1)

PDF中の日本語をコピーした際の挙動が、Adobe Acrobat Reader, Edge, Chrome, Firefoxですべて異なるケースを観測したので記録。例題として、 行政事務標準文字検索α からリンクされている「日本語文字コード入門 α版 歴史とUnicodeにおける実装」 https://m…

DevToolsでExtensionなしに任意のHTTPヘッダを送信できない

動機 追加のソフトウェアのインストールが制限された環境で、任意のHTTPヘッダを指定したリクエストを送信したい。 実行環境が認証つきプロキシサーバの後ろ側にいて、使用するプロキシサーバはアクセス先ごとにproxy.pacで制御されている。Windowsのcurl.ex…

ChromeとEdgeの挙動差

ChromeとEdgeって同じエンジンを使ってるけど、挙動の違いってあるの?対応OSとか機能の違いは分かるけど、Webアプリを実装する上で特に気にしないといけない点はあるの?という話。事例が見つかったら追加していく。 History APIに関する挙動の差。 blog.ma…

各ブラウザがmaxlengthを指定したテキストボックスにサロゲートペアの文字を何文字入力できるか

<input type="text" maxlength="5">に対して、各文字をペーストしつづけてみた。 あ 𩸽 か゚ Chrome on Windows11 あああああ 𩸽𩸽 か゚か゚か Edge on Windows11 あああああ 𩸽𩸽 か゚か゚か Edge IE mode on Windows11 あああああ 𩸽𩸽𩸽𩸽𩸽 か゚か゚か Firefox on Windows11 あああああ 𩸽…

ChromeでHTML中の任意の場所にジャンプするリンク

長いHTMLの途中の見出しにジャンプするリンクを作りたい でも見出しにid属性がついていない という場合、HTMLのURLの末尾に「#:~:text=」に続けてリンクしたい文字列を指定すると、指定した文字列がハイライトされた状態で、フォーカスもその文字列にあてら…

ChromeでアクセスしてるサイトのIPアドレスを知りたい

やりたいこと Chromeでアクセスしているサイトのサーバ名でなくIPアドレスが知りたい。たとえばアクセス先のサイトをホストしているのがAWSなのか、Azureなのか、はたまた自社サーバなのかを知りたい。nslookupで引こうと思ったけど、設定がマズいのかなぜか…

CPU goes 100% when you read .HAR file with ConvertFrom-JSON

Background In Chrome DevTools, you can export the contents in the Network tab into a JSON file (.HAR file). Chrome cannot export the contents of the spreadsheet in the Network tab into .csv or .xlsx format. If you want to get these content…

You should disable Adblock Plus (Chrome) in Alfresco

Context: You are using Alfresco Community v5.2.0. You are using Chrome with Adblock Plus. Problem: “New Topic” button on the discussion forum disappear. Reason: Adblock Plus added “display: none” to the area that has the “New Topic” button…

Chrome sends another request for "View page source"

Context: You are developing a web application that has anti-CSRF function (transaction tokens). You are using Chrome to test and debug the application. Problem: Once you had viewed the HTML source with “View page source” on the context men…