TED

Hide readed article

当前为 2016-04-13 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name TED
  3. // @version 1
  4. // @description Hide readed article
  5. // @include https://www.ted.com/*
  6. // @include http://www.ted.com/*
  7. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js
  8. // @namespace https://greasyfork.org/users/38384
  9. // ==/UserScript==
  10.  
  11. $(function() {
  12. var myArray = ['why_gun_violence', 'angelica_dass'];
  13. for (var i=0; i<myArray.length; i++) {
  14. $('a[href*='+myArray[i]+']').closest('.col').css("opacity", "0.1");
  15. }
  16. });