您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Alphabetically sorts the channels in the channel grid
// ==UserScript== // @name DaddyLiveHD Alphabetical Sorting // @namespace https://greasyfork.org/users/1033981 // @version 1.2 // @description Alphabetically sorts the channels in the channel grid // @license AGPL-3.0 // @author Edwin Zarco // @match https://*.dlhd.sx/* // ==/UserScript== (function() { 'use strict'; const sortChannelsAlphabetically = () => { const gridContainer = document.querySelector('.grid-container'); if (!gridContainer) { return; } const gridItems = Array.from(gridContainer.querySelectorAll('.grid-item')); gridItems.sort((a, b) => a.textContent.localeCompare(b.textContent)); for (const item of gridItems) { gridContainer.appendChild(item); } }; sortChannelsAlphabetically(); })();