From 847dc35f527a1afb9d9548137b88ae258ac3bc99 Mon Sep 17 00:00:00 2001 From: No Face Date: Thu, 23 Feb 2012 11:47:37 +0100 Subject: [PATCH 1/4] Update imagelimit for mlp. --- 4chan_x.user.js | 1 + script.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 04a293c82..96fe9a2cf 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3223,6 +3223,7 @@ threadStats.imgLimit = (function() { switch (g.BOARD) { case 'a': + case 'mlp': case 'v': return 251; case 'vg': diff --git a/script.coffee b/script.coffee index 0605e5703..23d9f3d27 100644 --- a/script.coffee +++ b/script.coffee @@ -2610,7 +2610,7 @@ threadStats = threadStats.posts = threadStats.images = 0 threadStats.imgLimit = switch g.BOARD - when 'a', 'v' + when 'a', 'mlp', 'v' 251 when 'vg' 501 From 8acf4fc8b795ec60dd1ac6ccd1b00754a2b635e8 Mon Sep 17 00:00:00 2001 From: No Face Date: Thu, 23 Feb 2012 12:00:04 +0100 Subject: [PATCH 2/4] Add unique ID to filter. --- 4chan_x.user.js | 7 +++++++ script.coffee | 9 +++++++++ 2 files changed, 16 insertions(+) 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:

    From f7f69383bc8b29e2f3428bdd2be109f36b28b425 Mon Sep 17 00:00:00 2001 From: No Face Date: Thu, 23 Feb 2012 19:34:10 +0100 Subject: [PATCH 3/4] Derp. --- 4chan_x.user.js | 7 ------- script.coffee | 9 --------- 2 files changed, 16 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index de98d68f6..96fe9a2cf 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -138,7 +138,6 @@ }, 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'), @@ -624,11 +623,6 @@ 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; @@ -2158,7 +2152,6 @@
  • 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 4ea65895d..23d9f3d27 100644 --- a/script.coffee +++ b/script.coffee @@ -58,10 +58,6 @@ config = '# Filter any namefags:' '#/^(?!Anonymous$)/' ].join '\n' - uniqueid: [ - '# Filter a specific ID:' - '#/Txhvk1Tl/' - ].join '\n' tripcode: [ '# Filter any tripfags' '#/^!/' @@ -544,10 +540,6 @@ 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 @@ -1758,7 +1750,6 @@ 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:

    From 0730e2b099340d8a620b529f4e61882631af8c55 Mon Sep 17 00:00:00 2001 From: No Face Date: Thu, 23 Feb 2012 19:43:08 +0100 Subject: [PATCH 4/4] Update the changelog. --- changelog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changelog b/changelog index 0b9a5846d..3d16fc0b2 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- noface + Update imagelimit for mlp. 2.27.1 - Mayhem