Jump to content

ArcticFoxie/NotHereToPlayGames -- 360Chrome v13.5.2022 rebuild 3


Recommended Posts

The problem is going to be in one of these scripts.

I can dig into it deeper over the weekend but I'd start with just blocking one at a time via uMatrix/uBlock and see if that restores website functionality.

image.thumb.png.0c22bf2660ab6748f52341854350e15d.png

Link to comment
Share on other sites


Thanks for the analysis!
What I'm seeing is this -

Clipboard-1.jpg.5b8e878afa7f6cc86cce4560ae8dbb2b.jpg

If I click on 'Go to the Home page' the page loads for an instant, and then goes back to the same error message.
Other parts of the site, such as the pages for booking tickets, still seem to work.

The problem with https://www.lner.co.uk/ is different, it's just not formatted properly, but I think this was a different problem.

If I go to the GWR site with Firefox 52.9, it does display, but completely mis-formatted too.

I guess these are unresolvable problems which will start to affect more and more sites as time goes on.
Whether it's due to the out of date Chromium version or JavaScript incompatibilities, it will only get worse.
:(

Link to comment
Share on other sites

1 hour ago, UCyborg said:

Does no one read the console errors anymore? Object.hasOwn() is required, implemented since Chrome 93.

lol, a bad habit.  I generally jump straight to making a site "readable" and I can do that most of the time just by blocking scripts or letting a few in without letting all in.

I wonder of Object.hasOwn() can be injected the same way we inject structuredClone?

Link to comment
Share on other sites

I don't know, it does exist on GitHub, but I'm not familiar with npm and whether compiling it would give an injectable version.

Link to comment
Share on other sites

Posted (edited)

This works at least in the case of https://www.gwr.com/

 

// ==UserScript==
// @name Inject Object.hasOwn Polyfill
// @version 0.0.1
// @match *://*/*
// @run-at document-start
// @grant none
// ==/UserScript==

if (!Object.hasOwn) {
  Object.defineProperty(Object, "hasOwn", {
    value: function (object, property) {
      if (object == null) {
        throw new TypeError("Cannot convert undefined or null to object")
      }
      return Object.prototype.hasOwnProperty.call(Object(object), property)
    },
    configurable: true,
    enumerable: false,
    writable: true
  })
}

 

Source:  https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js

Another read:  https://stackoverflow.com/questions/69561596/object-hasown-vs-object-prototype-hasownproperty

Edited by NotHereToPlayGames
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...