Google YouTube search link

Adds a YouTube search link next to the Videos link (e.g. Web, Images, Videos, YouTube, News, Maps, Shopping, ...)

< Feedback on Google YouTube search link

Review: Good - script works

§
Posted: 2021-01-15
Google just changed something that's keeping this script from working. I'm just not good enough at Javascript to fix it myself. I think maybe the class names may have changed, but I can't say for sure.

Anyway, thank you for making this script, I use it all the time. I've even added 5 more sites to it, with SVG icons instead of words to keep the size down. So yeah, hopefully the fix isn't too difficult.
darkredAuthor
§
Posted: 2021-01-15
Edited: 2021-01-15

Greetings

Thanks for your kind words.

The script works fine for me with Tampermonkey/Violentmonkey with Chrome/Firefox.

Could you please give some details:

  • script manager (Greasemonkey is not supported) and browser versions,
  • an example google search URL where it doesn't work for you, and even better a screenshot
    (the script works fine for me for google.com and google.gr, which I checked)
  • is there an error in Console?
  • maybe there's a conflict with some other userscript/extension? Have you tried in a fresh browser profile?
darkredAuthor
§
Posted: 2021-01-15

Please ignore my last comment:
I was wrong: the script only works with TM in Chrome in my everyday profile.
Investigating.

darkredAuthor
§
Posted: 2021-01-15

Please update to the new version.

§
Posted: 2021-01-15
Edited: 2021-01-15
EDIT: I didn't see your latest reply until just now. I'll go ahead and update.

Sure. I'm on Windows 10 Pro, in case that matters. I've tested it with Chrome and Edge and both have the same results. I've made a brand new profile in Edge with nothing else installed and it shows the same behavior. Here's all the information for both browsers, including the console errors and screenshots. I'm also including a shot of the page source, just in case Google is giving me a different version of the search results page.

Microsoft Edge Version 87.0.664.75 (Official build) (64-bit)
Tampermonkey v4.11.6120

URL:
https://www.google.com/search?ei=B68BYNzsCuak_Qa8tbSgDg&q=test&oq=test&gs_lcp=CgZwc3ktYWIQDDIHCAAQsAMQQzIHCC4QsAMQQzIHCAAQsAMQQzIHCAAQsAMQQzIHCAAQsAMQQzIHCAAQsAMQQzIHCAAQsAMQQzIHCAAQsAMQQzIHCAAQsAMQQzIHCAAQsAMQQ1AAWABgmkJoAXACeACAAQCIAQCSAQCYAQCqAQdnd3Mtd2l6yAEKwAEB&sclient=psy-ab&ved=0ahUKEwicjN2Hm57uAhVmUt8KHbwaDeQQ4dUDCA0

Console error (multiple, repeated):
userscript.html?name=Google%20YouTube%20search%20link.user.js&id=c89523ed-25fa-4bf6-a07e-982371426c25:29
Uncaught TypeError: Cannot read property 'parentNode' of null at MutationObserver.process
(userscript.html?name=Google%20YouTube%20search%20link.user.js&id=c89523ed-25fa-4bf6-a07e-982371426c25:29)

__________

Google Chrome Version 87.0.4280.141 (Official Build) (64-bit)
Tampermonkey v4.11

URL:
https://www.google.com/search?newwindow=1&rlz=1C1CHBF_enUS922US922&sxsrf=ALeKk02eW8O8gVZxOUAtpYvxqk3WbVotIA%3A1610722001981&ei=0aoBYKu8O8jm_QamxpnoDQ&q=test&oq=test&gs_lcp=CgZwc3ktYWIQAzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQR1AAWABgrIFdaABwAngAgAEAiAEAkgEAmAEAqgEHZ3dzLXdpesgBCMABAQ&sclient=psy-ab&ved=0ahUKEwjr6ImGl57uAhVIc98KHSZjBt0Q4dUDCA0&uact=5

Console error (multiple, repeated):
userscript.html?name=Google%3A%20YouTube%20search%20link.user.js&id=5914c088-a6da-4eec-85d8-b6f4e75aa5dd:30
Uncaught TypeError: Cannot read property 'parentNode' of null at MutationObserver.process
(userscript.html?name=Google%3A%20YouTube%20search%20link.user.js&id=5914c088-a6da-4eec-85d8-b6f4e75aa5dd:30)
§
Posted: 2021-01-15
Everything's fixed! Tried it on both browsers and we're all good. Thank you very much!
darkredAuthor
§
Posted: 2021-01-15
Edited: 2021-01-15

I'm glad it works ok for you! And, sorry for the trouble. Thanks for the rating!

Post reply

Sign in to post a reply.