Just a couple checks
This commit is contained in:
parent
c438ab6c3b
commit
97f7cca2b1
@ -4161,7 +4161,7 @@
|
||||
|
||||
QuoteYou = {
|
||||
init: function() {
|
||||
if (g.VIEW === 'catalog' || !Conf['Mark Quotes of You'] || !Conf['Quick Reply']) {
|
||||
if (!(g.VIEW !== 'catalog' && Conf['Mark Quotes of You'] && Conf['Quick Reply'])) {
|
||||
return;
|
||||
}
|
||||
if (Conf['Highlight Own Posts']) {
|
||||
@ -4203,6 +4203,8 @@
|
||||
seek: function(type) {
|
||||
var post, posts, result, str;
|
||||
|
||||
return unlses(Conf['Mark Quotes of You'] && Conf['Quick Reply']);
|
||||
$.rmClass($('.highlight'), 'highlight');
|
||||
if (!QuoteYou.lastRead) {
|
||||
if (!(post = QuoteYou.lastRead = $('.quotesYou'))) {
|
||||
new Notification('warning', 'No posts are currently quoting you, loser.', 20);
|
||||
@ -4214,7 +4216,6 @@
|
||||
} else {
|
||||
post = QuoteYou.lastRead;
|
||||
}
|
||||
$.rmClass($('.highlight'), 'highlight');
|
||||
str = "" + type + "::div[contains(@class,'quotesYou')]";
|
||||
while (post = (result = $.X(str, post)).snapshotItem(type === 'preceding' ? result.snapshotLength - 1 : 0)) {
|
||||
if (QuoteYou.cb.scroll(post)) {
|
||||
|
||||
@ -4166,7 +4166,7 @@
|
||||
|
||||
QuoteYou = {
|
||||
init: function() {
|
||||
if (g.VIEW === 'catalog' || !Conf['Mark Quotes of You'] || !Conf['Quick Reply']) {
|
||||
if (!(g.VIEW !== 'catalog' && Conf['Mark Quotes of You'] && Conf['Quick Reply'])) {
|
||||
return;
|
||||
}
|
||||
if (Conf['Highlight Own Posts']) {
|
||||
@ -4208,6 +4208,8 @@
|
||||
seek: function(type) {
|
||||
var post, posts, result, str;
|
||||
|
||||
return unlses(Conf['Mark Quotes of You'] && Conf['Quick Reply']);
|
||||
$.rmClass($('.highlight'), 'highlight');
|
||||
if (!QuoteYou.lastRead) {
|
||||
if (!(post = QuoteYou.lastRead = $('.quotesYou'))) {
|
||||
new Notification('warning', 'No posts are currently quoting you, loser.', 20);
|
||||
@ -4219,7 +4221,6 @@
|
||||
} else {
|
||||
post = QuoteYou.lastRead;
|
||||
}
|
||||
$.rmClass($('.highlight'), 'highlight');
|
||||
str = "" + type + "::div[contains(@class,'quotesYou')]";
|
||||
while (post = (result = $.X(str, post)).snapshotItem(type === 'preceding' ? result.snapshotLength - 1 : 0)) {
|
||||
if (QuoteYou.cb.scroll(post)) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
QuoteYou =
|
||||
init: ->
|
||||
return if g.VIEW is 'catalog' or !Conf['Mark Quotes of You'] or !Conf['Quick Reply']
|
||||
return unless g.VIEW isnt 'catalog' and Conf['Mark Quotes of You'] and Conf['Quick Reply']
|
||||
|
||||
if Conf['Highlight Own Posts']
|
||||
$.addClass doc, 'highlight-own'
|
||||
@ -33,6 +33,9 @@ QuoteYou =
|
||||
|
||||
cb:
|
||||
seek: (type) ->
|
||||
return unlses Conf['Mark Quotes of You'] and Conf['Quick Reply']
|
||||
$.rmClass $('.highlight'), 'highlight'
|
||||
|
||||
unless QuoteYou.lastRead
|
||||
unless post = QuoteYou.lastRead = $ '.quotesYou'
|
||||
new Notification 'warning', 'No posts are currently quoting you, loser.', 20
|
||||
@ -41,8 +44,6 @@ QuoteYou =
|
||||
else
|
||||
post = QuoteYou.lastRead
|
||||
|
||||
$.rmClass $('.highlight'), 'highlight'
|
||||
|
||||
str = "#{type}::div[contains(@class,'quotesYou')]"
|
||||
|
||||
while post = (result = $.X(str, post)).snapshotItem(if type is 'preceding' then result.snapshotLength - 1 else 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user