Roaming Authenticator Everywhere

嘘のPasskey対応を真のPasskey対応にします

当前为 2025-08-15 提交的版本,查看 最新版本

// ==UserScript==
// @name        Roaming Authenticator Everywhere
// @namespace   https://rokoucha.net
// @version     0.0
// @author      Rokoucha
// @description 嘘のPasskey対応を真のPasskey対応にします
// @license     MIT
// @match       https://id.moneyforward.com/*
// @match       https://accounts.pixiv.net/passkeys/*
// @run-at      document-start
// ==/UserScript==

function hook() {
    const origCreate = navigator.credentials.create
    navigator.credentials.create = function (options) {
        console.log('hooked')
        if (options) {
            delete options.publicKey.authenticatorSelection.authenticatorAttachment
        }
        return origCreate.apply(this, [options])
    }
}

console.info("place a hook")
hook()