您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
get access_token
// ==UserScript== // @name Omzero Get Access Token // @namespace https://vfa-vinhtt.github.io // @description get access_token // @version 1.0.2 // @icon // @author vinhtt // @license MIT // @connect self // @include https://data-stg-jp.omronconnect.mobi/app/oauth2-frontend/static/result.html?* // @run-at document-idle // @noframes // @grant none // ==/UserScript== (function(window, document) { "use strict"; let params = []; window.location.href.split(/\?|\&/).forEach(item => { let [key, value] = item.split("=") || []; if (key === "provider_user_id" || key === "oauth_token" || key === "refresh_token") { key = key.replace("provider_user_id", "ogsc_id").replace("oauth_token", "token_test"); params.push([key, value]); } }); let link = ""; params.forEach(([key, value]) => { link += `${key}=${value}&`; }); link = "https://cdn-s3-dev-apne1-hi875.zero-events.com/omwalk/index.html#/?" + link; document .querySelector(".alert-warning") .insertAdjacentHTML("beforeEnd", `<p>Link UserApp: <a href="${link}">${link}</a><p>`); })(window, document);