diff --git a/4chan_x.coffee b/4chan_x.coffee index 66470b6c6..7f2ac34c8 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -52,7 +52,7 @@ AEOS = document.getElementsByTagName('head')[0].appendChild style window.GM_openInTab = (url) -> form = document.getElementById 'GM_form' - form.action = link + form.action = url form.submit() form = document.createElement 'form' form.id = 'GM_form' diff --git a/4chan_x.js b/4chan_x.js index ff3083311..f1f4d120c 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -54,7 +54,7 @@ window.GM_openInTab = function(url) { var form; form = document.getElementById('GM_form'); - form.action = link; + form.action = url; return form.submit(); }; form = document.createElement('form');