Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
m1m1s1ku committed May 10, 2017
1 parent fd97b30 commit 7d6c3ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ThiWeb Crypt/Decrypt",
"version": "1.2.3.4",
"version": "1.2.3.5",
"manifest_version": 2,
"description": "Crypt / Auto-decrypt Links on ThiWeb",
"homepage_url": "https://www.thiweb.com",
Expand Down
9 changes: 6 additions & 3 deletions src/inject/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,13 @@ function getFromZerawApi(elems) {
let decodeArray = res.message.split(",");
let codedArray = res.coded.split(",");

var countT = 0;

for(let v = 0; v < elems.length; v++){
if(elems[v].innerHTML == codedArray[v]){
elems[v].innerHTML = parseAndReplaceUrls(decodeArray[v]); // Sync index with countDiff ;)
}
if(elems[v].innerHTML.trim() == codedArray[countT]){
elems[v].innerHTML = parseAndReplaceUrls(decodeArray[countT]); // Sync index with countDiff ;)
countT++;
}
}
} else {
console.error("Erreur serveur", this.status, this.statusText);
Expand Down

0 comments on commit 7d6c3ae

Please sign in to comment.