Jump to content

Recommended Posts

  • 2 weeks later...

Posted
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

  • 3 weeks later...
Posted (edited)
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
Posted (edited)

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
  • 2 weeks later...
  • 7 months later...
  • 1 month later...
Posted (edited)

My newest YouTube script.  People at work know where the "pause" button is on my keyboard.

Coworkers think they can pause my background music.  So this little script automatically hits the PLAY button three seconds after my music was paused.

Becoming quite HILARIOUS when a coworker hits pause and the music turns itself back on with NO INTERACTION.  :ph34r:

 

// force Play button
window.addEventListener('load', () => {
    var pollCC = setInterval(checkYTCC, 3000);

    function checkYTCC() {
       if (document.querySelector('[title="Play (k)"]').getAttribute('aria-pressed') !== 'false') {
           document.querySelector('[title="Play (k)"]').click();
       }
    }
});
 

Edited by NotHereToPlayGames
  • 4 weeks later...
  • 1 month later...
Posted (edited)

@NotHereToPlayGames

I think this thread is more relevant,for this topic:

 

Quote

Tampermonkey v4.13 (modified to prevent Google Analytics telemetry

which I had missed in another thread.

I would be interested,if possible,to see even indirectly how the blocking occurs.:)

 

In Firefox the internal anti-trackers feature does not block Google-Analytics.
Instead in my Edge the internal anti-trackers feature blocks Google-Analitycs.
Even though both browsers have this functionality at the maximum value.

Edited by Sampei.Nihira
Posted
46 minutes ago, Sampei.Nihira said:

In Firefox the internal anti-trackers feature does not block Google-Analytics.

No surprise here!  I'm not a fan of anything being "internal".  The browser should "render" and nothing more!

I'm not sure if it is "allowed" to (publicly) discuss how to break/modify Tampermonkey's telemetry.  Does doing so break MSFN Forum Rules?

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