YourTV Australian TV guide program masker

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

当前为 2014-09-29 提交的版本,查看 最新版本

作者
Dean999
评分
0 0 0
版本
0.0.1.20140929185721
创建于
2014-09-29
更新于
2014-09-29
大小
12.1 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.


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.

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

  • Automatically masks all news & sport programs. (This depends on programs being tagged by gentre 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 work!


  • 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 files, with (case-insensitive) filenames "mon.mht", "tue.mht", ... "sun.mht", or "tv.mht".
    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!