Sha256: fb61249fa14950f5f744868c3adc968de1aaa7d70b41f142d2fec2e016248d4c

Contents?: true

Size: 1000 Bytes

Versions: 6

Compression:

Stored size: 1000 Bytes

Contents

# 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
##
# Version 0.2
# removed :probability
##
# Version 0.3
# rewrite
##
# Version 0.4
# added another match line from Eric Sesterhenn

WhatWeb::Plugin.define "JQuery" do
  @author = "Andrew Horton"
  @version = "0.4"
  @description = "A fast, concise, JavaScript that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX."
  @website = "http://jquery.com/"

  # Matches #
  @matches = [

    # JavaScript
    { regexp: /<script [^>]*jquery/ },

    # JavaScript # Version Detection
    { version: /jquery(\.min)?\.js\?ver=([0-9\.]+)['"]/, offset: 1 },
    { version: /jquery\/([0-9\.]+)\/jquery(\.min)?\.js/, offset: 0 },
    { version: /jquery-([0-9\.]+)(\.min)?\.js/, offset: 0 }

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/jquery.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/jquery.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/jquery.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/jquery.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/jquery.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/jquery.rb