Created
November 1, 2010 06:57
-
-
Save erikvold/657742 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id [email protected] | |
// @name GM_safeHTMLParser Test | |
// @namespace test | |
// @include * | |
// @author Erik Vergobbi Vold <[email protected]> | |
// @license MIT | |
// ==/UserScript== | |
GM_xmlhttpRequest({ | |
method: "GET", | |
url: "http://erikvold.com/", | |
onload: function(response) { | |
var doc = GM_safeHTMLParser(response.responseText); | |
alert(doc.getElementById("hcard-Erik-Vergobbi-Vold").innerHTML); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment