MyShows: add KickAss.to

Add icon for KickAss.to torrent tracker for each TV series

当前为 2015-08-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name MyShows: add KickAss.to
  3. // @namespace none
  4. // @description Add icon for KickAss.to torrent tracker for each TV series
  5. // @include http://myshows.me/profile/
  6. // @match http://myshows.me/profile/
  7. // @version 0.3
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12. $(function(){
  13. $('div.plateHint').remove();
  14. $("span[class^='subHeader show'").after(function(){
  15. var tv_series=encodeURIComponent($(this).text().replace(/[^a-z0-9\s]/gi, ''));
  16. return '<a target="_blank" title="kickass.to" href="https://kickass.to/usearch/'+ tv_series + '/?field=time_add&sorder=desc"> <img src="https://kastatic.com/images/logos/kickasstorrents_48x48.png" height="24" width="24"></a>';
  17. });
  18.  
  19. });