您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes non-global phone versions from www.kimovil.com
// ==UserScript== // @name Kimovil Only Global Phone Versions // @namespace http://tampermonkey.net/ // @version 1.0 // @description Removes non-global phone versions from www.kimovil.com // @author salar2k // @match https://www.kimovil.com/en/best-smartphones-antutu // @icon https://www.google.com/s2/favicons?domain=kimovil.com // @grant none // @include *://*.kimovil.com/* // ==/UserScript== (function () { 'use strict'; function removeNonGlobal() { var smartphones = document.querySelectorAll("li.item.smartphone"); var removedList = []; smartphones.forEach((e, index) => { var version = e.querySelector('.device-name .version')?.textContent; var title = e.querySelector('.device-name .title')?.textContent; if (version && !version.includes('Global') && !version.includes('International')) { e.remove(); removedList.push(`${title} - ${version}`); } }); if (removedList.length) { console.log('Non-global devices removed', removedList); } } removeNonGlobal(); var scrollTimer = null; window.addEventListener("scroll", function () { if (scrollTimer) this.clearTimeout(scrollTimer); scrollTimer = setTimeout(removeNonGlobal, 500); }); // Your code here... })();