Error

in
Subscribe to Error 3 posts, 2 voices



Outeiro User
FirefoxX11

hello again. I have a new problem: I frecuently use the portuguese language section of IMDb but now your script doesn't work in this section.

Whatever page like http://portuguese.imdb.com/title/tt../

return the error: "You need to log in to IMDb for this script to work"

http://portuguese.imdb.com/title/tt1182345/ - > login error message
http://www..imdb.com/title/tt1182345/ - > ok
http://akas.imdb.com/title/tt1182345/ - > ok

Can you make the script active in portuguese.imdb.com?

Thank you.

 
Futuros Script's Author
FirefoxWindows

The different localizations don't have priority right now.

A quick fix...

Line 922 replace

var result = account.innerHTML.match(/\s*([^>]+)'s account/i);
with
if(this.loc.indexOf('portuguese')!=-1){
	var result = account.innerHTML.match(/Conta.de.([^<]+)/i);
} else {
	var result = account.innerHTML.match(/\s*([^>]+)'s account/i);
}

 
Outeiro User
FirefoxX11

Thank you. It works perfect now.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel