Skip to content

Commit

Permalink
0.18.9
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisKori authored May 21, 2019
1 parent 5cfffbf commit 0de72bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion check.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ function report(name,b) {
function checkRuTracker() {
for(let e of d.head.querySelectorAll('link')) {
if (e.href.indexOf('//static.t-ru.org/') > -1) return report('rutracker',1);
if (e.title=="Поиск на RuTracker.org") return report('rutracker',0);
}
return report('rutracker',0);
}

function checkTitle(l) {
if (l.indexOf('rutracker.org') > -1 || l.match(/\brutracker\b/)) checkRuTracker();
else if (l.indexOf('зеркало rutor.info ') === 0) report('rutor',1);
else if (l.match(/(?:[^\w]|^)rutor\.org\b/) || l.match(/^rutor\b/)) report('rutor',0);
else if (l.indexOf(' :: nnm-club')> -1) report('nnmclub',0);
else {
for(let e of d.head.querySelectorAll('link')) {
if (e.rel == 'search' && e.title && e.title.toLowerCase().indexOf('rutracker.org') > -1)
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "RKN Alert",
"short_name": "RKN Alert",
"description": "Показывает цветом иконки, внесён ли сайт в реестр Роскомнадзора.",
"version": "0.18.8",
"version": "0.18.9",
"icons": {
"16": "images/logo_16.png",
"32": "images/logo_32.png",
Expand Down

0 comments on commit 0de72bb

Please sign in to comment.