Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/browser/extensions/webcompat/shims/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  disqus-embed.js

  Sprache: JAVA
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */


/* globals browser, embedHelperLib */

if (!window.smartblockDisqusShimInitialized) {
  // Guard against this script running multiple times
  window.smartblockDisqusShimInitialized = true;

  /**
   * Finds a Disqus embed script URL in the document. Validates that
   * the URL matches https://*.disqus.com/embed.js format.
   *
   * @returns {string|undefined} The script URL if found, undefined otherwise.
   */

  function getDisqusEmbedScriptURL() {
    for (const script of document.querySelectorAll("script[src]")) {
      try {
        const url = new URL(script.src);
        if (
          url.protocol === "https:" &&
          url.hostname.endsWith(".disqus.com") &&
          url.pathname === "/embed.js"
        ) {
          return url.href;
        }
      } catch {
        // Invalid URL, skip
      }
    }
    return undefined;
  }

  // Get the script URL from the page. We can't hardcode it because the
  // subdomain is site specific.
  const scriptURL = getDisqusEmbedScriptURL();
  if (scriptURL) {
    embedHelperLib.initEmbedShim({
      shimId: "DisqusEmbed",
      scriptURL,
      embedLogoURL: "https://smartblock.firefox.etp/disqus.svg",
      embedSelector: "#disqus_thread",
      isTestShim: false,
    });
  }
}

Messung V0.5 in Prozent
C=93 H=99 G=95

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.