diff --git a/plugins/webpage/popcorn.webpage.html b/plugins/webpage/popcorn.webpage.html
index cc932c8cd..f8193a3cc 100644
--- a/plugins/webpage/popcorn.webpage.html
+++ b/plugins/webpage/popcorn.webpage.html
@@ -14,7 +14,7 @@
id: "webpages-a",
start: 0,
end: 5,
- src: "http://webmademovies.org/",
+ src: "//webmademovies.org/",
target: "webpagediv"
})
.webpage({
diff --git a/plugins/webpage/popcorn.webpage.js b/plugins/webpage/popcorn.webpage.js
index 2f409af60..448f66cb7 100755
--- a/plugins/webpage/popcorn.webpage.js
+++ b/plugins/webpage/popcorn.webpage.js
@@ -62,6 +62,9 @@
var target = document.getElementById( options.target );
+ // make src an iframe acceptable string
+ options.src = options.src.replace( /^(https?:)?(\/\/)?/, "//" );
+
// make an iframe
options._iframe = document.createElement( "iframe" );
options._iframe.setAttribute( "width", "100%" );
diff --git a/plugins/webpage/popcorn.webpage.unit.js b/plugins/webpage/popcorn.webpage.unit.js
index 7491bbf5c..13952971b 100755
--- a/plugins/webpage/popcorn.webpage.unit.js
+++ b/plugins/webpage/popcorn.webpage.unit.js
@@ -26,7 +26,7 @@ test( "Popcorn Webpage Plugin", function() {
id: "webpages-a",
start: 0,
end: 1,
- src: "http://webmademovies.org",
+ src: "webmademovies.org",
target: "webpagediv"
})
.webpage({