您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Скрыть все сообщения, кроме верефецированых
当前为
// ==UserScript== // @name ВК ФИЛЬТР ПОИСКА ПО ВЕРЕФИКАЦИИ // @namespace http://tampermonkey.net/ // @version 1.1 // @description Скрыть все сообщения, кроме верефецированых // @author Your Name // @match https://vk.com/search/* // @grant none // @require https://code.jquery.com/jquery-3.6.0.min.js // @license MIT // ==/UserScript== (function($) { 'use strict'; // Function to hide unverified posts function hideUnverifiedPosts() { $('div._post.post.page_block.post--withPostBottomAction.post--with-likes.closed_comments.deep_active.Post--redesign').each(function() { const post = $(this); const isVerified = post.find('a[href="/verify"]').length > 0; if (!isVerified) { console.log(`Hiding post with ID: ${post.data('post-id')}`); post.hide(); } }); } // Function to click "Show More" button function clickShowMoreButton() { const showMoreButton = $('#ui_search_load_more'); if (showMoreButton.length > 0 && showMoreButton.is(':visible')) { console.log('Clicking "Show More" button.'); showMoreButton.click(); } } // Initial run to hide unverified posts and click "Show More" button hideUnverifiedPosts(); clickShowMoreButton(); // Observer to hide unverified posts and click "Show More" button on new content load const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { hideUnverifiedPosts(); clickShowMoreButton(); }); }); observer.observe(document.body, { childList: true, subtree: true }); // Log to indicate the script is running console.log('Hide Unverified Posts userscript is running.'); })(jQuery);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址