1 javascript:(function() {
6 ,home = (location + '').split('/').splice(0, 3).join('/') + '/';
8 return (0 === uri.indexOf(home))
9 && (!/[\?&]/.test(uri))
10 && uris.push(escape(uri.substr(home.length)));
13 // we must check the domain with add() before accessing ss.cssRules
14 // otherwise a security exception will be thrown
15 if (ss.href && add(ss.href) && ss.cssRules) {
17 while (r = ss.cssRules[i++])
18 r.styleSheet && sheet(r.styleSheet);
21 while (o = d.getElementsByTagName('script')[i++])
22 o.src && !(o.type && /vbs/i.test(o.type)) && add(o.src);
24 while (o = d.styleSheets[i++])
25 /* http://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-DocumentStyle-styleSheets
26 document.styleSheet is a list property where [0] accesses the 1st element and
27 [outOfRange] returns null. In IE, styleSheets is a function, and also throws an
28 exception when you check the out of bounds index. (sigh) */
31 window.open('%BUILDER_URL%#' + uris.join(','));
33 alert('No js/css files found with URLs within "'
35 + '".\n(This tool is limited to URLs with the same domain.)');