Skip to content

Commit

Permalink
fix extended links in sub detail
Browse files Browse the repository at this point in the history
  • Loading branch information
richja committed Jan 2, 2016
1 parent 139a009 commit 1317f7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ function updateCommentFeed (lastVisit) {
var counter = 0,
counterAns = 0,
counterMentions = 0;
$(rawHTML).find("#side1wrap ul:nth-child(4) li").each(function(index, value) {
$("#side1wrap ul").eq(3).find("li").each(function(index, value) {
// $(rawHTML).find("#side1wrap ul:nth-child(4) li").each(function(index, value) {
var pattern = /([^\[][^\]]*)/,
matches = pattern.exec($(value).text()),
dateSplit = matches[0].split("."),
Expand Down Expand Up @@ -585,7 +586,7 @@ $(document).ready(function() {
if ($("a[href$='Logoff=true']").length)
{
// odkaz pro prime vyhledani dalsich verzi, pouze prihlase premium, zadny fulltext
$("a[href^='index.php?Fulltext']").after("<a title =\"Další verze titulků konkrétního filmu (pouze pro premium uživatele)\" class =\"plus-version\" href=\"http://www.titulky.com/index.php?Searching=AdvancedResult&AFulltext=&ANazev="+title+"&ARelease=&ARok="+year+"\">Další přesné verze</a>");
$("a[href^='/?Fulltext']").after("<a title =\"Další verze titulků konkrétního filmu (pouze pro premium uživatele)\" class =\"plus-version\" href=\"http://www.titulky.com/index.php?Searching=AdvancedResult&AFulltext=&ANazev="+title+"&ARelease=&ARok="+year+"\">Další přesné verze</a>");
}

// odkaz na vyhledani titulku celeho serialu
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Titulky plus",
"short_name": "Titulky+",
"author": "Jan Richter",
"version": "0.9",
"version": "0.91",
"description": "Vylepšení webu titulky.com pro pohodlnější práci (nejen pro překladatele).",
"manifest_version": 2,
"icons": {
Expand Down

0 comments on commit 1317f7b

Please sign in to comment.