GM.addStyle Polyfill

Polyfill for GM.addStyle, for some reason their script doesn't work?

بۇ قوليازمىنى بىۋاسىتە قاچىلاشقا بولمايدۇ. بۇ باشقا قوليازمىلارنىڭ ئىشلىتىشى ئۈچۈن تەمىنلەنگەن ئامبار بولۇپ، ئىشلىتىش ئۈچۈن مېتا كۆرسەتمىسىگە قىستۇرىدىغان كود: // @require https://update.greasyfork.org/scripts/35383/231590/GMaddStyle%20Polyfill.js

// ==UserScript==
// @name         GM.addStyle Polyfill
// @namespace    https://orbitalzero.ovh/scripts
// @version      0.01
// @description  Polyfill for GM.addStyle, for some reason their script doesn't work?
// @author       NeutronNoir
// 
// ==/UserScript==
GM.addStyle = function (aCss) {
  'use strict';
  let head = document.getElementsByTagName('head')[0];
  if (head) {
    let style = document.createElement('style');
    style.setAttribute('type', 'text/css');
    style.textContent = aCss;
    head.appendChild(style);
    return style;
  }
  return null;
};