var links_pattern var links https vk com alowir Alowir https vk com mi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var links_pattern = {};
var links = {'https://vk.com/alowir': 'Alowir'
,'https://vk.com/mikekasadov': 'forse'
,'https://vk.com/id185729600': 'Kenny13372'
,'https://vk.com/perbuy_czar': 'Phoenixxx_Czar'
,'https://vk.com/mmxvv': 'Salamakeykum'
,'https://vk.com/palenkov2017': '[CM]palenkov'
,'https://vk.com/hayko.karapetyan': '[CM]ARM25'
,'https://vk.com/d.mayvis': '[CM]Mayvis'
,'https://vk.com/ehtlervlone': '[CM]OlegEhtler'
// Admins
,'https://vk.com/gospodin_buero': 'Artem_Buero'
,'https://vk.com/shinn0': 'La_Mettrie'
,'https://vk.com/idsznachitsnake': 'Snake_Firm'
,'https://vk.com/cm_rafael': '[CM]Рафаэль'
,'https://vk.com/danya39': 'Ch0c0Cube'
,'https://vk.com/omg_o_o': '-Masson-'
,'https://vk.com/genius_cm': 'GеNius'
,'https://vk.com/id345781250': 'JiM'};
for (key in links)
{
links_pattern[key] = links[key].replace("\[", "\\[").replace("\]", "\\]");
}
setInterval(function()
{
var users = document.querySelectorAll('a.im-mess-stack--lnk')
for (var i = 0; i < users.length; i++)
{
var pattern = new RegExp('(' +links_pattern[users[i].href] +')');
if (!users[i].innerHTML.match(pattern) && links[users[i].href])
users[i].innerHTML = users[i].innerHTML +' (' +links[users[i].href] +')';
}
}, 200);