安乐码

简单的api跳转将网页生产二维码,电脑端 手机端通用。非专业人士 所有数据收集于互联网 感谢原作者 如有侵权 联系删除

当前为 2021-06-19 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         安乐码
// @author       Jones Miller
// @version      21.6.19
// @namespace    https://t.me/jsday
// @description  简单的api跳转将网页生产二维码,电脑端 手机端通用。非专业人士 所有数据收集于互联网 感谢原作者 如有侵权 联系删除
// @icon         https://s.aigei.com/src/img/png/23/23adca139a5c43c3809ab161f7f0453d.png?imageMogr2/auto-orient/thumbnail/!237x237r/gravity/Center/crop/237x237/quality/85/&e=1735488000&token=P7S2Xpzfz11vAkASLTkfHN7Fw-oOZBecqeJaxypL:z0u2BGZ4KZ3Lx5wegbSaidmXLTQ=
// @include      *
// @grant        unsafeWindow
// ==/UserScript==

(function() {
    'use strict';
  
  /* 调用外部的api,若有自己喜欢的或是api失效 可自行更换 */
  var jmqrapi='https://api.pwmqr.com/qrcode/create/?url='
  /**/
  function createjmwebqr() {
    var jmwebqr = document.createElement("div");
    jmwebqr=document.body.appendChild(jmwebqr);
    jmwebqr.id = "jmwebqr";
    jmwebqr.setAttribute("style","display:block;position:fixed;width:28px;height:28px;bottom:239px;right:1vmin;;background:#fff url(https://s.aigei.com/src/img/png/23/23adca139a5c43c3809ab161f7f0453d.png?imageMogr2/auto-orient/thumbnail/!237x237r/gravity/Center/crop/237x237/quality/85/&e=1735488000&token=P7S2Xpzfz11vAkASLTkfHN7Fw-oOZBecqeJaxypL:z0u2BGZ4KZ3Lx5wegbSaidmXLTQ=) no-repeat center !important;background-size:95% !important;box-shadow:0 0 0 2px red !important;cursor:pointer;z-index:9999999;border-radius:6px;");
    jmwebqr.onclick = function () { var jmqrcode=jmqrapi; window.open(jmqrcode+location.href,'_blank');};
  };
  var match=location.href.match('api.pwmqr.com')
  if (location.href.match('^http(s)?://')) { if (!match) { createjmwebqr();};};
})();