• Teilen auf Mastodon:     // I got the key, I got the secret… let key = 'mastodon-instance'; let instance = localStorage.getItem(key); // get the link from the DOM const button = document.querySelector('.mastodon-share'); // refresh the link with the instance name const refreshlink = (instance) => { button.href = `https://${instance}/share?text=${encodeURIComponent(document.title)}%0A${encodeURIComponent(location.href)}`; } // got it? Let's go! if (button) { // labels and texts from the link let prompt = button.dataset.prompt || 'Please tell me your Mastodon instance'; let editlabel = button.dataset.editlabel || 'Edit your Mastodon instance'; let edittext = button.dataset.edittext || '✏️'; // Ask the user for the instance name and set it… const setinstance = _ => { instance = window.prompt(prompt, instance); if(instance) { localStorage.setItem(key, instance); createeditbutton(); refreshlink(instance); button.click(); } } // create and insert the edit link const createeditbutton = _ => { if (document.querySelector('button.mastodon-edit')) return; let editlink = document.createElement('button'); editlink.innerText = edittext; editlink.classList.add('mastodon-edit'); editlink.title = editlabel; editlink.ariaLabel = editlabel; editlink.addEventListener('click', (e) => { e.preventDefault(); localStorage.removeItem(key); setinstance(); }); button.insertAdjacentElement('afterend', editlink); } // if there is a value in localstorage, create the edit link if(localStorage.getItem(key)) { createeditbutton(); } // When a user clicks the link button.addEventListener('click', (e) => { // If the user has already entered their instance // and it is in localstorage write out the link href // with the instance and the current page title and URL if(localStorage.getItem(key)) { refreshlink(localStorage.getItem(key)); // otherwise, prompt the user for their instance and save it to localstorage } else { e.preventDefault(); setinstance(); } }); }

Diese Parameter verrät der Browser.

IP, Cookie, Sprache, Bildschirmgröße und vieles mehr. Bösartige Tracker speichern das. 
Die Daten werden mit PHP und Javascript ausgelesen. Sie können diese mit Ajax und anderen Techniken auf dem Server abgespeichert werden. Mach ich aber nicht. Probiers gleich aus !

Über den Webserver:

Deine IP-Adresse: 216.73.216.1
Du kommst von:
Anfrage Methode: GET
Dein Browser erlaubt: */*
Server Protokoll: HTTP/1.1
Browser-Version: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein.)
Sprache:
Port: 10271
Trackbarkeit Do not track me disabled
Timestamp: 1776763870.9869
Session ID: f9ede1d182934463fddf9ff80a61102f
Cookie:
GPC.Signal No GPC signal detected

Über Javascript:

Wenn Du die Maus über diese Zeile ziehst, werden X und Y Koordinaten angezeigt:
Bei Android einfach in den Text tippen, nicht ziehen..



 

  • Stefan Höhn : Benutzt seit ca. 2000 Linux. Ist ein dilettierenter Autodidakt, ist der Webmaster und einziger Autor von untergang.de. Mehr Info : https://stefan-höhm.de

Ältere Beiträge

Ähnliche Beiträge