one single GM_addStyle

This commit is contained in:
James Campos 2011-03-27 14:00:01 -07:00
parent 4862e64257
commit e00c1e6a40
2 changed files with 22 additions and 24 deletions

View File

@ -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;\
}\

View File

@ -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;
}