Skip to content

Instantly share code, notes, and snippets.

@kawaz
Last active April 7, 2026 01:41
Show Gist options
  • Select an option

  • Save kawaz/b1608032dcb58bf4200cb93e8aecb7ca to your computer and use it in GitHub Desktop.

Select an option

Save kawaz/b1608032dcb58bf4200cb93e8aecb7ca to your computer and use it in GitHub Desktop.
1Password拡張のダイアログが出ている状態でページ遷移すると暫くの間1Password拡張が使えなくなる問題を回避するためのワークアラウンド。
// ==UserScript==
// @name Fix 1Password Crash on Navigate
// @description Fixes 1Password extension crashing after navigating away while a notification dialog is open
// @namespace https://github.com/kawaz
// @version 0.1.2
// @author kawaz
// @match *://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=1password.com
// @downloadURL https://gist.github.com/kawaz/b1608032dcb58bf4200cb93e8aecb7ca/raw/fix-1password-crash-on-navigate.user.js
// @updateURL https://gist.github.com/kawaz/b1608032dcb58bf4200cb93e8aecb7ca/raw/fix-1password-crash-on-navigate.user.js
// @grant none
// ==/UserScript==
const rmOP=()=>document.querySelector('com-1password-notification')?.remove();
window.addEventListener('beforeunload', rmOP);
window.navigation?.addEventListener('navigate', rmOP);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment