VK no reactions

Removes reactions from vk.com

当前为 2021-08-30 提交的版本,查看 最新版本

// ==UserScript==
// @name         VK no reactions
// @name:ru      Вконтакте без реакций
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  Removes reactions from vk.com
// @description:ru  Убирает реакции с сайта vk.com и возвращает обычные лайки
// @author       dark1103
// @match        https://vk.com/*
// @icon         https://www.google.com/s2/favicons?domain=vk.com
// @grant        none
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==



(function() {
    'use strict';

    function modify_likes(){
        $('[data-section-ref="reactions-menu-mount"]').remove();
        $('.post_content').each(function(){
            var likes = $(this).find('.ReactionsPreview');
            likes.find('.ReactionsPreview__items').hide();
            var container = $(this).find('.PostButtonReactions');
            /*
            container.find('.PostButtonReactions__title, ._like_button_label').hide();
            likes.appendTo(container);
            if(likes.length > 0){
                likes[0].onclick = undefined;
            }
            */
            /*
            $('._like_button_icon').each(function(){
                $(this).find('.PostButtonReactions__icon').hide();
                if($(this).find('.old').length == 0){
                    var n = $('<div class="old"></div>');
                    n.appendTo($(this));
                    $(this).find('.PostButtonReactions__icon svg').appendTo(n);
                }
            });*/
        });
    }
    modify_likes();

    $('body').on('DOMNodeInserted', '#content', function(e) {
        //console.log(e);
        if(e.target.classList.contains('feed_row')){
            modify_likes();
        }
    });

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址