Firefox Addon for following questions on TJC

asked 2015-07-23 19:28:08 +0300

DaveRo gravatar image

updated 2017-08-11 17:11:38 +0300

Jolla askbot unseen postsis an addon for Firefox that helps you follow questions on TJC. Details here:

See the latest update at the bottom of this question.

Feedback and questions welcome as comments here.

Earlier posts: (I have removed obsolete posts including references to the original userscripts.)

Update 26-10-15

It just occurred to me, reading a question about the ask/submit button, that I'm applying a userstyle to ensure that the latest activity date is always visible on this tablet (a Nexus 7). Without it you might not see some of the coloured dates on a narrow display.

@-moz-document url-prefix(
/* Always display latest update time */
div.userinfo { display : block ! important ; }

Update 07-11-15

Sometimes the question list shows there is a new answer or comment but when I view the question nothing is highlighted. Usually that's because the new entry is not on the first page so I immediately want to see later pages. I wrote a userstyle that moves the paginator to the top to make that easier on my tablet. (No, not that tablet, still the Nexus 7.)

@-moz-document url-prefix(
/* 06-09-2015 */
/* Move paginator to top */
div.paginator { position : absolute ! important ;
top : -20px ! important ;
right : 0px ! important ; }

It's a bit crude. You may need to edit the positions for other devices. A userscript to duplicate the paginator at top and bottom would be better.

Note: see update 11-08-17 for alternative code for desktops and mobiles.

Update 24-02-17

I have converted the Firefox addon into a webextension, which will become mandatory later this year (though probably not as soon as currently planned). It doesn't work on Android yet - some APIs are unavailable - so I've not released it.

Firefox 51 for Android has (another) bug that stops it displaying options in the addons manager - for this and many other addons. This doesn't matter much for TJC - it works fine with the defaults. The options can be set in about:config - filter on 'jolla'. They display OK on desktop so test them there first.

Update 11-08-17

I've released the WebExtension version of the addon. It's now version 2.0.0 and works with Firefox 52+ on desktop and Firefox 56+ on Android. (Preference setting in Android is only available in v56 and even that contains bugs.)

Provided you update from v1.1.6, released in February, your preferences will be automatically migrated. Otherwise they will revert to the defaults. (In which case if you're using it on another site, such as, you would need to re-enter its URL.)

I noticed recently that there have been changes to JTC since I wrote the original userscripts - I don't know when. Firstly, the way comments are expanded: an answer's comments are all expanded in one click rather than a few at a time. The comment-expansion code in the addon still works but, because it can fetch a a bigger block of comments, it can take longer. The effect is that big sets of comments - such as release announcements - are often not coloured. On most questions there is no effect. If you want to increase the chance of all comments being coloured, and of scrolling to the first new one, increase the 'delay 2' parameter - e.g. double it to 3000. But it then takes slightly longer to scroll down on all questions.

Secondly the userstyle I posted above which moves the paginator to the top now makes it disappear on my desktop, but is fine on my tablet. Changing 'top : -20px' to 'top : 110px' fixed it for me. YMMV.

edit retag flag offensive close delete


I have to admit, this is very welcome. Using Firefox 42.0a2 (2015-08-18) and disabled the signature checks on Aurora (Firefox Developer Edition) Thank you for the effort! Great enhancement for TJC

MoritzJT ( 2015-08-18 19:59:09 +0300 )edit

I think that developer edition will always have that preference. The normal released version will have it in v41 but in v42 all unsigned extensions will be disabled.

At current rate of progress this will be signed some time next year! But they're training up more reviewers. Anyway I can get a signed version and host it myself, which is what I've always done up to now, but I'd have to handle the updates. I'll do that if necessary.

DaveRo ( 2015-08-19 10:31:50 +0300 )edit

Hi again, nice progress first off :-)

I wanted to ask if you can make the addons functionality available as userscript again for the other browser users like chromium etc.

MoritzJT ( 2015-08-27 17:26:47 +0300 )edit

@MoritzJT I just added these files to the same GIST:

jolla_together_unseen_posts_1_v2.user.js - this replaces v1

jolla_together_unseen_posts_3.user.js - this replaces script 2

Script 3 reads RSS files which causes 2 problems:

Mixed active content blocked: in Firefox I toggled a pref to allow it.

Different origin: in Firefox I used the Rewrite HTTP Headers addon to add this response header:

[{"url":"","headers":{"Access-Control-Allow-Origin": "*"}}]

(Privoxy could do that if you can't find a similar addon)

DaveRo ( 2015-08-27 20:22:55 +0300 )edit

I think your scripts show a great idea to make tjc better. But I do hope this will get in to the tjc site source code also and come available without extensions.

miqu ( 2015-10-27 01:22:27 +0300 )edit