Anonumizer: Remove trips, not user IDs or whatever's after the name. Remove the mail only if it's not sage.
This commit is contained in:
parent
d8f5ad1ead
commit
baab56b526
@ -2700,14 +2700,17 @@
|
|||||||
return Main.callbacks.push(this.node);
|
return Main.callbacks.push(this.node);
|
||||||
},
|
},
|
||||||
node: function(post) {
|
node: function(post) {
|
||||||
var name, node;
|
var name, parent, trip;
|
||||||
if (post.isInlined && !post.isCrosspost) {
|
if (post.isInlined && !post.isCrosspost) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
name = $('.name', post.el);
|
name = $('.name', post.el);
|
||||||
name.textContent = 'Anonymous';
|
name.textContent = 'Anonymous';
|
||||||
if (node = name.nextElementSibling) {
|
if ((trip = name.nextElementSibling) && trip.className === 'postertrip') {
|
||||||
return $.rm(node);
|
$.rm(trip);
|
||||||
|
}
|
||||||
|
if ((parent = name.parentNode).className === 'useremail' && !/^sage$/i.test(parent.pathname)) {
|
||||||
|
return $.replace(parent, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2149,8 +2149,10 @@ Anonymize =
|
|||||||
return if post.isInlined and not post.isCrosspost
|
return if post.isInlined and not post.isCrosspost
|
||||||
name = $ '.name', post.el
|
name = $ '.name', post.el
|
||||||
name.textContent = 'Anonymous'
|
name.textContent = 'Anonymous'
|
||||||
if node = name.nextElementSibling
|
if (trip = name.nextElementSibling) and trip.className is 'postertrip'
|
||||||
$.rm node
|
$.rm trip
|
||||||
|
if (parent = name.parentNode).className is 'useremail' and not /^sage$/i.test parent.pathname
|
||||||
|
$.replace parent, name
|
||||||
|
|
||||||
Sauce =
|
Sauce =
|
||||||
init: ->
|
init: ->
|
||||||
@ -2677,7 +2679,6 @@ Unread =
|
|||||||
Unread.foresee.splice index, 1
|
Unread.foresee.splice index, 1
|
||||||
return
|
return
|
||||||
{el} = post
|
{el} = post
|
||||||
# new HTML ???
|
|
||||||
return if el.hidden or /\bop\b/.test(post.class) or post.isInlined
|
return if el.hidden or /\bop\b/.test(post.class) or post.isInlined
|
||||||
count = Unread.replies.push el
|
count = Unread.replies.push el
|
||||||
Unread.update count is 1
|
Unread.update count is 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user