您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
配合 职培云刷课——pc上传照片2 一起使用
当前为
// ==UserScript== // @name 职培云——pc上传照片1 // @namespace // @version 0.1 // @description 配合 职培云刷课——pc上传照片2 一起使用 // @author TBC // @match *://px.class.com.cn/study/myclass/* // @match *://px.class.com.cn/player/index/photo* // @grant none // ==/UserScript== (function() { import('https://nimiq.github.io/qr-scanner/qr-scanner.min.js').then((module) => { const QrScanner = module.default; console.log(QrScanner) setTimeout(()=>{ var c = document.createElement('canvas'); var img = document.getElementById('signImg') || document.getElementById('qrCode'); c.height = img.naturalHeight; c.width = img.naturalWidth; c.id= 'test' var ctx = c.getContext('2d'); ctx.drawImage(img, 0, 0, c.width, c.height); document.body.append(c); //console.log(document.getElementById('qrCode')) QrScanner.scanImage(c) .then(result =>{ window.open(result); } ) .catch(error => console.log(error || 'No QR code found.')); },500) }); })();