您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When logging in to Datadog using SAML, it takes you to a page that asks you whether you want to be using the mobile app. This is usually not useful to you on desktop, so this userscript skips this page directly into the app.
// ==UserScript== // @name Skip Datadog mobile login page // @namespace http://tampermonkey.net/ // @version 2024-12-09 // @description When logging in to Datadog using SAML, it takes you to a page that asks you whether you want to be using the mobile app. This is usually not useful to you on desktop, so this userscript skips this page directly into the app. // @author You // @match https://app.datadoghq.com/account/login/mobile?* // @icon https://www.google.com/s2/favicons?sz=64&domain=datadoghq.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function checkOnReady() { if (document.readyState === "complete") { clickWebsiteButton(); } } function clickWebsiteButton() { const button = document.querySelector("a[type=button]:not([href^=\"datadog://\"])"); if (button) { button.click() } } checkOnReady(); document.addEventListener("readystatechange", checkOnReady); })();