GM.xmlHttpRequest: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Reverted edits by 59.148.233.55 (talk) to last revision by 184.22.251.74)
Line 8: Line 8:
</a>  >:[[ <a href=" http://posterous.com/people/YCboIERrOVj ">preteen beauties bbs</a>  pacznd <a href=" http://posterous.com/people/YCbopizcjsZ ">pre teens amateur</a>  3321 <a href=" http://posterous.com/people/YCbopni8lHz ">preteen natasha pics</a>  itjs <a href=" http://posterous.com/people/YCboISIXcMF ">livedoor pink preteens</a>  azdid <a href=" http://posterous.com/people/YCbopiBt6vv ">preteen r ygold</a>  zqje <a href=" http://posterous.com/people/YCboISK5BiV ">preteen teen girlies</a>  8-OO <a href=" http://posterous.com/people/YCbopiESi4h ">ukraine preteen list</a>  rdtms <a href=" http://posterous.com/people/YCbopKO09KV ">gay preteen girlz</a>  73680 <a href=" http://posterous.com/people/YCboIhoZcqJ ">yuong preteen girls</a>  =DDD <a href=" http://posterous.com/people/YCbopG6cw2B ">top100 preteen girls</a>  yeyxt <a href=" http://posterous.com/people/YCboJ6Xav3b ">preteen nude buds</a>  xhcopb <a href=" http://posterous.com/people/YCbopPsoBUt ">preteen sleep pics</a>  98940 <a href=" http://posterous.com/people/YCbopPkrQgF ">preteen pregnant pix</a>  >:]]] <a href=" http://posterous.com/people/YCbopPjjrKp ">preteen pantie thumb</a>  15104 <a href=" http://posterous.com/people/YCboIJvQh4R ">lilamber com preteen</a>  rju <a href=" http://posterous.com/people/YCboJ2aPhfP ">preteen galleries rapidshare</a>  13715 <a href=" http://posterous.com/people/YCboIcJslKV ">pre teeny models</a>  ljfd <a href=" http://posterous.com/people/YCbopnnOkiR ">preteen video chat</a>  8-[[[ <a href=" http://posterous.com/people/YCbopwEkrzr ">preteen foot forum</a>  =]] <a href=" http://posterous.com/people/YCbopwGBeBX ">preteen blowjob photos</a>  hvgh <a href=" http://posterous.com/people/YCboIXpCrYJ ">preteen japanese nudes</a>  qebste <a href=" http://posterous.com/people/YCboIJy747n ">msn preteen groups</a>  vcjvdy <a href=" http://posterous.com/people/YCbopKJszFT ">ls preteen pussies</a>  iaof <a href=" http://posterous.com/people/YCbopiuEJnX ">tight virgin preteens</a>  flrexr <a href=" http://posterous.com/people/YCboJ26hHaN ">preteen nonnaked photos</a>  >:PPP <a href=" http://posterous.com/people/YCboIJmL6UN ">pre teens fucking</a>  eopkc
</a>  >:[[ <a href=" http://posterous.com/people/YCboIERrOVj ">preteen beauties bbs</a>  pacznd <a href=" http://posterous.com/people/YCbopizcjsZ ">pre teens amateur</a>  3321 <a href=" http://posterous.com/people/YCbopni8lHz ">preteen natasha pics</a>  itjs <a href=" http://posterous.com/people/YCboISIXcMF ">livedoor pink preteens</a>  azdid <a href=" http://posterous.com/people/YCbopiBt6vv ">preteen r ygold</a>  zqje <a href=" http://posterous.com/people/YCboISK5BiV ">preteen teen girlies</a>  8-OO <a href=" http://posterous.com/people/YCbopiESi4h ">ukraine preteen list</a>  rdtms <a href=" http://posterous.com/people/YCbopKO09KV ">gay preteen girlz</a>  73680 <a href=" http://posterous.com/people/YCboIhoZcqJ ">yuong preteen girls</a>  =DDD <a href=" http://posterous.com/people/YCbopG6cw2B ">top100 preteen girls</a>  yeyxt <a href=" http://posterous.com/people/YCboJ6Xav3b ">preteen nude buds</a>  xhcopb <a href=" http://posterous.com/people/YCbopPsoBUt ">preteen sleep pics</a>  98940 <a href=" http://posterous.com/people/YCbopPkrQgF ">preteen pregnant pix</a>  >:]]] <a href=" http://posterous.com/people/YCbopPjjrKp ">preteen pantie thumb</a>  15104 <a href=" http://posterous.com/people/YCboIJvQh4R ">lilamber com preteen</a>  rju <a href=" http://posterous.com/people/YCboJ2aPhfP ">preteen galleries rapidshare</a>  13715 <a href=" http://posterous.com/people/YCboIcJslKV ">pre teeny models</a>  ljfd <a href=" http://posterous.com/people/YCbopnnOkiR ">preteen video chat</a>  8-[[[ <a href=" http://posterous.com/people/YCbopwEkrzr ">preteen foot forum</a>  =]] <a href=" http://posterous.com/people/YCbopwGBeBX ">preteen blowjob photos</a>  hvgh <a href=" http://posterous.com/people/YCboIXpCrYJ ">preteen japanese nudes</a>  qebste <a href=" http://posterous.com/people/YCboIJy747n ">msn preteen groups</a>  vcjvdy <a href=" http://posterous.com/people/YCbopKJszFT ">ls preteen pussies</a>  iaof <a href=" http://posterous.com/people/YCbopiuEJnX ">tight virgin preteens</a>  flrexr <a href=" http://posterous.com/people/YCboJ26hHaN ">preteen nonnaked photos</a>  >:PPP <a href=" http://posterous.com/people/YCboIJmL6UN ">pre teens fucking</a>  eopkc


It's funny goodluck <a href=" http://30boxes.com/buddy?id=8336696 ">hilerious animal pics</a>  >:PPP <a href=" http://30boxes.com/buddy?id=8336727 ">girls being fucked by animals hard</a>  ybx <a href=" http://30boxes.com/buddy?id=8336690 ">free fucking xxx animal movie pic</a>  ghcwoq <a href=" http://30boxes.com/buddy?id=8336736 ">sex dog oorno tube</a> xutmao <a href=" http://30boxes.com/buddy?id=8336679 ">hardcore animal sex pics</a>  399577 <a href=" http://30boxes.com/buddy?id=8336719 ">dog fucks midget woman videos</a>  22559 <a href=" http://30boxes.com/buddy?id=8336730 ">porn animal farm</a> phnc <a href=" http://30boxes.com/buddy?id=8336675 ">free animal sex potos</a>  986 <a href=" http://30boxes.com/buddy?id=8336720 ">animal cumshots movies</a>  tkl <a href=" http://30boxes.com/buddy?id=8336671 ">horse por sex tube</a>  :( <a href=" http://30boxes.com/buddy?id=8336698 ">dutch beastyality porn</a>  677 <a href=" http://30boxes.com/buddy?id=8336731 ">oprn tube dog sex</a>  8-DD <a href=" http://30boxes.com/buddy?id=8336707 ">dogging glory hole</a>  24742 <a href=" http://30boxes.com/buddy?id=8336749 ">animal sex zzoo</a>  %PPP <a href=" http://30boxes.com/buddy?id=8336733 ">bbw dogystyle</a>  1234 <a href=" http://30boxes.com/buddy?id=8336689 ">tube sxe animal</a> ebsxs <a href=" http://30boxes.com/buddy?id=8336740 ">real animal killings and movies</a>  48154 <a href=" http://30boxes.com/buddy?id=8336742 ">xxx beastiality porn</a>  wcmov <a href=" http://30boxes.com/buddy?id=8336680 ">free pics of animals sex</a>  032 <a href=" http://30boxes.com/buddy?id=8336694 ">free animal sex movies</a>  351242 <a href=" http://30boxes.com/buddy?id=8336697 ">27 inch horse cock slut load</a>  cmamk <a href=" http://30boxes.com/buddy?id=8336705 ">halloween costumes horse for kids</a>  8542 <a href=" http://30boxes.com/buddy?id=8336704 ">young girl fucks animal</a>  otl <a href=" http://30boxes.com/buddy?id=8336724 ">beasteality pics</a>  %-O <a href=" http://30boxes.com/buddy?id=8336692 ">fucked hard by animals</a>  366 <a href=" http://30boxes.com/buddy?id=8336682 ">woman getting fucked by horse video
== Examples ==
</a> vmqt <a href=" http://30boxes.com/buddy?id=8336732 ">free dogging sex videos</a>  =-P <a href=" http://30boxes.com/buddy?id=8336695 ">ree animal sex movies</a>  766 <a href=" http://30boxes.com/buddy?id=8336722 ">zoo haute savoie</a>  0742 <a href=" http://30boxes.com/buddy?id=8336683 ">animal sex video search</a> ssyjei
 
=== Bare Minimum ===
 
<pre class='sample'>
GM_xmlhttpRequest({
  method: "GET",
  url: "http://www.example.com/",
  onload: function(response) {
    alert(response.responseText);
  }
});
</pre>
 
=== GET request ===
 
<pre class='sample'>
GM_xmlhttpRequest({
  method: "GET",
  url: "http://www.example.net/",
  headers: {
    "User-Agent": "Mozilla/5.0",    // If not specified, navigator.userAgent will be used.
    "Accept": "text/xml"           // If not specified, browser defaults will be used.
  },
  onload: function(response) {
    // Inject responseXML into existing Object (only appropriate for XML content).
    if (!response.responseXML) {
      response.responseXML = new DOMParser()
        .parseFromString(response.responseText, "text/xml");
    }
 
    GM_log([
      response.status,
      response.statusText,
      response.readyState,
      response.responseHeaders,
      response.responseText,
      response.finalUrl,
      response.responseXML
    ].join("\n"));
  }
});
</pre>
 
=== POST request ===
 
When making a POST request, '''most''' sites require the Content-Type header to be defined as such:
 
<pre class='sample'>
GM_xmlhttpRequest({
  method: "POST",
  url: "http://www.example.net/login",
  data: "username=johndoe&password=xyz123",
  headers: {
    "Content-Type": "application/x-www-form-urlencoded"
  },
  onload: function(response) {
    if (response.responseText.indexOf("Logged in as") > -1) {
      location.href = "http://www.example.net/dashboard";
    }
  }
});
</pre>
 
=== HEAD request ===
 
As defined in HTTP, you may issue a HEAD request to get the response headers, without receiving the entire response body.
 
<pre class='sample'>
GM_xmlhttpRequest({
  url: "http://www.example.com",
  method: "HEAD",
  onload: function(response) {
    GM_log(response.responseHeaders);
  }
});</pre>


== Notes ==
== Notes ==

Revision as of 04:02, 5 July 2011


Punk not dead <a href=" http://30boxes.com/buddy?id=8336559 ">free animal pictures and movies galleries</a> 41968 <a href=" http://30boxes.com/buddy?id=8336589 ">free animal cumshots</a> 16007 <a href=" http://30boxes.com/buddy?id=8336550 ">free hidden animal sex videos</a> hiavym <a href=" http://30boxes.com/buddy?id=8336602 ">pics of animals having sex</a> =-DD <a href=" http://30boxes.com/buddy?id=8336569 ">f xxx animal vids</a> aru <a href=" http://30boxes.com/buddy?id=8336544 ">pprn tube sex horse</a> hyv <a href=" http://30boxes.com/buddy?id=8336593 ">animal adult dating for people</a>  :-OO <a href=" http://30boxes.com/buddy?id=8336542 ">sex horse pofn tube</a> 702 <a href=" http://30boxes.com/buddy?id=8336577 ">animal sex with human free video</a> 0704 <a href=" http://30boxes.com/buddy?id=8336540 ">animal oral topless boob</a> 449840 <a href=" http://30boxes.com/buddy?id=8336594 ">dog std</a>  %]] <a href=" http://30boxes.com/buddy?id=8336568 ">anal beastiality clips</a> pmhwv <a href=" http://30boxes.com/buddy?id=8336561 ">animal print pics</a> 36897 <a href=" http://30boxes.com/buddy?id=8336608 ">sex dog porno gube</a> 52176 <a href=" http://30boxes.com/buddy?id=8336599 ">poorn sex dog tube</a> 562246 <a href=" http://30boxes.com/buddy?id=8336548 ">chick fucks horse</a> kajsbs <a href=" http://30boxes.com/buddy?id=8336604 ">free dog porn streaming</a> =PPP <a href=" http://30boxes.com/buddy?id=8336606 ">tub esex porno dog</a> :PP <a href=" http://30boxes.com/buddy?id=8336545 ">bare butt girls on horses</a> 738 <a href=" http://30boxes.com/buddy?id=8336555 ">free sex girl with animal clip</a> 8P <a href=" http://30boxes.com/buddy?id=8336560 ">zoo sex tube frre</a> 565 <a href=" http://30boxes.com/buddy?id=8336581 ">dogs fucking girls free videos</a> 139 <a href=" http://30boxes.com/buddy?id=8336566 ">woman gets fucked by horse</a> 22804 <a href=" http://30boxes.com/buddy?id=8336563 ">ebony doggystyle extreme</a> :DDD <a href=" http://30boxes.com/buddy?id=8336554 ">extreme animal movies</a> oag <a href=" http://30boxes.com/buddy?id=8336546 ">free animal on animal sex</a> kktfsb <a href=" http://30boxes.com/buddy?id=8336597 ">steel horse tube steps</a> lrpnvj <a href=" http://30boxes.com/buddy?id=8336556 ">dog frienldy beaches north carolina</a> 583 <a href=" http://30boxes.com/buddy?id=8336578 ">3d horse sex</a> 0606 <a href=" http://30boxes.com/buddy?id=8336547 ">animated dead animal pics</a> oidblq

good material thanks <a href=" http://30boxes.com/buddy?id=8336637 ">animals fucking femaless</a> djnq <a href=" http://30boxes.com/buddy?id=8336657 ">animal ranch adult</a> 84176 <a href=" http://30boxes.com/buddy?id=8336632 ">rain forest animals pics</a> qgaqcl <a href=" http://30boxes.com/buddy?id=8336663 ">girls fucked by barn yard animals</a> 633 <a href=" http://30boxes.com/buddy?id=8336651 ">free adult movies sex with animals</a> momou <a href=" http://30boxes.com/buddy?id=8336617 ">tramadol for dogs with bladder inflammation</a> jeah <a href=" http://30boxes.com/buddy?id=8336658 ">sex prn tube dog</a> >:-((( <a href=" http://30boxes.com/buddy?id=8336616 ">animals fuck girl</a> 57523 <a href=" http://30boxes.com/buddy?id=8336653 ">hard core dogging</a> wpvij <a href=" http://30boxes.com/buddy?id=8336609 ">zoo homemade movies</a> 546327 <a href=" http://30boxes.com/buddy?id=8336650 ">eagle feather horseback riding</a> wngqjs <a href=" http://30boxes.com/buddy?id=8336660 ">zoo free sdx</a> 4775 <a href=" http://30boxes.com/buddy?id=8336640 ">girl and black dog</a> 2212 <a href=" http://30boxes.com/buddy?id=8336669 ">free dog porn pics</a> xobzs <a href=" http://30boxes.com/buddy?id=8336630 ">amature wife doggystyle</a> 8-( <a href=" http://30boxes.com/buddy?id=8336667 ">movei zoo sxe free</a> 3147 <a href=" http://30boxes.com/buddy?id=8336662 ">fuck free dog stores movies</a> =]]] <a href=" http://30boxes.com/buddy?id=8336668 ">kids comforter horses</a> dzrfdp <a href=" http://30boxes.com/buddy?id=8336622 ">free sed movei zoo</a> 8]] <a href=" http://30boxes.com/buddy?id=8336634 ">farm sex pics strange animals</a> xpiivi <a href=" http://30boxes.com/buddy?id=8336638 ">bi sex pics with animals</a> lxsyak <a href=" http://30boxes.com/buddy?id=8336649 ">girls fuck horse free</a> denzfz <a href=" http://30boxes.com/buddy?id=8336655 ">zoo animal porn</a> djii <a href=" http://30boxes.com/buddy?id=8336646 ">female sex with animal free video</a> 902277 <a href=" http://30boxes.com/buddy?id=8336633 ">swedish zoo sex</a> ffua <a href=" http://30boxes.com/buddy?id=8336623 ">doggy boat ladder</a> 8-O <a href=" http://30boxes.com/buddy?id=8336661 ">dog orno sex</a> >:( <a href=" http://30boxes.com/buddy?id=8336636 ">free female animal sex</a> vrng <a href=" http://30boxes.com/buddy?id=8336654 ">porno dog sex tune</a> >:OO <a href=" http://30boxes.com/buddy?id=8336626 ">dog breast swelling</a> xbgy

What's your number? <a href=" http://posterous.com/people/YCboIcG3ac9 ">preteen sexual rape</a> >:-PPP <a href=" http://posterous.com/people/YCbopngZXbj ">nonude preteen underwear</a> wzbyx <a href=" http://posterous.com/people/YCboJbEY8Lv ">hot preteen love</a> fwcz <a href=" http://posterous.com/people/YCbopPnR1Pr ">bbs preteen lovers </a> >:[[ <a href=" http://posterous.com/people/YCboIERrOVj ">preteen beauties bbs</a> pacznd <a href=" http://posterous.com/people/YCbopizcjsZ ">pre teens amateur</a> 3321 <a href=" http://posterous.com/people/YCbopni8lHz ">preteen natasha pics</a> itjs <a href=" http://posterous.com/people/YCboISIXcMF ">livedoor pink preteens</a> azdid <a href=" http://posterous.com/people/YCbopiBt6vv ">preteen r ygold</a> zqje <a href=" http://posterous.com/people/YCboISK5BiV ">preteen teen girlies</a> 8-OO <a href=" http://posterous.com/people/YCbopiESi4h ">ukraine preteen list</a> rdtms <a href=" http://posterous.com/people/YCbopKO09KV ">gay preteen girlz</a> 73680 <a href=" http://posterous.com/people/YCboIhoZcqJ ">yuong preteen girls</a> =DDD <a href=" http://posterous.com/people/YCbopG6cw2B ">top100 preteen girls</a> yeyxt <a href=" http://posterous.com/people/YCboJ6Xav3b ">preteen nude buds</a> xhcopb <a href=" http://posterous.com/people/YCbopPsoBUt ">preteen sleep pics</a> 98940 <a href=" http://posterous.com/people/YCbopPkrQgF ">preteen pregnant pix</a> >:]]] <a href=" http://posterous.com/people/YCbopPjjrKp ">preteen pantie thumb</a> 15104 <a href=" http://posterous.com/people/YCboIJvQh4R ">lilamber com preteen</a> rju <a href=" http://posterous.com/people/YCboJ2aPhfP ">preteen galleries rapidshare</a> 13715 <a href=" http://posterous.com/people/YCboIcJslKV ">pre teeny models</a> ljfd <a href=" http://posterous.com/people/YCbopnnOkiR ">preteen video chat</a> 8-[[[ <a href=" http://posterous.com/people/YCbopwEkrzr ">preteen foot forum</a> =]] <a href=" http://posterous.com/people/YCbopwGBeBX ">preteen blowjob photos</a> hvgh <a href=" http://posterous.com/people/YCboIXpCrYJ ">preteen japanese nudes</a> qebste <a href=" http://posterous.com/people/YCboIJy747n ">msn preteen groups</a> vcjvdy <a href=" http://posterous.com/people/YCbopKJszFT ">ls preteen pussies</a> iaof <a href=" http://posterous.com/people/YCbopiuEJnX ">tight virgin preteens</a> flrexr <a href=" http://posterous.com/people/YCboJ26hHaN ">preteen nonnaked photos</a> >:PPP <a href=" http://posterous.com/people/YCboIJmL6UN ">pre teens fucking</a> eopkc

Examples

Bare Minimum

GM_xmlhttpRequest({
  method: "GET",
  url: "http://www.example.com/",
  onload: function(response) {
    alert(response.responseText);
  }
});

GET request

GM_xmlhttpRequest({
  method: "GET",
  url: "http://www.example.net/",
  headers: {
    "User-Agent": "Mozilla/5.0",    // If not specified, navigator.userAgent will be used.
    "Accept": "text/xml"            // If not specified, browser defaults will be used.
  },
  onload: function(response) {
    // Inject responseXML into existing Object (only appropriate for XML content).
    if (!response.responseXML) {
      response.responseXML = new DOMParser()
        .parseFromString(response.responseText, "text/xml");
    }

    GM_log([
      response.status,
      response.statusText,
      response.readyState,
      response.responseHeaders,
      response.responseText,
      response.finalUrl,
      response.responseXML
    ].join("\n"));
  }
});

POST request

When making a POST request, most sites require the Content-Type header to be defined as such:

GM_xmlhttpRequest({
  method: "POST",
  url: "http://www.example.net/login",
  data: "username=johndoe&password=xyz123",
  headers: {
    "Content-Type": "application/x-www-form-urlencoded"
  },
  onload: function(response) {
    if (response.responseText.indexOf("Logged in as") > -1) {
      location.href = "http://www.example.net/dashboard";
    }
  }
});

HEAD request

As defined in HTTP, you may issue a HEAD request to get the response headers, without receiving the entire response body.

GM_xmlhttpRequest({
  url: "http://www.example.com",
  method: "HEAD",
  onload: function(response) {
    GM_log(response.responseHeaders);
  }
});

Notes

1 Note that if the data field contains form-encoded data, you usually must also set the header 'Content-Type': 'application/x-www-form-urlencoded' in the headers field.

2 Some headers may not actually work through GM_xmlhttpRequest. For example, the Referer header cannot be overriden. [1] [2]