您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
友盟事件分析筛选条件加长,可以最大限度看到内容
// ==UserScript== // @name 友盟事件分析筛选条件加长 // @namespace https://www.jihuangbaike.com/ // @version 1.0.0 // @description 友盟事件分析筛选条件加长,可以最大限度看到内容 // @author tpxxn // @match https://mobile.umeng.com/platform/*/analysis_insight/segment/create // @grant none // ==/UserScript== (function () { "use strict"; function changeWidth() { console.log("ChangeWidth"); var items = document.getElementsByClassName( "ant-select-show-arrow umui-select property-field-values-select ant-select ant-select-enabled" ); console.log(items.length); for (var item of items) { item.style.cssText = "width:600px;"; } } var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.type === "childList") { // 在创建新的 element 时调用 console.log("child list: "); // console.log(mutation); changeWidth(); } else if (mutation.type === "attributes") { // 在属性发生变化时调用 console.log("attributes: "); console.log(mutation); } }); }); observer.observe(window.document, { subtree: true, childList: true, attributes: true, attributeFilter: ["src", "href", "action"], }); })();