Sha256: 2c3fa8d7ebdf599aa58ef756e0d2e69599b1dd4bf5e6b7c6ae2996dad572e0cd

Contents?: true

Size: 736 Bytes

Versions: 6

Compression:

Stored size: 736 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
##
WhatWeb::Plugin.define "YouTube" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-04-16
  @version = "0.1"
  @description = "Embedded YouTube video"
  @website = "http://youtube.com/"

  # Matches #
  @matches = [

    # param|object Source
    { regexp: /<(param|embed) [^>]*youtube\.com\/v/i },

    # iframe
    # { :text=>'<iframe class="youtube-player"' },
    { regexp: /<iframe [^>]*src=['"]https?:\/\/(www\.)?youtube\.com\/embed\// },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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