diff --git a/4chan_x.user.js b/4chan_x.user.js index 96fe9a2cf..de98d68f6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -138,6 +138,7 @@ }, filter: { name: ['# Filter any namefags:', '#/^(?!Anonymous$)/'].join('\n'), + uniqueid: ['# Filter a specific ID:', '#/Txhvk1Tl/'].join('\n'), tripcode: ['# Filter any tripfags', '#/^!/'].join('\n'), email: ['# Filter any e-mails that are not `sage` on /a/ and /jp/:', '#/^(?!sage$)/;boards:a,jp'].join('\n'), subject: ['# Filter Generals on /v/:', '#/general/i;boards:v;op:only'].join('\n'), @@ -623,6 +624,11 @@ name = isOP ? $('.postername', root) : $('.commentpostername', root); return name.textContent; }, + uniqueid: function(root) { + var uniqueid; + if (uniqueid = $('.posteruid', root)) return uniqueid.textContent; + return false; + }, tripcode: function(root) { var trip; if (trip = $('.postertrip', root)) return trip.textContent; @@ -2152,6 +2158,7 @@
  • Highlighted OPs will have their threads put on top of board pages by default.
    For example: top:yes or top:no.
  • \ \

    Name:

    \ +

    Unique ID:

    \

    Tripcode:

    \

    E-mail:

    \

    Subject:

    \ diff --git a/script.coffee b/script.coffee index 23d9f3d27..4ea65895d 100644 --- a/script.coffee +++ b/script.coffee @@ -58,6 +58,10 @@ config = '# Filter any namefags:' '#/^(?!Anonymous$)/' ].join '\n' + uniqueid: [ + '# Filter a specific ID:' + '#/Txhvk1Tl/' + ].join '\n' tripcode: [ '# Filter any tripfags' '#/^!/' @@ -540,6 +544,10 @@ filter = name: (root, isOP) -> name = if isOP then $ '.postername', root else $ '.commentpostername', root name.textContent + uniqueid: (root) -> + if uniqueid = $ '.posteruid', root + return uniqueid.textContent + false tripcode: (root) -> if trip = $ '.postertrip', root return trip.textContent @@ -1750,6 +1758,7 @@ options =
  • Highlighted OPs will have their threads put on top of board pages by default.
    For example: top:yes or top:no.
  • Name:

    +

    Unique ID:

    Tripcode:

    E-mail:

    Subject: