From 25548f38ac58e7f10ece3385f4ec05acc97c17b5 Mon Sep 17 00:00:00 2001 From: Nyako Date: Mon, 1 Jun 2026 12:11:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20NyakoScr=5Fvk=5Fblur/script.user.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NyakoScr_vk_blur/script.user.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 NyakoScr_vk_blur/script.user.js diff --git a/NyakoScr_vk_blur/script.user.js b/NyakoScr_vk_blur/script.user.js new file mode 100644 index 0000000..63ac64e --- /dev/null +++ b/NyakoScr_vk_blur/script.user.js @@ -0,0 +1,32 @@ +// ==UserScript== +// @name VK Auto blur +// @namespace NyakoScr_vk_blur +// @match https://vk.com/* +// @grant none +// @version 0.1 +// @author https://t.me/Nyako_TW +// @license Apache License 2.0 +// @downloadURL https://git.nekono.su/Nyako/script-dev-ru/raw/branch/main/NyakoScr_vk_blur/script.user.js +// @updateURL https://git.nekono.su/Nyako/script-dev-ru/raw/branch/main/NyakoScr_vk_blur/script.user.js +// @description 05.06.2022, 15:49:51 +// ==/UserScript== +function repair() { + data_list = document.getElementsByTagName("a"); + + style_nyako = ".NyakoBlur{filter: blur(10px);}.NyakoBlur:hover{filter: blur(0px);}"; + + style_el = document.createElement('style'); + style_el.setAttribute("type", "text/css"); + style_el.textContent = style_nyako; + document.head.append(style_el); + + data_list.forEach(function(item, i, data_list) { + if (item.href.includes("https://vk.com/photo")){ + item.classList.add("NyakoBlur"); + } + if (item.href.includes("https://vk.com/video")){ + item.classList.add("NyakoBlur"); + } + }); +} +setInterval(repair, 100); \ No newline at end of file