Naar inhoud springen

Gebruiker:Valhallasw/xss.js

Uit Wikipedia, de vrije encyclopedie

Opmerking: na het publiceren is het wellicht nodig uw browsercache te legen om de veranderingen te zien.

  • Firefox / Safari: houd Shift ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
  • Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
  • Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
function markpatrolled(rcid) {
  var xhrq = new XMLHttpRequest;
  xhrq.open("GET", "http://nl.wikipedia.org/w/index.php?title=Portsmouth_FC&rcid="+rcid+"&action=markpatrolled", false);
  xhrq.overrideMimeType('text/xml');
  xhrq.send()
  var status = "HTTP " + xhrq.status + " " + xhrq.statusText;
  if (test.status == 200)
    document.getElementById(rcid).parentNode.innerHTML = status + "-" + xhrq.responseXML.getElementById("content").getElementsByTagName("h1")[0].innerHTML;
  else
    document.getElementById(rcid).innerHTML = status;
  return status;
}