Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** ==== FOXTEL TV GUIDE CHANNEL FILTER ("BOOKMARKLET") ====
- Helps you clear the clutter and see a listing of only the channels you watch.
- How to use:
- 1. Add a new bookmark (any page) in your browser. Call it e.g. "FoxFilter".
- 2. Edit the new bookmark in the bookmark manager -- or right-click on it.
- 3. Paste the code below -- starting with "javascript" -- into its URL field.
- 4. Browse to: https://www.foxtel.com.au/got/whats-on/tv-guide/grid/
- 5. Click on your "FoxFilter" bookmark -- unwanted channels will be hidden.
- 6. To modify your channels, edit the channel numbers below (comma-separated).
- (The default listing includes "Entertainment" and "Sports" channels.)
- 7. If you want to see all the channels again, simply refresh the page.
- */
- javascript:(function(){
- showChans = [ 100,101,102,103,104,105,106,108,110,111,112,113,124,131,134,139,140,141,142,143,144,149,150,151,152,153,154,155,156,176,177,180,182,183,192,193,194,209,210,428,500,501,502,503,504,505,506,507,508,509,511,512,513,514,515,516,517,518,526,528,529,601,602,603,604,605,606,608,610,640,641,642,644,648,649,650,651,653,654,656,658,703,709,715,723 ];
- /* ==== ^ Edit Channel Numbers Above ^ ==== */
- function filterChannels(showChans)
- {
- chanList = document.getElementsByClassName('epg-programs-row');
- var i = chanList.length;
- while( i-- ) {
- chanCode = chanList[i].dataset.epgChannel;
- chanNum = parseInt(chanList[i].getElementsByClassName('epg-channel-number')[0].innerHTML);
- if (showChans.indexOf(chanNum) !== -1) {
- chanList[i].style.display = 'block';
- } else {
- chanList[i].style.display = 'none';
- }
- }
- }
- filterChannels(showChans);})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement