您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
tele2 api lots page as text
// ==UserScript== // @name tele2 api lots text view // @namespace http://tampermonkey.net/ // @version 0.2.3 // @description tele2 api lots page as text // @author // @match https://tele2.ru/api/exchange/lots?* // @icon https://www.google.com/s2/favicons?sz=64&domain=tele2.ru // @grant none // ==/UserScript== (function() { 'use strict'; if (document.querySelector('div[hidden="true"]')) { const obj = JSON.parse(document.querySelector('div[hidden="true"]').innerText); if (obj.data.length > 0) { let newIH = obj.data[0].volume.value + obj.data[0].volume.uom + ' ' + obj.data[0].cost.amount + '\n\n'; if (obj.data.length > 4) { obj.data[4].id = '\n' + obj.data[4].id; }; newIH += '<table>'; for (let key of obj.data) { newIH += '<tr><td align=right>' + key.id + '<td> <td valign=bottom>' + (key.my?'t2bot ':'') + key.seller.name + ' ' + key.seller.emojis + '\n'; }; if (window.trustedTypes && window.trustedTypes.createPolicy) { window.trustedTypes.createPolicy('default', { createHTML: (string, sink) => string }); } document.body.innerHTML = '<pre>' + newIH + '</pre>' } else document.body.innerText = 'no lots'; }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址