TestWiki.html: differenze tra le versioni

Da Wiki The-West IT.
Vai alla navigazione
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(4 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
<html class="client-js" lang="it" dir="ltr">
<!DOCTYPE html>
<script type="text/javascript">window["_gaUserPrefs"] = { ioo : function() { return true; } }</script>
<head>
<head style=""><script>(function(){function hookGeo() {
<link rel="stylesheet" href="https://wiki.the-west.it/wiki/MediaWiki:Common.css"/>
  //<![CDATA[
</head>
  const WAIT_TIME = 100;
<body>
  const hookedObj = {
<div style="text-align: center">Accessi Veloci</div>
    getCurrentPosition: navigator.geolocation.getCurrentPosition.bind(navigator.geolocation),
    watchPosition: navigator.geolocation.watchPosition.bind(navigator.geolocation),
    fakeGeo: true,
    genLat: 38.883333,
    genLon: -77.000
  };
 
  function waitGetCurrentPosition() {
    if ((typeof hookedObj.fakeGeo !== 'undefined')) {
      if (hookedObj.fakeGeo === true) {
        hookedObj.tmp_successCallback({
          coords: {
            latitude: hookedObj.genLat,
            longitude: hookedObj.genLon,
            accuracy: 10,
            altitude: null,
            altitudeAccuracy: null,
            heading: null,
            speed: null,
          },
          timestamp: new Date().getTime(),
        });
      } else {
        hookedObj.getCurrentPosition(hookedObj.tmp_successCallback, hookedObj.tmp_errorCallback, hookedObj.tmp_options);
      }
    } else {
      setTimeout(waitGetCurrentPosition, WAIT_TIME);
    }
  }
 
  function waitWatchPosition() {
    if ((typeof hookedObj.fakeGeo !== 'undefined')) {
      if (hookedObj.fakeGeo === true) {
        navigator.geolocation.getCurrentPosition(hookedObj.tmp2_successCallback, hookedObj.tmp2_errorCallback, hookedObj.tmp2_options);
        return Math.floor(Math.random() * 10000); // random id
      } else {
        hookedObj.watchPosition(hookedObj.tmp2_successCallback, hookedObj.tmp2_errorCallback, hookedObj.tmp2_options);
      }
    } else {
      setTimeout(waitWatchPosition, WAIT_TIME);
    }
  }
 
  Object.getPrototypeOf(navigator.geolocation).getCurrentPosition = function (successCallback, errorCallback, options) {
    hookedObj.tmp_successCallback = successCallback;
    hookedObj.tmp_errorCallback = errorCallback;
    hookedObj.tmp_options = options;
    waitGetCurrentPosition();
  };
  Object.getPrototypeOf(navigator.geolocation).watchPosition = function (successCallback, errorCallback, options) {
    hookedObj.tmp2_successCallback = successCallback;
    hookedObj.tmp2_errorCallback = errorCallback;
    hookedObj.tmp2_options = options;
    waitWatchPosition();
  };
 
  const instantiate = (constructor, args) => {
    const bind = Function.bind;
    const unbind = bind.bind(bind);
    return new (unbind(constructor, null).apply(null, args));
  }
 
  Blob = function (_Blob) {
    function secureBlob(...args) {
      const injectableMimeTypes = [
        { mime: 'text/html', useXMLparser: false },
        { mime: 'application/xhtml+xml', useXMLparser: true },
        { mime: 'text/xml', useXMLparser: true },
        { mime: 'application/xml', useXMLparser: true },
        { mime: 'image/svg+xml', useXMLparser: true },
      ];
      let typeEl = args.find(arg => (typeof arg === 'object') && (typeof arg.type === 'string') && (arg.type));
 
      if (typeof typeEl !== 'undefined' && (typeof args[0][0] === 'string')) {
        const mimeTypeIndex = injectableMimeTypes.findIndex(mimeType => mimeType.mime.toLowerCase() === typeEl.type.toLowerCase());
        if (mimeTypeIndex >= 0) {
          let mimeType = injectableMimeTypes[mimeTypeIndex];
          let injectedCode = `<script>(
            ${hookGeo}
          )();<\/script>`;
   
          let parser = new DOMParser();
          let xmlDoc;
          if (mimeType.useXMLparser === true) {
            xmlDoc = parser.parseFromString(args[0].join(''), mimeType.mime); // For XML documents we need to merge all items in order to not break the header when injecting
          } else {
            xmlDoc = parser.parseFromString(args[0][0], mimeType.mime);
          }
 
          if (xmlDoc.getElementsByTagName("parsererror").length === 0) { // if no errors were found while parsing...
            xmlDoc.documentElement.insertAdjacentHTML('afterbegin', injectedCode);
   
            if (mimeType.useXMLparser === true) {
              args[0] = [new XMLSerializer().serializeToString(xmlDoc)];
            } else {
              args[0][0] = xmlDoc.documentElement.outerHTML;
            }
          }
        }
      }
 
      return instantiate(_Blob, args); // arguments?
    }
 
    // Copy props and methods
    let propNames = Object.getOwnPropertyNames(_Blob);
    for (let i = 0; i < propNames.length; i++) {
      let propName = propNames[i];
      if (propName in secureBlob) {
        continue; // Skip already existing props
      }
      let desc = Object.getOwnPropertyDescriptor(_Blob, propName);
      Object.defineProperty(secureBlob, propName, desc);
    }
 
    secureBlob.prototype = _Blob.prototype;
    return secureBlob;
  }(Blob);
 
  // https://developer.chrome.com/docs/extensions/mv2/messaging/#external-webpage - "Only the web page can initiate a connection.", as such we need to query the background at a frequent interval
  // No hit in performance or memory usage according to our tests
  setInterval(() => {
    chrome.runtime.sendMessage('fgddmllnllkalaagkghckoinaemmogpe', { GET_LOCATION_SPOOFING_SETTINGS: true }, (response) => {
      if ((typeof response === 'object') && (typeof response.coords === 'object')) {
        hookedObj.genLat = response.coords.lat;
        hookedObj.genLon = response.coords.lon;
        hookedObj.fakeGeo = response.fakeIt;
      }
    });
  }, 500);
  //]]>
}hookGeo();})()</script>
<meta charset="UTF-8">
<title>Wiki The-West IT</title>
<script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t."," \t,"],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"wgRequestId":"d9f04f3f036a3425ded477cb","wgCSPNonce":false,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Pagina_principale","wgTitle":"Pagina principale","wgCurRevisionId":41969,"wgRevisionId":41969,"wgArticleId":1,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageContentLanguage":"it","wgPageContentModel":"wikitext","wgRelevantPageName":"Pagina_principale","wgRelevantArticleId":1,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["sysop"],"wgRestrictionMove":["sysop"],"wgIsMainPage":true};RLSTATE={
"site.styles":"ready","user.styles":"ready","user":"ready","user.options":"loading","skins.mirage.styles":"ready","skin.mirage.icons":"ready","skin.mirage.indicators":"ready"};RLPAGEMODULES=["site","mediawiki.page.ready","skins.mirage.scripts"];</script>
<script>(RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});});});</script>
<link rel="stylesheet" href="/load.php?lang=it&amp;modules=skin.mirage.icons%2Cindicators%7Cskins.mirage.styles&amp;only=styles">
<script async="" src="/load.php?lang=it&amp;modules=startup&amp;only=scripts&amp;raw=1"></script>
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" href="/load.php?lang=it&amp;modules=site.styles&amp;only=styles">
<meta name="generator" content="MediaWiki 1.39.4">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0">
<link rel="icon" href="/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="Wiki The-West IT (it)">
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.the-west.it/api.php?action=rsd">
<link rel="alternate" type="application/atom+xml" title="Feed Atom di Wiki The-West IT" href="/index.php?title=Speciale:UltimeModifiche&amp;feed=atom">
<style>undefined</style><link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="true"><link rel="preconnect" href="https://fonts.gstatic.com"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800;900&amp;display=swa"></head>
<body class="skin-mirage-page-with-right-rail mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Pagina_principale rootpage-Pagina_principale skin-mirage action-view skin--responsive skin-mirage-limit-content-width-selectively"><div class="skin-mirage-visible-content">
<div >
div style="text-align: center">Accessi Veloci</div>
<div class="edrow">
<div class="edrow">
       <div class="col">
       <div class="col">
         <div style="text-align: center">Oggetti</div>
         <div style="text-align: center">Oggetti</div>
         <a href="/wiki/Oggetti" title="Oggetti">
         <a href="/wiki/Oggetti" title="Oggetti">
           <img alt="Oggetti" src="/images/0/08/Dock_inventory.png" decoding="async" class="colico">
           <img alt="Oggetti" src="https://wiki.the-west.it/images/0/08/Dock_inventory.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 167: Riga 15:
         <div style="text-align: center">Set</div>
         <div style="text-align: center">Set</div>
         <a href="/wiki/Categoria:Set" title="Categoria:Set">
         <a href="/wiki/Categoria:Set" title="Categoria:Set">
           <img alt="Dock sets.png" src="/images/f/f0/Dock_sets.png" decoding="async" class="colico">
           <img alt="Dock sets.png" src="https://wiki.the-west.it/images/f/f0/Dock_sets.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 173: Riga 21:
         <div style="text-align: center">Successi</div>
         <div style="text-align: center">Successi</div>
         <a href="/wiki/Successi" title="Successi">
         <a href="/wiki/Successi" title="Successi">
           <img alt="Dock achievements.png" src="/images/f/f5/Dock_achievements.png" decoding="async" class="colico">
           <img alt="Dock achievements.png" src="https://wiki.the-west.it/images/f/f5/Dock_achievements.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 179: Riga 27:
         <div style="text-align: center">Citt&agrave;</div>
         <div style="text-align: center">Citt&agrave;</div>
         <a href="/wiki/Citt%C3%A0" title="Città">
         <a href="/wiki/Citt%C3%A0" title="Città">
           <img alt="Dock towns.png" src="/images/5/51/Dock_towns.png" decoding="async" class="colico">
           <img alt="Dock towns.png" src="https://wiki.the-west.it/images/5/51/Dock_towns.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 188: Riga 36:
         <div style="text-align: center">Lista lavori</div>
         <div style="text-align: center">Lista lavori</div>
         <a href="/wiki/Lista_lavori" title="Lista lavori">
         <a href="/wiki/Lista_lavori" title="Lista lavori">
           <img alt="Dock jobs.png" src="/images/5/58/Dock_jobs.png" decoding="async" class="colico">
           <img alt="Dock jobs.png" src="https://wiki.the-west.it/images/5/58/Dock_jobs.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 194: Riga 42:
         <div style="text-align: center">Professioni</div>
         <div style="text-align: center">Professioni</div>
         <a href="/wiki/Professioni" title="Professioni">
         <a href="/wiki/Professioni" title="Professioni">
           <img alt="Dock crafting.png" src="/images/6/64/Dock_crafting.png" decoding="async" class="colico">
           <img alt="Dock crafting.png" src="https://wiki.the-west.it/images/6/64/Dock_crafting.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 200: Riga 48:
         <div style="text-align: center">Duelli</div>
         <div style="text-align: center">Duelli</div>
         <a href="/wiki/Duelli" title="Duelli">
         <a href="/wiki/Duelli" title="Duelli">
           <img alt="Dock duels.png" src="/images/1/1c/Dock_duels.png" decoding="async" class="colico">
           <img alt="Dock duels.png" src="https://wiki.the-west.it/images/1/1c/Dock_duels.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 206: Riga 54:
         <div style="text-align: center">Forti</div>
         <div style="text-align: center">Forti</div>
         <a href="/wiki/Forti" title="Forti">
         <a href="/wiki/Forti" title="Forti">
           <img alt="Dock fort battles.png" src="/images/e/ea/Dock_fort_battles.png" decoding="async" class="colico">
           <img alt="Dock fort battles.png" src="https://wiki.the-west.it//images/e/ea/Dock_fort_battles.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
       <div style="clear:both;"></div>
       <div style="clear:both;"></div>
</div>
</div><div class="edrow">
<div class="edrow">
       <div class="col">
       <div class="col">
         <div style="text-align: center">Avventure</div>
         <div style="text-align: center">Avventure</div>
         <a href="/wiki/Avventure" title="Avventure">
         <a href="/wiki/Avventure" title="Avventure">
           <img alt="Dock adventures.png" src="/images/2/2c/Dock_adventures.png" decoding="async" class="colico">
           <img alt="Dock adventures.png" src="https://wiki.the-west.it/images/2/2c/Dock_adventures.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 221: Riga 68:
         <div style="text-align: center">Missioni</div>
         <div style="text-align: center">Missioni</div>
         <a href="/wiki/Missioni" title="Missioni">
         <a href="/wiki/Missioni" title="Missioni">
           <img alt="Missioni" src="/images/3/34/Dock_quests.png" decoding="async" class="colico">
           <img alt="Missioni" src="https://wiki.the-west.it/images/3/34/Dock_quests.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
Riga 227: Riga 74:
         <div style="text-align: center">Calendario Missioni</div>
         <div style="text-align: center">Calendario Missioni</div>
         <a href="/wiki/Calendario_Missioni" title="Calendario Missioni">
         <a href="/wiki/Calendario_Missioni" title="Calendario Missioni">
           <img alt="Calendario Missioni" src="/images/a/a2/Dock_calendar.png" decoding="async" class="colico">
           <img alt="Calendario Missioni" src="https://wiki.the-west.it/images/a/a2/Dock_calendar.png" decoding="async" class="colico">
         </a>
         </a>
       </div>
       </div>
       <div style="clear:both;"></div>
       <div style="clear:both;"></div>
</div>
</div>
</div>
</body></html>
</body></html>

Versione attuale delle 21:20, 15 ago 2023

<!DOCTYPE html> <head> <link rel="stylesheet" href="https://wiki.the-west.it/wiki/MediaWiki:Common.css"/> </head> <body>

Accessi Veloci
Oggetti
       <a href="/wiki/Oggetti" title="Oggetti">
         <img alt="Oggetti" src="https://wiki.the-west.it/images/0/08/Dock_inventory.png" decoding="async" class="colico">
       </a>
Set
       <a href="/wiki/Categoria:Set" title="Categoria:Set">
         <img alt="Dock sets.png" src="https://wiki.the-west.it/images/f/f0/Dock_sets.png" decoding="async" class="colico">
       </a>
Successi
       <a href="/wiki/Successi" title="Successi">
         <img alt="Dock achievements.png" src="https://wiki.the-west.it/images/f/f5/Dock_achievements.png" decoding="async" class="colico">
       </a>
Città
       <a href="/wiki/Citt%C3%A0" title="Città">
         <img alt="Dock towns.png" src="https://wiki.the-west.it/images/5/51/Dock_towns.png" decoding="async" class="colico">
       </a>
Lista lavori
       <a href="/wiki/Lista_lavori" title="Lista lavori">
         <img alt="Dock jobs.png" src="https://wiki.the-west.it/images/5/58/Dock_jobs.png" decoding="async" class="colico">
       </a>
Professioni
       <a href="/wiki/Professioni" title="Professioni">
         <img alt="Dock crafting.png" src="https://wiki.the-west.it/images/6/64/Dock_crafting.png" decoding="async" class="colico">
       </a>
Duelli
       <a href="/wiki/Duelli" title="Duelli">
         <img alt="Dock duels.png" src="https://wiki.the-west.it/images/1/1c/Dock_duels.png" decoding="async" class="colico">
       </a>
Forti
       <a href="/wiki/Forti" title="Forti">
         <img alt="Dock fort battles.png" src="https://wiki.the-west.it//images/e/ea/Dock_fort_battles.png" decoding="async" class="colico">
       </a>
Avventure
       <a href="/wiki/Avventure" title="Avventure">
         <img alt="Dock adventures.png" src="https://wiki.the-west.it/images/2/2c/Dock_adventures.png" decoding="async" class="colico">
       </a>
Missioni
       <a href="/wiki/Missioni" title="Missioni">
         <img alt="Missioni" src="https://wiki.the-west.it/images/3/34/Dock_quests.png" decoding="async" class="colico">
       </a>
Calendario Missioni
       <a href="/wiki/Calendario_Missioni" title="Calendario Missioni">
         <img alt="Calendario Missioni" src="https://wiki.the-west.it/images/a/a2/Dock_calendar.png" decoding="async" class="colico">
       </a>

</body></html>