您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically shards in the SOLR Admin collections display
// ==UserScript== // @name SOLR Admin - Auto-expand shards and replicas // @description Automatically shards in the SOLR Admin collections display // @include https://*/solr/* // @include http://*/solr/* // @version 0.3 // @namespace https://greasyfork.org/users/77886 // @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012 // ==/UserScript== function clickWhenItAppears (jNode) { var clickEvent = document.createEvent ('MouseEvents'); clickEvent.initEvent ('click', true, true); jNode[0].dispatchEvent (clickEvent); } bWaitOnce = true; // <b class="ng-binding">Shard: shard2</b> // <span ng-class="{open:shard.show}" class="open"><b class="ng-binding">Shard: shard2</b></span> waitForKeyElements ( //"b[class='ng-binding']", "span[ng-class='{open:shard.show}']", clickWhenItAppears ); // <span class="openReplica ng-binding" ng-class="{open:replica.show}">Replica: core_node6</span> waitForKeyElements ( "span[class='openReplica ng-binding']", clickWhenItAppears );