Quietube Auto-Redirect

By Cyranix Last update Mar 21, 2011 — Installed 8,193 times.

"Original link" anti-redirect is broken

in
Subscribe to "Original link" anti-redirect is broken 2 posts, 2 voices



Emilio Scriptwright

Hi,

The other day I noticed this, the &redirect=0 was being inserted on the "Get Bookmarklet" link, instead of the "Original link"

The fix: replace the 3 with a 4 in var original = document.getElementsByTagName("a")[3];

The "fixed" line reads: var original = document.getElementsByTagName("a")[4];

 
Cyranix Script's Author

Hey Emilio, where are you seeing this? Send me a link to a sample, because when I visit a video page the redirect is on the right link. Nothing has changed in the layout, AFAIK...

EDIT -- I changed that part of the script just in case. Now instead of searching for the anchor tag by index, it searches by the inner text.