安乐码

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

目前為 2021-06-19 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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();};};
})();