Lorentz83 / userscripts

My Greasemonkey userscripts
8 stars 0 forks source link

GoogleImageDirectLink breaks video search #10

Closed Lorentz83 closed 7 years ago

Lorentz83 commented 8 years ago

Using google video search, the link on the video preview is overwritten to https://www.google.com/undefined

Example page: https://www.google.com/search?q=funny+pet&bih=859&tbm=vid

See comment

ghost commented 7 years ago

replacing line 138 with if ((as[0].href != '') && (! as[0].href.endsWith('#'))) { "fixes" it