YouTube Video Tutorial links not clickable here

Users and developers helping users with technical Pale Moon issues (Windows and other non-Linux O.S.). Please direct questions about the Linux version to the appropriate Linux board.

Moderators: trava90, satrow

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions for Linux, Android and Mac to the dedicated boards.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!
treego14
Apollo supporter
Apollo supporter
Posts: 36
Joined: Mon, 05 May 2014, 03:59
Location: Horicon, WI (USA)

YouTube Video Tutorial links not clickable here

Postby treego14 » Mon, 07 Aug 2017, 15:19

Hello. I thought I would pass this on to the Pale Moon community and see if there is any good workarounds for this. I cannot click on the YouTube "play" links here. It works fine in Google Chrome.

https://quizizz.com/resources?utm_sourc ... _tutorials

P.S. Pale Moon is terrific!

User avatar
Pale Moon Rising
Knows the dark side
Knows the dark side
Posts: 3114
Joined: Tue, 06 Oct 2015, 16:59
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

Postby Pale Moon Rising » Mon, 07 Aug 2017, 15:44

They do not work for me either --- It's worth noting that they don't work in FF for me as well.
Current Pale Moon(x86) Release | WIN7(64-bit) | I3 CPU, 2.53 GHz, 4G RAM

Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers

Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Pale Moon Rising
Knows the dark side
Knows the dark side
Posts: 3114
Joined: Tue, 06 Oct 2015, 16:59
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

Postby Pale Moon Rising » Mon, 07 Aug 2017, 15:46

Of course as one would expect --- they work fine in Chrome. :roll: :lol:
Current Pale Moon(x86) Release | WIN7(64-bit) | I3 CPU, 2.53 GHz, 4G RAM

Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers

Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 21188
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: YouTube Video Tutorial links not clickable here

Postby Moonchild » Mon, 07 Aug 2017, 15:51

Pale Moon Rising wrote:Of course as one would expect --- they work fine in Chrome. :roll: :lol:

If that is all the web designers care about and test in, then yeah, of course it'll work in Chrome.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"The wisest men follow their own direction." - Euripedes

User avatar
Pale Moon Rising
Knows the dark side
Knows the dark side
Posts: 3114
Joined: Tue, 06 Oct 2015, 16:59
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

Postby Pale Moon Rising » Mon, 07 Aug 2017, 15:56

Also no surprise they work in Opera as well (Chrome, Opera both using Blink engines).

They do not work in IE11 (trident engine) either, in fact some of the website is considered unsecure and will not render (even if I request the blocked content for some reason).
Current Pale Moon(x86) Release | WIN7(64-bit) | I3 CPU, 2.53 GHz, 4G RAM

Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers

Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

treego14
Apollo supporter
Apollo supporter
Posts: 36
Joined: Mon, 05 May 2014, 03:59
Location: Horicon, WI (USA)

Re: YouTube Video Tutorial links not clickable here

Postby treego14 » Mon, 07 Aug 2017, 16:40

OK ... thanks ... I tried a user-agent-override in about:config so that the site would think I was using Google Chrome and that did not help, either. I guess it's a site that I would have to use my "Open in Chrome" extension with.

User avatar
adesh
Astronaut
Astronaut
Posts: 519
Joined: Tue, 06 Jun 2017, 07:38

Re: YouTube Video Tutorial links not clickable here

Postby adesh » Mon, 07 Aug 2017, 16:40

Probably because the site is using "forEach" on NodeList which is unimplemented in some browsers.
Obviously this is poor web development practice to use something which is not standard across most browsers.

Error in console:TypeError: thumbnails.forEach is not a function
JS Context (where this occurrs):
(function() {
var thumbnails = document.querySelectorAll('.thumbnail-wrapper .yt-play-btn');
// below line throws error and aborts script execution, hence no click events are bound to video thumbnails
thumbnails.forEach(function(thumb) {
thumb.addEventListener('click', function(event) {
var url = event.currentTarget.parentNode.querySelector('img').getAttribute('data-url');
var videoModal = document.querySelector('.video-modal-container .video-modal');
videoModal.querySelector('#player').setAttribute('src', url);
videoModal.classList.remove('hidden');
});
});
})();

User avatar
Pale Moon Rising
Knows the dark side
Knows the dark side
Posts: 3114
Joined: Tue, 06 Oct 2015, 16:59
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

Postby Pale Moon Rising » Mon, 07 Aug 2017, 19:27

treego14 wrote:OK ... thanks ... I tried a user-agent-override in about:config so that the site would think I was using Google Chrome and that did not help, either. I guess it's a site that I would have to use my "Open in Chrome" extension with.
Yep, I use the same extension for situations like this (comes in handy). ;)
Current Pale Moon(x86) Release | WIN7(64-bit) | I3 CPU, 2.53 GHz, 4G RAM

Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers

Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

NikolaNewton
Moongazer
Moongazer
Posts: 7
Joined: Thu, 12 Oct 2017, 20:27

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Thu, 12 Oct 2017, 20:34

As of version 50 FireFox implements NodeList.prototype.forEach, as do most other major browsers.

I made this greasemonkey script to patch the function for myself:

Code: Select all

// ==UserScript==
// @name        NodeListforEachPalemoonFill
// @namespace   palemoonFill
// @include     *
// @version     1
// @grant       none
// @run-at document-start
// ==/UserScript==
NodeList.prototype.forEach = Array.prototype.forEach


Works for the broken hyperlinks on etmyonline.com.

_yuyu_
Fanatic
Fanatic
Posts: 115
Joined: Mon, 02 Mar 2015, 14:18
Location: Moscow

Re: YouTube Video Tutorial links not clickable here

Postby _yuyu_ » Thu, 12 Oct 2017, 21:05

Links open for me on PM 27.5.1 flawlessly... also on clean profile.

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 3230
Joined: Mon, 03 Oct 2011, 10:19
Location: Texas, USA

Re: YouTube Video Tutorial links not clickable here

Postby Night Wing » Thu, 12 Oct 2017, 21:42

Works for me as well using linux Pale Moon (27.5.1).
Linux Mint 18.3 (Sylvia) Xfce 64-Bit (Default OS) with 64-Bit linux Pale Moon
Windows 7 SP1 64 Bit (Backup OS) with 32-Bit windows Pale Moon

Nightbird
Fanatic
Fanatic
Posts: 117
Joined: Mon, 18 Jul 2016, 21:12

Re: YouTube Video Tutorial links not clickable here

Postby Nightbird » Thu, 12 Oct 2017, 21:50

Same here, i don't need a clean profile

NikolaNewton
Moongazer
Moongazer
Posts: 7
Joined: Thu, 12 Oct 2017, 20:27

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Thu, 12 Oct 2017, 23:42

I'm not sure you guys mean 27.5.1 with or without NodeList.prototype.forEach = Array.prototype.forEach

On the website, http://www.etymonline.com/word/observe, I receive the JS error:
TypeError: t.forEach is not a function
unless I use my greasemonkeyscript.

To clarify the "hyperlinks" are not real anchor tags, but hyperlinked through JS.

Also, the OP's quiz site no longer throws an error about .forEach when it loads with or without a backfill from my script.

However, the etmyonline site does use .forEach on NodeList, and the embedded hyperlinks do not work for me because of that.

NikolaNewton
Moongazer
Moongazer
Posts: 7
Joined: Thu, 12 Oct 2017, 20:27

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Thu, 12 Oct 2017, 23:50

Also on http://www.etymonline.com/word/observe, by embedded hyperlinks I am referring to links like "ob-".

_yuyu_
Fanatic
Fanatic
Posts: 115
Joined: Mon, 02 Mar 2015, 14:18
Location: Moscow

Re: YouTube Video Tutorial links not clickable here

Postby _yuyu_ » Fri, 13 Oct 2017, 11:39

NikolaNewton wrote:I'm not sure you guys mean 27.5.1 with or without NodeList.prototype.forEach = Array.prototype.forEach
On the website, http://www.etymonline.com/word/observe, I receive the JS error:
TypeError: t.forEach is not a function
unless I use my greasemonkeyscript.

Yotube links from the first post and links on http://www.etymonline.com/word/observe do work for me without any additional script.

User avatar
Pale Moon Rising
Knows the dark side
Knows the dark side
Posts: 3114
Joined: Tue, 06 Oct 2015, 16:59
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

Postby Pale Moon Rising » Fri, 13 Oct 2017, 15:45

treego14 wrote:Hello. I thought I would pass this on to the Pale Moon community and see if there is any good workarounds for this. I cannot click on the YouTube "play" links here. It works fine in Google Chrome.

https://quizizz.com/resources?utm_sourc ... _tutorials

P.S. Pale Moon is terrific!
I can now happily report (where they did not before) that the links DO work for me now for this posted URL using the latest Pale Moon 27.5.1 release. :clap: ... and yes Pale Moon is the greatest!! :thumbup:
Current Pale Moon(x86) Release | WIN7(64-bit) | I3 CPU, 2.53 GHz, 4G RAM

Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers

Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Pale Moon Rising
Knows the dark side
Knows the dark side
Posts: 3114
Joined: Tue, 06 Oct 2015, 16:59
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

Postby Pale Moon Rising » Fri, 13 Oct 2017, 15:48

_yuyu_ wrote:Yotube links from the first post and links on http://www.etymonline.com/word/observe do work for me without any additional script.
For this URL, they all work for me too, including the links like "ob-" (referenced above by NikolaNewton as not working), using Pale Moon 27.5.1 on Windows 7.
Current Pale Moon(x86) Release | WIN7(64-bit) | I3 CPU, 2.53 GHz, 4G RAM

Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers

Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

treego14
Apollo supporter
Apollo supporter
Posts: 36
Joined: Mon, 05 May 2014, 03:59
Location: Horicon, WI (USA)

Re: YouTube Video Tutorial links not clickable here

Postby treego14 » Fri, 20 Oct 2017, 02:22

Pale Moon Rising wrote:
treego14 wrote:Hello. I thought I would pass this on to the Pale Moon community and see if there is any good workarounds for this. I cannot click on the YouTube "play" links here. It works fine in Google Chrome.

https://quizizz.com/resources?utm_sourc ... _tutorials

P.S. Pale Moon is terrific!
I can now happily report (where they did not before) that the links DO work for me now for this posted URL using the latest Pale Moon 27.5.1 release. :clap: ... and yes Pale Moon is the greatest!! :thumbup:

Great! Thank you!

NikolaNewton
Moongazer
Moongazer
Posts: 7
Joined: Thu, 12 Oct 2017, 20:27

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Mon, 23 Oct 2017, 16:54

Really does not work for me, Pale Moon 27.5.1 Windows Server 2012.

When you type:

Code: Select all

NodeList.prototype.forEach

in the console, does it say 'undefined' or 'function()'?

Mine says 'undefined'.

Image

User avatar
badnick
Lunatic
Lunatic
Posts: 260
Joined: Thu, 23 Mar 2017, 19:56

Re: YouTube Video Tutorial links not clickable here

Postby badnick » Mon, 23 Oct 2017, 16:59

Work for me(27.5.1/64----Win 10)


Return to “General support”

Who is online

Users browsing this forum: Linkdex [Bot] and 4 guests