YourTV Australian TV guide program masker

Mask unwanted or already-watched programs in Australia's YourTV (NineMSN) TV guide

作者
Dean999
今日安裝
0
安裝總數
10
評價
0 0 0
版本
0.0.1.20141009135337
建立日期
2014-09-29
更新日期
2014-10-09
尺寸
15.3 KB
授權條款
未知
腳本執行於

This script enables masking of selected programs from Australia's "YourTV" (NineMSN) online TV guide   http://www.yourtv.com.au/guide/

"Masked" programs are shown dimmed but still visible.
You can use a single click to mask/unmask a program, and the settings will be stored and remembered across browser sessions.
Just click the (-) or (+)/(*) buttons that appear when hovering over a program title. ((*) = un-mask ALL episodes).

You may mask a program by either its main title alone, or by both title and sub-title. (If present, the latter is usually the episode title, or year and starring actor(s) for movie entries).
So, for example, you can mask just those episodes of a program that you've watched already.
Masked programs are specific to a channel; masking a title on one channel won't mask it on others. The exception to this is movies, which aren't keyed to any specific channel.

NOTE: As-is, script currently only works for Melbourne free-to-air channels: ABC, ABC2, ABC3, SBS, SBS2, 7, 7two, 7mate, 9, Gem, Go!, One, 10, 11, and C31.
To support other channels or regions, change the line defining the "id2channel" variable, which associates YourTV's internal channel id numbers (the id on the channel <tr> element in the HTML) with the channel names that this script should use to store programs under.



The script does a few other things also:




  • Removes page headers and footers, "Add Pay TV" button, and other highlight options.

  • Removes "Catch Up" links on 9/Gem/Go! programs.

  • Alters program links so that (a) they open in a tab rather than a pop-up, (b) allow middle-clicking, and (c) work even when javascript is turned off.
    (To make the program details appear in a separate window, left-click and then drag the details tab to its own window; further left-clicks will then re-use it).

  • Removes cluttered TV show advertisments bar from RHS of program-detail pages, fixes links to open in same tab, adds a link to Google, and shows distinctively shaded links to IMDb and Rotten Tomatoes.

  • Highlights movies (except when you've masked them).

  • Automatically masks all news & sport programs. (When tagged as such in the YourTV source HTML, which isn't always reliable).

  • Provides a simple user interface to view/copy/edit the list of masked programs (accessible by the "Show Program Mask List" button where "Add Pay TV" used to be).
    Note: It isn't visibly apparent, but in the mask list, the channel, program title, and masked episodes (if applicable) are separated from each other by tab characters.
    To enter these into the textbox directly, copy and paste them from elsewhere: pressing Tab won't do it, and they are required for a show entry to be recognized. Invalid lines are silently discarded.


  • Masking or unmasking a program by main title clears the list of individually masked episodes (sub-titles). You cannot mask by both a main title and a (title + sub-title) combination!

  • The script will also run on locally saved copies of the TV guide pages, provided you save them as .mht or .htm/.html files, with (case-insensitive) filenames "mon", "tue", ... "sun", or "tv".
    Optionally the filename can also include a number, e.g. "fri12.mht". For Firefox, an add-on such as "UnMHT" or "Mozilla Archive Format" is required to view and save .mht files.






- Tested and working under Firefox + GreaseMonkey.

- May or may not work in other browsers or userscript add-ons: I haven't tried it!