Jump to content

Monkey Scripts


NotHereToPlayGames

Recommended Posts

  • 2 weeks later...

On 11/9/2023 at 3:27 PM, dmiranda said:

enhancer for yt used to be flawless. Now it makes yt stutters

These 2 should help:
Force standard frame rates (24, 25, 30 FPS) ON
Force MP4 format and AVC codec (H.264) ON

Link to comment
Share on other sites

  • 3 weeks later...
On 10/19/2023 at 7:50 PM, Mathwiz said:

What - no polyfills? Here are a few contributed by n16s. Should be good on both Chrome (prior to version indicated) and FF-derived browsers.

// ==UserScript==
// @name Inject findLast() Polyfill [97]
// @version 0.0.1
// @match *://*/*
// @run-at document-start
// @grant none
// ==/UserScript==

if (!Array.prototype.findLast) {
  Object.defineProperty(Array.prototype, "findLast",
    {
      value: function (predicate, thisArg) {
        let idx = this.length - 1;
        while (idx >= 0) {
          const value = this[idx];
          if (predicate.call(thisArg, value, idx, this)) {
            return value;
          }
          idx--;
        }
        return undefined;
      }
      ,
      writable: true,
      enumerable: false,
      configurable: true
    });
}

// ==UserScript==
// @name Inject findLastIndex() Polyfill [97]
// @version 0.0.1
// @match *://*/*
// @run-at document-start
// @grant none
// ==/UserScript==

if (!Array.prototype.findLastIndex) {
  Object.defineProperty(Array.prototype, "findLastIndex",
    {
      value: function (predicate, thisArg) {
        let idx = this.length - 1;
        while (idx >= 0) {
          const value = this[idx];
          if (predicate.call(thisArg, value, idx, this)) {
            return idx;
          }
          idx--;
        }
        return -1;
      }
      ,
      writable: true,
      enumerable: false,
      configurable: true
    });
}

// ==UserScript==
// @name Inject randomUUID() Polyfill [92]
// @version 0.0.1
// @match *://*/*
// @run-at document-start
// @grant none
// ==/UserScript==

if (!('randomUUID' in crypto))
  crypto.randomUUID = function randomUUID() {
    return (
      [1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,
      c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
    );
  }; 

 

Hi. This one used to work (perhaps it still does and is my set up). I use the addon singlefile, a lot. Recently, in some pages I started getting the error e-findlast function not found, for example in elciudadano.com

Edited by dmiranda
Link to comment
Share on other sites

tested several older versions in 360chrome against the elciudadano.com site with the "findlast" polyfill enabled.
singlefile 1.22.30 is the last one not producing the error "e-findlast function not found".
don't forget to export settings when downgrading.
could not find a download on crx4chrome so uploaded my archived version.
https://www.mediafire.com/file/ya68z7m65fsghec/MPIODIJHOKGODHHOFBCJDECPFFJIPKLE_1_22_30_0.crx/file

Edited by rereser
Link to comment
Share on other sites

  • 2 weeks later...

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