Improve Joomla pattern, decrease processed HTML sise

main
Elbert Alias 7 years ago
parent fd9c20c700
commit 28a93d5bec

@ -4729,7 +4729,7 @@
"headers": { "headers": {
"X-Content-Encoded-By": "Joomla! ([\\d.]+)\\;version:\\1" "X-Content-Encoded-By": "Joomla! ([\\d.]+)\\;version:\\1"
}, },
"html": "(?:<div[^>]+id=\"wrapper_r\"|<[^>]+(?:feed|components)/com_|<table[^>]+class=\"pill)\\;confidence:50", "html": "(?:<div[^>]+id=\"wrapper_r\"|<(?:link|script)[^>]+(?:feed|components)/com_|<table[^>]+class=\"pill)\\;confidence:50",
"icon": "Joomla.svg", "icon": "Joomla.svg",
"implies": "PHP", "implies": "PHP",
"meta": { "meta": {

@ -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

Loading…
Cancel
Save