|
|
@ -5,8 +5,8 @@ if ( typeof browser !== 'undefined' && typeof document.body !== 'undefined' ) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
var html = new XMLSerializer().serializeToString(document);
|
|
|
|
var html = new XMLSerializer().serializeToString(document);
|
|
|
|
|
|
|
|
|
|
|
|
if ( html.length > 500000 ) {
|
|
|
|
if ( html.length > 100 * 1024 ) {
|
|
|
|
html = html.substring(0, 250000) + html.substring(html.length - 250000, html.length);
|
|
|
|
html = html.substring(0, 50 * 1024) + html.substring(html.length - 50 * 1024, html.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const scripts = Array.prototype.slice
|
|
|
|
const scripts = Array.prototype.slice
|
|
|
|