您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script help find need pages in list of cabinet tilda
// ==UserScript== // @name Search pages in cabinet of tilda // @namespace https://dev-postnov.ru/search-pages-in-tilda-tempermonkey // @version 1.0 // @description This script help find need pages in list of cabinet tilda // @author https://dev-postnov.ru // @match https://members.tilda.cc/groups/?groupid=* // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Add search field before list pages var pageList = document.querySelector('#member_to_group'); var searchPage = document.createElement("input"); searchPage.setAttribute('input', 'text'); searchPage.setAttribute('class','js-search-page') searchPage.setAttribute('placeholder','Введите название страницы'); searchPage.setAttribute('style','padding: 15px 20px; margin-bottom: 30px; width: 400px;font-size: 18px;'); pageList.before(searchPage); var linksPages = document.querySelectorAll('.tlk__table-groups-link'); searchPage.addEventListener('keyup', function(e) { var inputValue = e.target.value.toLowerCase(); setTimeout(function() { linksPages.forEach(function(item,i){ var filter = item.innerText.toLowerCase().indexOf(inputValue) if (filter < 0) { item.closest('.tlk__table-row').setAttribute('style','display: none;'); } else { item.closest('.tlk__table-row').setAttribute('style','display: flex;'); } }); },1000) }) })();