rm AEOS object ;_;

This commit is contained in:
James Campos 2011-01-15 17:20:34 -08:00
parent c7e57a9cd1
commit b20fadb6af
2 changed files with 79 additions and 86 deletions

View File

@ -31,11 +31,8 @@ config =
'Thread Watcher': [true, 'Bookmark threads'] 'Thread Watcher': [true, 'Bookmark threads']
'Unread Count': [true, 'Show unread post count in tab title'] 'Unread Count': [true, 'Show unread post count in tab title']
#framework #x-browser
AEOS = if typeof GM_deleteValue is 'undefined'
init: ->
#x-browser
if typeof GM_deleteValue is 'undefined'
window.GM_setValue = (name, value) -> window.GM_setValue = (name, value) ->
value = (typeof value)[0] + value value = (typeof value)[0] + value
localStorage.setItem name, value localStorage.setItem name, value
@ -59,8 +56,8 @@ AEOS =
window.GM_openInTab = (url) -> window.GM_openInTab = (url) ->
window.open url, "_blank" window.open url, "_blank"
#dialog styling #dialog styling
GM_addStyle ' GM_addStyle '
div.dialog { div.dialog {
border: 1px solid; border: 1px solid;
} }
@ -70,7 +67,7 @@ AEOS =
label, a { label, a {
cursor: pointer; cursor: pointer;
} }
' '
class Dialog class Dialog
constructor: (id, position, html) -> constructor: (id, position, html) ->

View File

@ -1,5 +1,5 @@
(function() { (function() {
var $, $$, AEOS, DAY, Dialog, a, addTo, arr, as, autoWatch, autohide, b, board, callback, changeCheckbox, changeText, clearHidden, closeQR, config, cooldown, cutoff, d, delform, down, editSauce, el, expand, expandComment, expandThread, formSubmit, g, getConfig, getThread, getTime, hide, hideReply, hideThread, href, html, i, id, iframe, iframeLoad, imageClick, imageExpandClick, imageFull, imageThumb, imageToggle, img, inAfter, inBefore, input, inputs, keyModeInsert, keyModeNormal, keydown, keypress, l1, lastChecked, m, n, navbotr, navtopr, nodeInserted, now, omitted, onloadComment, onloadThread, options, parseResponse, pathname, qrListener, qrText, quickReply, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, request, scroll, scrollThread, show, showReply, showThread, slice, span, src, start, stopPropagation, temp, text, textContent, thread, threadF, threads, tn, tzOffset, up, updateAuto, updateCallback, updateFavicon, updateInterval, updateNow, updateTime, updateTitle, updaterMake, watch, watchX, watcher, watcherUpdate, x, zeroPad, _, _base, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _len6, _m, _ref, _ref2, _ref3, _ref4, _ref5; var $, $$, DAY, Dialog, a, addTo, arr, as, autoWatch, autohide, b, board, callback, changeCheckbox, changeText, clearHidden, closeQR, config, cooldown, cutoff, d, delform, down, editSauce, el, expand, expandComment, expandThread, formSubmit, g, getConfig, getThread, getTime, hide, hideReply, hideThread, href, html, i, id, iframe, iframeLoad, imageClick, imageExpandClick, imageFull, imageThumb, imageToggle, img, inAfter, inBefore, input, inputs, keyModeInsert, keyModeNormal, keydown, keypress, l1, lastChecked, m, n, navbotr, navtopr, nodeInserted, now, omitted, onloadComment, onloadThread, options, parseResponse, pathname, qrListener, qrText, quickReply, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, request, scroll, scrollThread, show, showReply, showThread, slice, span, src, start, stopPropagation, temp, text, textContent, thread, threadF, threads, tn, tzOffset, up, updateAuto, updateCallback, updateFavicon, updateInterval, updateNow, updateTime, updateTitle, updaterMake, watch, watchX, watcher, watcherUpdate, x, zeroPad, _, _base, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _len6, _m, _ref, _ref2, _ref3, _ref4, _ref5;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __slice = Array.prototype.slice; var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __slice = Array.prototype.slice;
config = { config = {
'404 Redirect': [true, 'Redirect dead threads'], '404 Redirect': [true, 'Redirect dead threads'],
@ -26,8 +26,6 @@
'Thread Watcher': [true, 'Bookmark threads'], 'Thread Watcher': [true, 'Bookmark threads'],
'Unread Count': [true, 'Show unread post count in tab title'] 'Unread Count': [true, 'Show unread post count in tab title']
}; };
AEOS = {
init: function() {
if (typeof GM_deleteValue === 'undefined') { if (typeof GM_deleteValue === 'undefined') {
window.GM_setValue = function(name, value) { window.GM_setValue = function(name, value) {
value = (typeof value)[0] + value; value = (typeof value)[0] + value;
@ -60,7 +58,7 @@
return window.open(url, "_blank"); return window.open(url, "_blank");
}; };
} }
return GM_addStyle('\ GM_addStyle('\
div.dialog {\ div.dialog {\
border: 1px solid;\ border: 1px solid;\
}\ }\
@ -70,9 +68,7 @@
label, a {\ label, a {\
cursor: pointer;\ cursor: pointer;\
}\ }\
'); ');
}
};
Dialog = (function() { Dialog = (function() {
function Dialog(id, position, html) { function Dialog(id, position, html) {
this.moveEnd = __bind(this.moveEnd, this);; this.moveEnd = __bind(this.moveEnd, this);;