Skip to content

Commit

Permalink
Fix: upon using button it was marked as "Watched"
Browse files Browse the repository at this point in the history
  • Loading branch information
vBm committed Mar 11, 2013
1 parent e433b85 commit 5e467cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addic7ed.followshows.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// @author vBm <[email protected]>
// @include http://followshows.com/show/*
// @include http://www.followshows.com/show/*
// @version 1.1
// @date 06/02/2013
// @version 1.2
// @date 11/03/2013
// ==/UserScript==

var showInfo = document.location.href.split('/');
Expand All @@ -18,7 +18,7 @@ var showInfoEpisodeName = document.getElementsByClassName('episode-title')[0].te
var subtitlesUrl = 'http://www.addic7ed.com/serie/'+showInfoName+'/'+showInfoSeason+'/'+showInfoEpisode+'/'+showInfoEpisodeName;

var subsbutton = document.createElement("a");
subsbutton.setAttribute('class', 'btn watch-episode-button addic7ed');
subsbutton.setAttribute('class', 'btn addic7ed');
subsbutton.setAttribute('style', 'top:24px');
subsbutton.textContent = 'Addic7ed subs';
subsbutton.addEventListener('click', function() { window.open(subtitlesUrl) });
Expand Down

0 comments on commit 5e467cc

Please sign in to comment.