您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Generates and saves an SVG based QR code of the URL of the current page.
- // ==UserScript==
- // @name QR This SVG
- // @namespace https://gabrieljones.dev/
- // @description Generates and saves an SVG based QR code of the URL of the current page.
- // @include *
- // @version 0.1
- // @author Gabriel Jones
- // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
- // @grant GM_registerMenuCommand
- // @grant GM_download
- // ==/UserScript==
- (function(){
- if (top.location !== this.location){
- return false;
- }
- GM_registerMenuCommand( 'QR This Page', () => {
- const uriEncoded = encodeURIComponent(location.href);
- GM_download("https://api.qrserver.com/v1/create-qr-code/?data=" + uriEncoded + "&format=svg&qzone=4", document.title+".svg");
- });
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址