TED

Hide readed article

Verze ze dne 09. 06. 2016. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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.20160609111100
// @namespace https://greasyfork.org/users/38384
// ==/UserScript==

 $(function() {
    var myArray = ['May 2017'];
    var tempArray = ['How my son', 'Chinese zodiac'];
    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");
            }
            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");
            }
        }
   }
  });