diff --git a/4chan_x.coffee b/4chan_x.coffee
index a82a83331..bb3315292 100644
--- a/4chan_x.coffee
+++ b/4chan_x.coffee
@@ -10,7 +10,6 @@ config =
'404 Redirect': [true, 'Redirect dead threads']
'Anonymize': [false, 'Make everybody anonymous']
'Auto Watch': [true, 'Automatically watch threads that you start (Firefox only)']
- 'Auto Update': [true, 'Automatically enable automatic updating']
'Comment Expansion': [true, 'Expand too long comments']
'Image Expansion': [true, 'Expand images']
'Keybinds': [false, 'Binds actions to keys']
@@ -899,19 +898,28 @@ updateNow = ->
updaterMake = ->
html = "
Thread Updater
"
- html += ""
+ html += ""
+ html += ""
html += ""
html += ""
div = new Dialog('updater', 'topright', html).el
- auto = $ 'input[name=auto]', div
- auto.addEventListener 'click', updateAuto, true
+ autoG = $('input[name=autoG]', div)
+ autoG.addEventListener 'click', changeCheckbox, true
+ autoG.checked = GM_getValue 'autoG', false
+
+ autoL = $ 'input[name=autoL]', div
+ autoL.addEventListener 'click', updateAuto, true
+
interval = $ 'input[name=interval]', div
interval.value = GM_getValue 'Interval', 10
interval.addEventListener 'change', updateInterval, true
+
$('input[type=button]', div).addEventListener 'click', updateNow, true
+
d.body.appendChild div
- if getConfig 'Auto Update' then auto.click()
+
+ if autoG.checked then autoL.click()
watch = ->
id = @nextSibling.name
@@ -1165,7 +1173,7 @@ if getConfig 'Image Expansion'
thumbs = $$ 'img[md5]', root
for thumb in thumbs
thumb.parentNode.addEventListener 'click', imageClick, true
- if g.expand then imageFull thumb
+ if g.expand then imageToggle thumb.parentNode
if getConfig 'Localize Time'
g.callbacks.push (root) ->
diff --git a/4chan_x.js b/4chan_x.js
index 1df6f22c2..2ce63a6e3 100644
--- a/4chan_x.js
+++ b/4chan_x.js
@@ -5,7 +5,6 @@
'404 Redirect': [true, 'Redirect dead threads'],
'Anonymize': [false, 'Make everybody anonymous'],
'Auto Watch': [true, 'Automatically watch threads that you start (Firefox only)'],
- 'Auto Update': [true, 'Automatically enable automatic updating'],
'Comment Expansion': [true, 'Expand too long comments'],
'Image Expansion': [true, 'Expand images'],
'Keybinds': [false, 'Binds actions to keys'],
@@ -1151,21 +1150,25 @@
return g.req = request(url, updateCallback);
};
updaterMake = function() {
- var auto, div, html, interval;
+ var autoG, autoL, div, html, interval;
html = " Thread Updater
";
- html += "";
+ html += "";
+ html += "";
html += "";
html += "";
div = new Dialog('updater', 'topright', html).el;
- auto = $('input[name=auto]', div);
- auto.addEventListener('click', updateAuto, true);
+ autoG = $('input[name=autoG]', div);
+ autoG.addEventListener('click', changeCheckbox, true);
+ autoG.checked = GM_getValue('autoG', false);
+ autoL = $('input[name=autoL]', div);
+ autoL.addEventListener('click', updateAuto, true);
interval = $('input[name=interval]', div);
interval.value = GM_getValue('Interval', 10);
interval.addEventListener('change', updateInterval, true);
$('input[type=button]', div).addEventListener('click', updateNow, true);
d.body.appendChild(div);
- if (getConfig('Auto Update')) {
- return auto.click();
+ if (autoG.checked) {
+ return autoL.click();
}
};
watch = function() {
@@ -1449,7 +1452,7 @@
for (_i = 0, _len = thumbs.length; _i < _len; _i++) {
thumb = thumbs[_i];
thumb.parentNode.addEventListener('click', imageClick, true);
- _results.push(g.expand ? imageFull(thumb) : void 0);
+ _results.push(g.expand ? imageToggle(thumb.parentNode) : void 0);
}
return _results;
});