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: Indalecio, 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 May 05, 2014 3:59 am
Location: Horicon, WI (USA)

YouTube Video Tutorial links not clickable here

Postby treego14 » Mon Aug 07, 2017 3:19 pm

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
Board Warrior
Board Warrior
Posts: 2448
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

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

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
Board Warrior
Board Warrior
Posts: 2448
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

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

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: 19679
Joined: Sun Aug 28, 2011 5:27 pm
Location: 58.5°N 15.5°E
Contact:

Re: YouTube Video Tutorial links not clickable here

Postby Moonchild » Mon Aug 07, 2017 3:51 pm

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.
Image

User avatar
Pale Moon Rising
Board Warrior
Board Warrior
Posts: 2448
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

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

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 May 05, 2014 3:59 am
Location: Horicon, WI (USA)

Re: YouTube Video Tutorial links not clickable here

Postby treego14 » Mon Aug 07, 2017 4:40 pm

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
Lunatic
Lunatic
Posts: 280
Joined: Tue Jun 06, 2017 7:38 am

Re: YouTube Video Tutorial links not clickable here

Postby adesh » Mon Aug 07, 2017 4:40 pm

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
Board Warrior
Board Warrior
Posts: 2448
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

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

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
Newbie
Newbie
Posts: 3
Joined: Thu Oct 12, 2017 8:27 pm

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Thu Oct 12, 2017 8:34 pm

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_
Moon lover
Moon lover
Posts: 78
Joined: Mon Mar 02, 2015 2:18 pm
Location: Moscow

Re: YouTube Video Tutorial links not clickable here

Postby _yuyu_ » Thu Oct 12, 2017 9:05 pm

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: 2834
Joined: Mon Oct 03, 2011 10:19 am
Location: Texas, USA

Re: YouTube Video Tutorial links not clickable here

Postby Night Wing » Thu Oct 12, 2017 9:42 pm

Works for me as well using linux Pale Moon (27.5.1).
Linux Mint 18.2 (Sonya) 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
Moongazer
Moongazer
Posts: 11
Joined: Mon Jul 18, 2016 9:12 pm

Re: YouTube Video Tutorial links not clickable here

Postby Nightbird » Thu Oct 12, 2017 9:50 pm

Same here, i don't need a clean profile

NikolaNewton
Newbie
Newbie
Posts: 3
Joined: Thu Oct 12, 2017 8:27 pm

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Thu Oct 12, 2017 11:42 pm

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
Newbie
Newbie
Posts: 3
Joined: Thu Oct 12, 2017 8:27 pm

Re: YouTube Video Tutorial links not clickable here

Postby NikolaNewton » Thu Oct 12, 2017 11:50 pm

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

_yuyu_
Moon lover
Moon lover
Posts: 78
Joined: Mon Mar 02, 2015 2:18 pm
Location: Moscow

Re: YouTube Video Tutorial links not clickable here

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

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
Board Warrior
Board Warrior
Posts: 2448
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

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

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
Board Warrior
Board Warrior
Posts: 2448
Joined: Tue Oct 06, 2015 4:59 pm
Location: Los Angeles CA USA

Re: YouTube Video Tutorial links not clickable here

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

_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 May 05, 2014 3:59 am
Location: Horicon, WI (USA)

Re: YouTube Video Tutorial links not clickable here

Postby treego14 » Fri Oct 20, 2017 2:22 am

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!


Return to “General support”

Who is online

Users browsing this forum: Impressed, LimboSlam, Moz [Crawler], Pale Moon Rising, rlcoone and 19 guests