From 52366d2078b6e347e8f9efa44fde126307b016da Mon Sep 17 00:00:00 2001 From: James Campos Date: Fri, 14 Oct 2011 14:39:25 -0700 Subject: [PATCH 1/4] give watcher full op text --- 4chan_x.user.js | 5 ++++- script.coffee | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 28820f6d7..5a29f9d0b 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2124,7 +2124,7 @@ var props, watched, _name; props = { href: "/" + g.BOARD + "/res/" + id, - textContent: getTitle(thread).slice(0, 30) + textContent: getTitle(thread) }; watched = $.get('watched', {}); watched[_name = g.BOARD] || (watched[_name] = {}); @@ -3244,6 +3244,9 @@ \ #watcher {\ position: absolute;\ + width: 250px;\ + overflow: hidden;\ + white-space: nowrap;\ }\ #watcher > div {\ padding-right: 5px;\ diff --git a/script.coffee b/script.coffee index ea8eb5f4a..1d3e40b01 100644 --- a/script.coffee +++ b/script.coffee @@ -1614,7 +1614,7 @@ watcher = watch: (thread, id) -> props = href: "/#{g.BOARD}/res/#{id}" - textContent: getTitle(thread)[...30] + textContent: getTitle(thread) watched = $.get 'watched', {} watched[g.BOARD] or= {} @@ -2505,6 +2505,9 @@ Main = #watcher { position: absolute; + width: 250px; + overflow: hidden; + white-space: nowrap; } #watcher > div { padding-right: 5px; From b1f1e704488e7c886805453666652b8ff1e68ec3 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 15 Oct 2011 02:59:44 +0200 Subject: [PATCH 2/4] Ellipsis text-overflow, use max-width (too empty otherwise), smaller max-width (that was really HUGE). --- 4chan_x.user.js | 7 ++++--- script.coffee | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 5a29f9d0b..3e674a0d6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3244,13 +3244,14 @@ \ #watcher {\ position: absolute;\ - width: 250px;\ - overflow: hidden;\ - white-space: nowrap;\ }\ #watcher > div {\ + overflow: hidden;\ padding-right: 5px;\ padding-left: 5px;\ + text-overflow: ellipsis;\ + max-width: 200px;\ + white-space: nowrap;\ }\ #watcher > div.move {\ text-decoration: underline;\ diff --git a/script.coffee b/script.coffee index 1d3e40b01..e13e34908 100644 --- a/script.coffee +++ b/script.coffee @@ -2505,13 +2505,14 @@ Main = #watcher { position: absolute; - width: 250px; - overflow: hidden; - white-space: nowrap; } #watcher > div { + overflow: hidden; padding-right: 5px; padding-left: 5px; + text-overflow: ellipsis; + max-width: 200px; + white-space: nowrap; } #watcher > div.move { text-decoration: underline; From 6516d70eb32a8897ec3cecd5b779f4d98f42a129 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 20 Oct 2011 00:58:33 -0700 Subject: [PATCH 3/4] rm support throd ;_; --- 4chan_x.user.js | 1 - script.coffee | 1 - 2 files changed, 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3e674a0d6..acee9a4b5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1216,7 +1216,6 @@
\ \ diff --git a/script.coffee b/script.coffee index e13e34908..4fe33e42f 100644 --- a/script.coffee +++ b/script.coffee @@ -859,7 +859,6 @@ options =
From a0b374ef3ce4f43ff2619ab52e3319b12767f51c Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 27 Oct 2011 01:40:59 +0200 Subject: [PATCH 4/4] Update archives redirections. Close #343 --- 4chan_x.user.js | 2 ++ changelog | 2 +- script.coffee | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index acee9a4b5..aa559b9c5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2709,7 +2709,9 @@ redirect = function() { var url; switch (g.BOARD) { + case 'diy': case 'g': + case 'pol': case 'sci': url = "http://archive.installgentoo.net/cgi-board.pl/" + g.BOARD + "/thread/" + g.THREAD_ID; break; diff --git a/changelog b/changelog index d6022eeaf..7863bc30c 100644 --- a/changelog +++ b/changelog @@ -2,7 +2,7 @@ master - mayhem initiate 4chan X earlier automatically reload expanded pictures on error - update /sci/ archive redirection + update archives redirections for /diy/, /pol/ and /sci/ regular expressions based filter handle bans with the thread updater performance improvements diff --git a/script.coffee b/script.coffee index 4fe33e42f..eca173d15 100644 --- a/script.coffee +++ b/script.coffee @@ -2017,7 +2017,7 @@ Favicon = redirect = -> switch g.BOARD - when 'g', 'sci' + when 'diy', 'g', 'pol', 'sci' url = "http://archive.installgentoo.net/cgi-board.pl/#{g.BOARD}/thread/#{g.THREAD_ID}" when 'lit', 'tv' url = "http://archive.gentoomen.org/cgi-board.pl/#{g.BOARD}/thread/#{g.THREAD_ID}"