vvFilter

Filtering...

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         vvFilter
// @namespace    https://ru.wikipedia.org/wiki/User:Neolexx
// @version      0.1
// @description  Filtering...
// @author       Neolexx
// @match        https://ru.wikipedia.org/*
// @grant        none
// @license      Beerware
// ==/UserScript==

var CategorySection = $('catlinks');

if (!!CategorySection) {
  var CategoryLinks = CategorySection.getElementsByTagName('a');
  var found = false;
  for (var i = 0; i < CategoryLinks.length; i++) {
    if ( /Художники СССР/.test(CategoryLinks[i].title) ) {
      found = true;
      break;
    }
  }
  if (found) {
    var thumbs = $('bodyContent').getElementsByTagName('img');
    for (var i = 0; i < thumbs.length; i++) {
      if (thumbs[i].width >= 150) {
        thumbs[i].style.WebkitFilter = 'blur(10px)';
        thumbs[i].addEventListener('click', new Function('evt','this.style.WebkitFilter = "none";'), false);
      }
    }
  }
}

function $(id) {
  return document.getElementById(id);
}