diff --git a/4chan_x.js b/4chan_x.js index 5c197fbd3..39abc15e0 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -119,17 +119,6 @@ return window.open(url, "_blank"); }; } - GM_addStyle('\ - div.dialog {\ - border: 1px solid;\ - }\ - div.dialog > div.move {\ - cursor: move;\ - }\ - label, a {\ - cursor: pointer;\ - }\ -'); ui = { dialog: function(id, position, html) { var el, left, top, _ref; @@ -1570,6 +1559,17 @@ GM_setValue('lastChecked', now.toString()); } GM_addStyle('\ + /* dialog styling */\ + div.dialog {\ + border: 1px solid;\ + }\ + div.dialog > div.move {\ + cursor: move;\ + }\ + label, a {\ + cursor: pointer;\ + }\ +\ #iHover {\ position: fixed;\ }\ diff --git a/script.coffee b/script.coffee index 91b13355d..35328b26e 100644 --- a/script.coffee +++ b/script.coffee @@ -51,19 +51,6 @@ if typeof GM_deleteValue is 'undefined' window.GM_openInTab = (url) -> window.open url, "_blank" -#dialog styling -GM_addStyle ' - div.dialog { - border: 1px solid; - } - div.dialog > div.move { - cursor: move; - } - label, a { - cursor: pointer; - } -' - ui = dialog: (id, position, html) -> ui.el = el = document.createElement 'div' @@ -1210,6 +1197,17 @@ if lastChecked < now - 1*DAY GM_setValue('lastChecked', now.toString()) GM_addStyle ' + /* dialog styling */ + div.dialog { + border: 1px solid; + } + div.dialog > div.move { + cursor: move; + } + label, a { + cursor: pointer; + } + #iHover { position: fixed; }