diff --git a/4chan_x.user.js b/4chan_x.user.js index c3cda6dfe..45d3af7b6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -451,7 +451,7 @@ } }, open: function(url) { - return (GM_openInTab || window.open)(url, '_blank'); + return (GM_openInTab || window.open)(location.protocol + url, '_blank'); }, isDST: function() { /* diff --git a/script.coffee b/script.coffee index 421eab967..5f63ae6f5 100644 --- a/script.coffee +++ b/script.coffee @@ -348,7 +348,7 @@ $.extend $, el.removeEventListener event, handler, false return open: (url) -> - (GM_openInTab or window.open) url, '_blank' + (GM_openInTab or window.open) location.protocol + url, '_blank' isDST: -> ### http://en.wikipedia.org/wiki/Eastern_Time_Zone