您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
将网页链接转化成二维码,方便使用手机浏览*__*
当前为
// ==UserScript== // @name 手机看网页(地址生成二维码) // @namespace http://tampermonkey.net/ // @version 0.31 // @description 将网页链接转化成二维码,方便使用手机浏览*__* // @author yang // @match http://*/* // @include https://*/* // @require https://cdn.jsdelivr.net/npm/[email protected]/qrcode.min.js // @grant GM_registerMenuCommand // ==/UserScript== (function() { 'use strict'; window.onload=function(){ var createQrcode = function(){ var qrcode; return function(){ if(qrcode){ qrcode.style.display = qrcode.style.display=='none'?'block':'none'; return qrcode; }; qrcode = document.createElement('div'); qrcode.id = "tm_qrcode"; qrcode.style.cssText ="display:block;position: fixed;top: 3px;z-index: 999;right: 210px;"; qrcode.addEventListener("click",function(){ qrcode.style.display='none'; }); document.body.append(qrcode); new QRCode(document.getElementById("tm_qrcode"), window.location.href); return qrcode; } }; GM_registerMenuCommand("手机看网页",createQrcode(), ""); } })();