Code: Select all
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Ctrl+R),
* 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,
* 3. Display to insert the result in a comment after the selection. (Ctrl+L)
*/
window.open(location)
/*
Exception: too much recursion
@chrome://noscript/content/JSURL.js:103
*/
and
Code: Select all
(function (u) {
var r = new XMLHttpRequest();
r.open('GET', u);
r.onreadystatechange = function () {
if (r.readyState == 4) alert(r.responseText.slice(0, 150) + '...');
};
r.send(null)
})(location)
/*
Exception:
@3
*/
If the error messages could be improved, it might shed light on what's causing the trouble. The 'too much recursion' problem is irritating because the bookmarklet it's based on sometimes works but there's no way of telling when it will fail.