Зависать с [id189814|Денисом] опасно — рано или поздно...

Зависать с [id189814|Денисом] опасно — рано или поздно начинаешь писать расширения для хрома. Хочу поделиться парочкой.

Первое — VK Chatfree (vk.cc/2GGFHB). Как известно, счетчик новых сообщений ВКонтакте учитывает как личную переписку, так и чаты (беседы). [id16990|Многим] это мешает жить и работать: никогда не знаешь, что кроется за этим «+1» или «+20». Недавно появилась возможность заглушать уведомления от отдельных чатов, но на счетчик эта опция никак не влияет. Мое расширение позволяет выбрать чаты, которые не будут учитываться в счетчике сообщений по принципу черного или белого списка.

Идея второго расширения, VK Mentions (vk.cc/2GGP5G), принадлежит [id6881|Глебу]. Немногие знают, что упоминания (ссылки на юзера или сообщество с произвольным текстом) работают не только в постах и комментах, но и, например, в личных сообщениях. Только вот привычный формат "@ idXXX (Имя)" / "* idXXX (Имя)" (без пробела после @ или *) не работает. Надо писать "[ idXXX | Имя]" без пробелов. При этом работают только численные id, но не короткие адреса типа durov. А самое главное — когда упоминаете кого-то в посте или комменте через. * или @, внизу всплывает список друзей с "умным" поиском.

Собственно, расширение позволяет делать упоминания в личке точно так же, как это происходит в постах и комментах. К сожалению списки-подсказки пока не работают в инлайн-чатах (тех самых, которые на днях пережили редизайн и переехали в правый нижний угол страницы).

Все исходники есть на GitHub: github.com/Hypnosphi

Важный момент: расширения, в особенности второе, вмешиваются в работу самого сайта. Соответственно, в любой момент они могут вам что-то поломать. В таком случае отключайте расширение (chrome://extensions/) и пишите мне.
Hanging with [id189814 | Denis] is dangerous - sooner or later you start writing extensions for chrome. I want to share a couple.

The first is VK Chatfree (vk.cc/2GGFHB). As you know, the counter of new messages VKontakte takes into account both personal correspondence and chats (conversations). [id16990 | For many] it makes it difficult to live and work: you never know what lies behind this “+1” or “+20”. Recently, it has become possible to mute notifications from individual chats, but this option has no effect on the counter. My extension allows you to select chats that will not be counted in the message counter according to the principle of black or white list.

The idea of ​​the second extension, VK Mentions (vk.cc/2GGP5G), belongs to [id6881 | Gleb]. Few people know that mentions (links to a user or community with arbitrary text) work not only in posts and comments, but also, for example, in private messages. Only here the familiar format "@ idXXX (Name)" / "* idXXX (Name)" (without a space after @ or *) does not work. You must write "[idXXX | Name]" without spaces. In this case, only numerical id works, but not short addresses like durov. And most importantly - when you mention someone in a post or comment through. * or @, a list of friends with "smart" search pops up below.

Actually, the extension allows you to make mentions in PM in the same way as it happens in posts and comments. Unfortunately, the hint lists do not yet work in inline chats (the ones that survived the redesign the other day and moved to the lower right corner of the page).

All sources are on GitHub: github.com/Hypnosphi

An important point: extensions, especially the second, interfere with the site itself. Accordingly, at any time they can break something for you. In this case, disable the extension (chrome: // extensions /) and write to me.
У записи 126 лайков,
14 репостов.
Эту запись оставил(а) на своей стене Филипп Рябчун

Понравилось следующим людям