Greasy Fork is available in English.

TED

Hide readed article

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

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

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     TED
// @description Hide readed article
// @include    https://www.ted.com/*
// @include    http://www.ted.com/* 
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js
// @version 0.0.1.20161031142838
// @namespace https://greasyfork.org/users/38384
// ==/UserScript==

 $(function() {
   // var myArray = ['May 2017'];
    var tempArray = ['Enough with the fear of fat', 'How my son', 'Chinese zodiac', 'genome and build', 'Drawings that show', 'nurses and other rebel designers'];
    var time = $(".meta__item .meta__val").length;
    for (var j=0; j<time; j++) {
        /*for (var i=0; i<myArray.length; i++) {
            if ($('.meta__item .meta__val').eq(j).html().trim() == myArray[i]) {
              $('.meta__item .meta__val').eq(j).closest('.col').css("opacity", "0.1");
            }
        }*/
        for (var i=0; i<tempArray .length; i++) {
            if ($('.media__message h4 a').eq(j).html().trim().indexOf(tempArray[i]) != -1) {
              $('.meta__item .meta__val').eq(j).closest('.col').css("opacity", "0.1");
            }
        }
   }
  });