Close #60
This commit is contained in:
parent
5474296167
commit
015bc15641
@ -1,3 +1,7 @@
|
|||||||
|
seaweedchan:
|
||||||
|
- Add `Centered links` option for header
|
||||||
|
- Add `Persistent Thread Watcher` option
|
||||||
|
|
||||||
### 1.1.15 - 2013-05-07
|
### 1.1.15 - 2013-05-07
|
||||||
seaweedchan:
|
seaweedchan:
|
||||||
- Fix update and download urls for Greasemonkey
|
- Fix update and download urls for Greasemonkey
|
||||||
|
|||||||
@ -181,6 +181,7 @@
|
|||||||
'Thread Stats': [true, 'Display reply and image count.'],
|
'Thread Stats': [true, 'Display reply and image count.'],
|
||||||
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
|
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
|
||||||
'Thread Watcher': [true, 'Bookmark threads.'],
|
'Thread Watcher': [true, 'Bookmark threads.'],
|
||||||
|
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
|
||||||
'Auto Watch': [true, 'Automatically watch threads you start.'],
|
'Auto Watch': [true, 'Automatically watch threads you start.'],
|
||||||
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
|
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
|
||||||
},
|
},
|
||||||
@ -7261,7 +7262,7 @@
|
|||||||
textContent: 'Watcher',
|
textContent: 'Watcher',
|
||||||
id: 'watcher-link',
|
id: 'watcher-link',
|
||||||
href: 'javascript:;',
|
href: 'javascript:;',
|
||||||
className: 'disabled'
|
className: "" + (Conf['Persistent Thread Watcher'] ? '' : 'disabled')
|
||||||
});
|
});
|
||||||
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
||||||
$.on(d, 'QRPostSuccessful', this.cb.post);
|
$.on(d, 'QRPostSuccessful', this.cb.post);
|
||||||
@ -7272,7 +7273,9 @@
|
|||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
ThreadWatcher.refresh();
|
ThreadWatcher.refresh();
|
||||||
$.add(d.body, ThreadWatcher.dialog);
|
$.add(d.body, ThreadWatcher.dialog);
|
||||||
return ThreadWatcher.dialog.hidden = true;
|
if (!Conf['Persistent Thread Watcher']) {
|
||||||
|
return ThreadWatcher.dialog.hidden = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return Thread.prototype.callbacks.push({
|
return Thread.prototype.callbacks.push({
|
||||||
name: 'Thread Watcher',
|
name: 'Thread Watcher',
|
||||||
|
|||||||
@ -181,6 +181,7 @@
|
|||||||
'Thread Stats': [true, 'Display reply and image count.'],
|
'Thread Stats': [true, 'Display reply and image count.'],
|
||||||
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
|
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
|
||||||
'Thread Watcher': [true, 'Bookmark threads.'],
|
'Thread Watcher': [true, 'Bookmark threads.'],
|
||||||
|
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
|
||||||
'Auto Watch': [true, 'Automatically watch threads you start.'],
|
'Auto Watch': [true, 'Automatically watch threads you start.'],
|
||||||
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
|
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
|
||||||
},
|
},
|
||||||
@ -7282,7 +7283,7 @@
|
|||||||
textContent: 'Watcher',
|
textContent: 'Watcher',
|
||||||
id: 'watcher-link',
|
id: 'watcher-link',
|
||||||
href: 'javascript:;',
|
href: 'javascript:;',
|
||||||
className: 'disabled'
|
className: "" + (Conf['Persistent Thread Watcher'] ? '' : 'disabled')
|
||||||
});
|
});
|
||||||
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
||||||
$.on(d, 'QRPostSuccessful', this.cb.post);
|
$.on(d, 'QRPostSuccessful', this.cb.post);
|
||||||
@ -7293,7 +7294,9 @@
|
|||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
ThreadWatcher.refresh();
|
ThreadWatcher.refresh();
|
||||||
$.add(d.body, ThreadWatcher.dialog);
|
$.add(d.body, ThreadWatcher.dialog);
|
||||||
return ThreadWatcher.dialog.hidden = true;
|
if (!Conf['Persistent Thread Watcher']) {
|
||||||
|
return ThreadWatcher.dialog.hidden = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return Thread.prototype.callbacks.push({
|
return Thread.prototype.callbacks.push({
|
||||||
name: 'Thread Watcher',
|
name: 'Thread Watcher',
|
||||||
|
|||||||
@ -164,6 +164,7 @@
|
|||||||
'Thread Stats': [true, 'Display reply and image count.'],
|
'Thread Stats': [true, 'Display reply and image count.'],
|
||||||
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
|
'Updater and Stats in Header': [true, 'Places the thread updater and thread stats in the header instead of floating them.'],
|
||||||
'Thread Watcher': [true, 'Bookmark threads.'],
|
'Thread Watcher': [true, 'Bookmark threads.'],
|
||||||
|
'Persistent Thread Watcher': [false, 'Opens the thread watcher by default.'],
|
||||||
'Auto Watch': [true, 'Automatically watch threads you start.'],
|
'Auto Watch': [true, 'Automatically watch threads you start.'],
|
||||||
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
|
'Auto Watch Reply': [false, 'Automatically watch threads you reply to.']
|
||||||
},
|
},
|
||||||
@ -7261,7 +7262,7 @@
|
|||||||
textContent: 'Watcher',
|
textContent: 'Watcher',
|
||||||
id: 'watcher-link',
|
id: 'watcher-link',
|
||||||
href: 'javascript:;',
|
href: 'javascript:;',
|
||||||
className: 'disabled'
|
className: "" + (Conf['Persistent Thread Watcher'] ? '' : 'disabled')
|
||||||
});
|
});
|
||||||
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', '<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>');
|
||||||
$.on(d, 'QRPostSuccessful', this.cb.post);
|
$.on(d, 'QRPostSuccessful', this.cb.post);
|
||||||
@ -7272,7 +7273,9 @@
|
|||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
ThreadWatcher.refresh();
|
ThreadWatcher.refresh();
|
||||||
$.add(d.body, ThreadWatcher.dialog);
|
$.add(d.body, ThreadWatcher.dialog);
|
||||||
return ThreadWatcher.dialog.hidden = true;
|
if (!Conf['Persistent Thread Watcher']) {
|
||||||
|
return ThreadWatcher.dialog.hidden = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return Thread.prototype.callbacks.push({
|
return Thread.prototype.callbacks.push({
|
||||||
name: 'Thread Watcher',
|
name: 'Thread Watcher',
|
||||||
|
|||||||
@ -233,6 +233,10 @@ Config =
|
|||||||
true
|
true
|
||||||
'Bookmark threads.'
|
'Bookmark threads.'
|
||||||
]
|
]
|
||||||
|
'Persistent Thread Watcher': [
|
||||||
|
false
|
||||||
|
'Opens the thread watcher by default.'
|
||||||
|
]
|
||||||
'Auto Watch': [
|
'Auto Watch': [
|
||||||
true
|
true
|
||||||
'Automatically watch threads you start.'
|
'Automatically watch threads you start.'
|
||||||
|
|||||||
@ -5,7 +5,7 @@ ThreadWatcher =
|
|||||||
textContent: 'Watcher'
|
textContent: 'Watcher'
|
||||||
id: 'watcher-link'
|
id: 'watcher-link'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
className: 'disabled'
|
className: "#{if Conf['Persistent Thread Watcher'] then '' else 'disabled'}"
|
||||||
|
|
||||||
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
|
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
|
||||||
'<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>'
|
'<div class=move>Thread Watcher<a class=close href=javascript:;>×</a></div>'
|
||||||
@ -20,7 +20,8 @@ ThreadWatcher =
|
|||||||
$.ready ->
|
$.ready ->
|
||||||
ThreadWatcher.refresh()
|
ThreadWatcher.refresh()
|
||||||
$.add d.body, ThreadWatcher.dialog
|
$.add d.body, ThreadWatcher.dialog
|
||||||
ThreadWatcher.dialog.hidden = true
|
unless Conf['Persistent Thread Watcher']
|
||||||
|
ThreadWatcher.dialog.hidden = true
|
||||||
|
|
||||||
Thread::callbacks.push
|
Thread::callbacks.push
|
||||||
name: 'Thread Watcher'
|
name: 'Thread Watcher'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user