OzBargain Live View Bookmark "Plugin"

I usually sit on my computer with an OzBargain tab on the live page and periodically switch over to review all the latest bargains showing up in the feed. If you're like me usually you also have trouble remembering the number of new deals on the tab title especially as you open the deals in new tabs and go review them. So I wrote a tampermonkey script (not really a plugin) that inserts a horizontal bookmark bar when you have the tab in the background so that when you switch back you can easily see what new deals have arrived.

To use this you will need the tampermonkey extension - for chrome or firefox - (is a modern version of greasemonkey) and copy the script. You would need to add a new script in the dashboard, copy the code in and save. Then when you load the live tab it should start automatically.

Of course downloading random scripts of the internet is usually a bad idea - so perhaps review my middling code before blindly copying - or if any people with some javascript background want to comment to check that my script it is doing what I say it is.

I have used this mainly in firefox, but have loaded the script into chrome today and appears to work.

Basic controls are reset button will move the bookmark to the top of the list.
Pause will toggle automatic update of the bookmark (resets the bookmark after 5 minutes without focus (another browser tab active))
Recently I have made the bookmark draggable as when I let a large number of new deals pile up it can be hard to track where I am up to as I go through them all.

The code is here

I am interested to see if anyone else finds this useful.

Comments

  • There's a bit missing out of your code, here's some pseudocode to explain it

    if plugin = installed
    then print "The first step to dealing with any addiction is admitting you have a problem. Go to ozbargainanonymous to find out more"
    
    • If you're in this thread its already too late for you.

    • +1

      Setting aside the fact that that conditional is always true, I think the biggest omission is not requiring OzBargain Premium to use this userscript.

      • monetisation will come after several years of hemorrhaging investor money. I think thats how it works anyway.

  • lgtm

    Could add a button to delete/hide/fade all the posts below the bookmark?

    tr.bookmark ~ tr { opacity: 0.5; }

Login or Join to leave a comment