NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name VK IM Reply2Forward // @namespace http://tampermonkey.net/ // @version 0.0.1 // @description Возвращает кнопку ответ при выборе более двух сообщений // @author Flyink13 // @match https://vk.com/* // @copyright 2018, flyink13 (https://openuserjs.org/users/flyink13) // @license MIT // ==/UserScript== document.body.addEventListener('mousedown', function onMousedown() { if (event.target.dataset.action !== 'respond' || !event.target.disabled) { return; } event.target.disabled = false; document.querySelector('.im-page-action[data-action="forward"]').click(); setTimeout(function() { document.querySelector('.MessageForward__results li').click(); }, 100); }); var reply = '.im-page-action[data-action="respond"]'; var style = document.createElement('style'); style.innerHTML = reply + ', ' + reply + ':hover { pointer-events: unset; opacity: 1; cursor: pointer; }'; document.head.appendChild(style);