您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Execute UserScript
// ==UserScript== // @name Braveに切り替え j // @namespace http://tampermonkey.net/ // @version 1.2 // @description Execute UserScript // @author Your Name // @match https://* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; document.addEventListener('keydown', (e) => { if (e.key === 'j') { javascript:(function(){ var u = window.location.href; var ua = navigator.userAgent; if(/android/i.test(ua)){ window.location = "intent:" + u.replace(/^https?:\/\//, "") + "#Intent;package=com.brave.browser;scheme=https;end"; } else if(/(iPhone|iPad|iPod)/i.test(ua)){ window.location = "brave://open-url?url=" + encodeURIComponent(u); } else { if(confirm("Braveで表示しますか?")){ window.location = "brave://open-url?url=" + encodeURIComponent(u); } } })(); } }); })();