PayPal blocks Asahi Linux users

1 hour ago 1

Asahi Linux PayPal Block Fix

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

// ==UserScript==
// @name PayPal Asahi Linux Fix
// @version v1.0
// @description Fix PayPal banning Asahi Linux
// @author Asahi Lina
// @match https://www.paypal.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=paypal.com
// @grant unsafeWindow
// ==/UserScript==
// Alternative: Instead of this script, you can also just spoof a Mac OS X / Safari user agent.
// Then "Apple M1" is allowed.
(function() {
'use strict';
(function(getParameter) {
unsafeWindow.WebGLRenderingContext.prototype.getParameter = function() {
let val = getParameter.apply(this, arguments);
if (arguments[0] == WebGLRenderingContext.RENDERER) {
// PayPal blocks Linux users with a GPU renderer containing "Apple M1". Yes, really.
let newval = "Possibly an Apple, possibly an M1";
console.log("Spoofed GPU renderer", val, "->", newval);
return newval;
}
return val;
};
})(unsafeWindow.WebGLRenderingContext.prototype.getParameter);
})();
Read Entire Article