# frozen_string_literal: true ## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## WhatWeb::Plugin.define "Minify" do @author = "Andrew Horton" @version = "0.1" @description = "Minify is a PHP5 app that can combine multiple CSS or Javascript files, compress their contents (i.e. removal of unnecessary whitespace/comments), and serve the results with HTTP encoding (gzip/deflate) and headers that allow optimal client-side caching. It uses an enhanced port of Douglas Crockford's JSMin library. http://code.google.com/p/minify/" # Matches # @matches = [ { name: "script tag minify.php", regexp: /]+src=["'][^>]+\/minify.php\?[a-z]+=[^>]+["']/ }, { name: "script tag /min/g=", certainty: 75, regexp: /]+src=["'][^>]*\/min\/g=[^>]+["']/ }, { name: "script tag /min/js?", certainty: 75, regexp: /]+src=["'][^>]*\/min\/js\?[^>]+["']/ } ] # # this plugin is weak, needs more examples # # # # # # # # # # # # # # # # # # # # # # # end