Fix special char handling
This commit is contained in:
parent
9794773509
commit
11785efddd
1 changed files with 3 additions and 2 deletions
|
@ -167,7 +167,7 @@ function create_odi_div(url)
|
||||||
var load_button = document.createElement("button");
|
var load_button = document.createElement("button");
|
||||||
load_button.className = "load_button";
|
load_button.className = "load_button";
|
||||||
load_button.odi_div = div;
|
load_button.odi_div = div;
|
||||||
load_button.innerHTML = basename;
|
load_button.innerHTML = decodeURIComponent(unescape(basename));
|
||||||
load_button.onclick = function()
|
load_button.onclick = function()
|
||||||
{
|
{
|
||||||
this.parentElement.removeChild(this);
|
this.parentElement.removeChild(this);
|
||||||
|
@ -693,7 +693,8 @@ function normalize_url(url)
|
||||||
}
|
}
|
||||||
url = url.replace("http:", protocol);
|
url = url.replace("http:", protocol);
|
||||||
url = url.replace("https:", protocol);
|
url = url.replace("https:", protocol);
|
||||||
url = decodeURIComponent(unescape(url));
|
/*url = decodeURIComponent(unescape(url));*/
|
||||||
|
console.log(url);
|
||||||
url = url.replace("imgur.com/gallery/", "imgur.com/a/");
|
url = url.replace("imgur.com/gallery/", "imgur.com/a/");
|
||||||
|
|
||||||
if (url.indexOf("vidble") >= 0)
|
if (url.indexOf("vidble") >= 0)
|
||||||
|
|
Loading…
Reference in a new issue