{"id":32570922,"url":"https://github.com/clear-code/repostconfirmationcanceler","last_synced_at":"2025-10-29T08:21:35.613Z","repository":{"id":307640088,"uuid":"1030204493","full_name":"clear-code/RepostConfirmationCanceler","owner":"clear-code","description":"Extension to cancel repost confirmation dialog for Microsoft Edge","archived":false,"fork":false,"pushed_at":"2025-10-20T06:24:27.000Z","size":12556,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T08:15:26.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clear-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-01T08:54:31.000Z","updated_at":"2025-10-20T06:24:30.000Z","dependencies_parsed_at":"2025-08-01T11:46:01.560Z","dependency_job_id":"a6c1b5ea-3b54-4b5a-b6b9-f59db45d52d6","html_url":"https://github.com/clear-code/RepostConfirmationCanceler","commit_stats":null,"previous_names":["clear-code/repostconfirmationcanceler"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/clear-code/RepostConfirmationCanceler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clear-code%2FRepostConfirmationCanceler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clear-code%2FRepostConfirmationCanceler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clear-code%2FRepostConfirmationCanceler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clear-code%2FRepostConfirmationCanceler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clear-code","download_url":"https://codeload.github.com/clear-code/RepostConfirmationCanceler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clear-code%2FRepostConfirmationCanceler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281585829,"owners_count":26526379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-29T08:19:56.708Z","updated_at":"2025-10-29T08:21:35.599Z","avatar_url":"https://github.com/clear-code.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RepostConfirmationCanceler\r\n\r\n## 概要\r\n\r\n特定のサイトを開いている際に、「フォームを再送信しますか？」ダイアログが表示されたら、自動でキャンセルするEdge向け拡張機能。\r\n\r\n## ビルド方法\r\n\r\n* Visual Studio 2022\r\n  * .NET Framework 4.6.2 SDKをインストール\r\n    * RepostConfirmationCancelerがC#の.NET Framework 4.6.2で実装されているため\r\n    * 以下のファイルを参照しているので、特に以下のファイルが存在していることを確認する\r\n      * `C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.2\\UIAutomationClient.dll`\r\n      * `C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.2\\UIAutomationTypes.dll`\r\n  * MSVC v143のインストール\r\n    * RepostConfirmationCancelerTalkがC++で実装されているため\r\n  * Windows SDK 10.0の最新版のインストール\r\n* Inno Setup 6.3.3以上をインストールする\r\n\r\n### ネイティブアプリのインストーラー作成方法\r\n\r\n1. RepostConfirmationCanceler.sln をVisual Studio 2022で開く\r\n2. 構成Release、プラットフォームx86およびx64でソリューションのビルドを実行する\r\n3. RepostConfirmationCancelerX64.iss および RepostConfirmationCancelerX86.iss をInno Setupで開く\r\n4. Build -\u003e Compileからインストーラーをコンパイルする\r\n5. SetupOutput配下にネイティブアプリのインストーラーが作成される\r\n\r\n## 検証環境での動作確認\r\n\r\n* 作成したネイティブアプリのインストーラをインストールする\r\n* Edgeを起動する\r\n* Edgeでedge://extensions/を開く\r\n* 「開発者モード」をONにする\r\n* 「展開して読み込み」を選択する\r\n* webextensions\\edgeを読み込んで、IDを控える。\r\n   例：`gfmemaifchppdpchjijkahhngfnjdihm`\r\n* `C:\\Program Files\\RepostConfirmationCanceler\\RepostConfirmationCancelerHost\\edge.json` のアクセス権を変更し、ユーザー権限での書き込みを許可した上で、`\"allowed_origins\"` に、先ほど控えたIDに基づくURLを追加する。\r\n   例：`\"chrome-extension://gfmemaifchppdpchjijkahhngfnjdihm/\"`\r\n* （必要に応じて: 「サービスワーカー」をクリックし、DevToolsを起動する。当画面で逐次状況を観察しながらテストする。）\r\n* `C:\\Program Files\\RepostConfirmationCanceler\\RepostConfirmationCanceler.ini` が存在しなければ作成する\r\n  * 書き込み権限がない場合、コマンドプロンプトを管理者権限で起動して作成する\r\n* `C:\\Program Files\\RepostConfirmationCanceler\\RepostConfirmationCanceler.ini` のアクセス権を変更し、ユーザー権限での書き込みを許可した上で、以下のような内容を記載する\r\n  * ```\r\n    [TARGETS]\r\n    *\r\n    ```\r\n\r\n## 動作解説\r\n\r\n* ブラウザの拡張機能 RepostConfirmationCanceler が、`RepostConfirmationCanceler.ini`の`[TARGETS]`セクションに記載されているURLを開いているかを判定する\r\n  * サイトを開いたタイミングと、30秒ごとのポーリングで判定を行う\r\n* 指定のURLを開いていた場合、ブラウザの拡張機能が RepostConfirmationCancelerTalk.exe を呼び出す。\r\n  * このとき、`Q Edge`というメッセージを送信する\r\n* `Q Edge`メッセージを受け取ったRepostConfirmationCancelerTalk.exeは、RepostConfirmationCanceler.exeを起動する\r\n* RepostConfirmationCanceler.exeは、Edgeのウィンドウを1秒ごとに監視し、「フォームを再送信しますか？」ダイアログが表示されたら、自動でキャンセルする\r\n  * RepostConfirmationCanceler.exeは初回起動後1分間常駐する\r\n* 拡張機能の次のポーリングのタイミングでまだサイトを開いていた場合、改めてブラウザの拡張機能が RepostConfirmationCancelerTalk.exe を呼び出す\r\n  * このとき、最初と同様に`Q Edge`というメッセージを送信する\r\n* `Q Edge`メッセージを受け取ったRepostConfirmationCancelerTalk.exeは、RepostConfirmationCanceler.exeを起動する\r\n  * もし、既にRepostConfirmationCanceler.exeが起動していた場合、既存のRepostConfirmationCanceler.exeに`keep-alive`メッセージを送信し、今回のRepostConfirmationCanceler.exeは直ちに終了する\r\n\r\n  * `keep-alive`メッセージを受信した既存のRepostConfirmationCanceler.exeは、メッセージ受信から1分後にまで常駐時間を延ばす\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclear-code%2Frepostconfirmationcanceler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclear-code%2Frepostconfirmationcanceler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclear-code%2Frepostconfirmationcanceler/lists"}