b-rad.cc wrote:I have off today and tommorrow and am going to finally delve into my theories on how to handle this problem.
Ok, I have a bit of time later today, will do some reverse engineering as well.
b-rad.cc wrote:I have off today and tommorrow and am going to finally delve into my theories on how to handle this problem.

recliq wrote:I tried this without any success, i think that this is another dmaosd problem... it shows the Folders item only if there is actually a usb device connected..., creating USB1 or 2 doesn't change a thing, so dmaosd must have a look at the mounted usb devices...
I don't think wdtvext can handle this yet in any way...


migube wrote:btw, how do you remove existing items from the menu ?
let's say u just want to see the USB folders on the top page ?
tx


// GPLv3
/*
# meta-name="HideMenus"
# meta-desc="WDTV OSD Menu Manager"
# meta-author="b-rad.cc"
# meta-date="2010-11-21
# meta-version="0.2.0"
# meta-type="wdtvext"
# meta-url=""
# meta-filename="HideMenus.plugin.js"
*/
traceln("Start loading HideMenus Plugin 0.2.0")
function HideMenusPlugin(path) {
this.rootPath = path;
// DEFINES //
this.VIDEO_NONE = parseInt("000000000000000",2)
this.VIDEO_ALL = parseInt("111111111111111",2)
this.VIDEO_LOCAL_ALL = parseInt("100000000000000",2)
this.VIDEO_LOCAL_DATE = parseInt("010000000000000",2)
this.VIDEO_LOCAL_FOLDERS = parseInt("001000000000000",2)
this.VIDEO_LOCAL_RECENT = parseInt("000100000000000",2)
this.VIDEO_LOCAL_PLAYLIST = parseInt("000010000000000",2)
this.VIDEO_MSERVERS = parseInt("000001000000000",2)
this.VIDEO_NSHARES = parseInt("000000100000000",2)
this.VIDEO_YT_FAVORITED = parseInt("000000010000000",2)
this.VIDEO_YT_FEATURED = parseInt("000000001000000",2)
this.VIDEO_YT_POPULAR = parseInt("000000000100000",2)
this.VIDEO_YT_VIEWED = parseInt("000000000010000",2)
this.VIDEO_YT_RATED = parseInt("000000000001000",2)
this.VIDEO_YT_PREFS = parseInt("000000000000100",2)
this.VIDEO_YT_ACCOUNT = parseInt("000000000000010",2)
this.VIDEO_YT_SEARCH = parseInt("000000000000001",2)
this.MUSIC_NONE = parseInt("0000000000000",2)
this.MUSIC_ALL = parseInt("1111111111111",2)
this.MUSIC_LOCAL_ALL = parseInt("1000000000000",2)
this.MUSIC_LOCAL_ARTIST = parseInt("0100000000000",2)
this.MUSIC_LOCAL_GENRE = parseInt("0010000000000",2)
this.MUSIC_LOCAL_ALBUM = parseInt("0001000000000",2)
this.MUSIC_LOCAL_DATE = parseInt("0000100000000",2)
this.MUSIC_LOCAL_FOLDERS = parseInt("0000010000000",2)
this.MUSIC_LOCAL_RECENT = parseInt("0000001000000",2)
this.MUSIC_LOCAL_PLAYLIST = parseInt("0000000100000",2)
this.MUSIC_MSERVERS = parseInt("0000000010000",2)
this.MUSIC_NSHARES = parseInt("0000000001000",2)
this.MUSIC_LIVE365 = parseInt("0000000000100",2)
this.MUSIC_SHOUTCAST = parseInt("0000000000010",2)
this.MUSIC_PANDORA = parseInt("0000000000001",2)
this.PHOTO_NONE = parseInt("0000000",2)
this.PHOTO_ALL = parseInt("1111111",2)
this.PHOTO_LOCAL_ALL = parseInt("1000000",2)
this.PHOTO_LOCAL_DATE = parseInt("0100000",2)
this.PHOTO_LOCAL_FOLDERS = parseInt("0010000",2)
this.PHOTO_LOCAL_RECENT = parseInt("0001000",2)
this.PHOTO_MSERVERS = parseInt("0000100",2)
this.PHOTO_NSHARES = parseInt("0000010",2)
this.PHOTO_FLICKR = parseInt("0000001",2)
this.SETTINGS_NONE = parseInt("0000000",2)
this.SETTINGS_ALL = parseInt("1111111",2)
this.SETTINGS_AV = parseInt("1000000",2)
this.SETTINGS_VIDEO = parseInt("0100000",2)
this.SETTINGS_PHOTO = parseInt("0010000",2)
this.SETTINGS_MUSIC = parseInt("0001000",2)
this.SETTINGS_FILEM = parseInt("0000100",2)
this.SETTINGS_NETWORK = parseInt("0000010",2)
this.SETTINGS_SYSTEM = parseInt("0000001",2)
// settings //
this.Pandora = getConfigSetting("PANDORA")
this.VIDEO = getConfigSetting("HIDE_VIDEO")
if (this.VIDEO == "") {
this.VIDEO = this.VIDEO_NONE
}
this.MUSIC = getConfigSetting("HIDE_MUSIC")
if (this.MUSIC == "") {
this.MUSIC = this.MUSIC_NONE
}
this.PHOTO = getConfigSetting("HIDE_PHOTO")
if (this.PHOTO == "") {
this.PHOTO = this.PHOTO_NONE
}
this.SETTINGS = getConfigSetting("HIDE_SETTINGS")
if (this.SETTINGS == "") {
this.SETTINGS = this.SETTINGS_NONE
}
}
// chain HideMenusPlugin with proper inheritance - classical in javascript
HideMenusPlugin.prototype = new Plugin()
HideMenusPlugin.prototype.constructor = HideMenusPlugin;
HideMenusPlugin.prototype.doBuildMenus = function() {
if ((this.VIDEO & this.VIDEO_ALL) == this.VIDEO_ALL) {
Menu.Top["$$Video"].visible = false
} else if (this.VIDEO == this.VIDEO_NONE) {
Menu.Top["$$Video"].visible = true
} else {
if ((this.VIDEO & this.VIDEO_LOCAL_ALL) == this.VIDEO_LOCAL_ALL) {
Menu.Top["$$Video"]["$$Local Drives"]["$$All Video"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_DATE) == this.VIDEO_LOCAL_DATE) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Date"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_FOLDERS) == this.VIDEO_LOCAL_FOLDERS) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Folders"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_RECENT) == this.VIDEO_LOCAL_RECENT) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Recent"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_PLAYLIST) == this.VIDEO_LOCAL_PLAYLIST) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Playlist"].visible = false
}
if ((this.VIDEO & this.VIDEO_MSERVERS) == this.VIDEO_MSERVERS) {
Menu.Top["$$Video"]["$$Media Servers"].visible = false
}
if ((this.VIDEO & this.VIDEO_NSHARES) == this.VIDEO_NSHARES) {
Menu.Top["$$Video"]["$$Network Shares"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_FAVORITED) == this.VIDEO_YT_FAVORITED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Top Favorited"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_FEATURED) == this.VIDEO_YT_FEATURED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Featured Videos"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_POPULAR) == this.VIDEO_YT_POPULAR) {
Menu.Top["$$Video"]["$$YouTube"]["$$Most Popular"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_VIEWED) == this.VIDEO_YT_VIEWED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Most Viewed"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_RATED) == this.VIDEO_YT_RATED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Top Rated"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_PREFS) == this.VIDEO_YT_PREFS) {
Menu.Top["$$Video"]["$$YouTube"]["$$Preferences"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_ACCOUNT) == this.VIDEO_YT_ACCOUNT) {
Menu.Top["$$Video"]["$$YouTube"]["$$Account"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_SEARCH) == this.VIDEO_YT_SEARCH) {
Menu.Top["$$Video"]["$$YouTube"]["$$Search"].visible = false
}
}
if ((this.MUSIC & this.MUSIC_ALL) == this.MUSIC_ALL) {
Menu.Top["$$Music"].visible = false
} else if (this.MUSIC == this.MUSIC_NONE) {
Menu.Top["$$Music"].visible = true
} else {
if ((this.MUSIC & this.MUSIC_LOCAL_ALL) == this.MUSIC_LOCAL_ALL) {
Menu.Top["$$Music"]["$$Local Drives"]["$$All Music"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_ARTIST) == this.MUSIC_LOCAL_ARTIST) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Artist"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_GENRE) == this.MUSIC_LOCAL_GENRE) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Genre"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_ALBUM) == this.MUSIC_LOCAL_ALBUM) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Album"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_DATE) == this.MUSIC_LOCAL_DATE) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Date"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_FOLDERS) == this.MUSIC_LOCAL_FOLDERS) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Folder"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_RECENT) == this.MUSIC_LOCAL_RECENT) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Recent"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_PLAYLIST) == this.MUSIC_LOCAL_PLAYLIST) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Playlist"].visible = false
}
if ((this.MUSIC & this.MUSIC_MSERVERS) == this.MUSIC_MSERVERS) {
Menu.Top["$$Music"]["$$Media Servers"].visible = false
}
if ((this.MUSIC & this.MUSIC_NSHARES) == this.MUSIC_NSHARES) {
Menu.Top["$$Music"]["$$Network Shares"].visible = false
}
if ((this.MUSIC & this.MUSIC_LIVE365) == this.MUSIC_LIVE365) {
Menu.Top["$$Music"]["$$Live365"].visible = false
}
if ((this.MUSIC & this.MUSIC_SHOUTCAST) == this.MUSIC_SHOUTCAST) {
Menu.Top["$$Music"]["$$Shoutcast"].visible = false
}
if (this.Pandora == "OFF" || this.Pandora == "Off" || this.Pandora == "off" || this.MUSIC & this.MUSIC_PANDORA == this.MUSIC_PANDORA) {
Menu.Top["$$Music"]["$$Pandora"].visible = false
}
}
if ((this.PHOTO & this.PHOTO_ALL) == this.PHOTO_ALL) {
Menu.Top["$$Photos"].visible = false
} else if (this.PHOTO == this.PHOTO_NONE) {
Menu.Top["$$Photos"].visible = true
} else {
if ((this.PHOTO & this.PHOTO_LOCAL_ALL) == this.PHOTO_LOCAL_ALL) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$All Photos"].visible = false
}
if ((this.PHOTO & this.PHOTO_LOCAL_DATE) == this.PHOTO_LOCAL_DATE) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$Date"].visible = false
}
if ((this.PHOTO & this.PHOTO_LOCAL_FOLDERS) == this.PHOTO_LOCAL_FOLDERS) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$Folders"].visible = false
}
if ((this.PHOTO & this.PHOTO_LOCAL_RECENT) == this.PHOTO_LOCAL_RECENT) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$Recent"].visible = false
}
if ((this.PHOTO & this.PHOTO_MSERVERS) == this.PHOTO_MSERVERS) {
Menu.Top["$$Photos"]["$$Media Servers"].visible = false
}
if ((this.PHOTO & this.PHOTO_NSHARES) == this.PHOTO_NSHARES) {
Menu.Top["$$Photos"]["$$Network Shares"].visible = false
}
if ((this.PHOTO & this.PHOTO_FLICKR) == this.PHOTO_FLICKR) {
Menu.Top["$$Photos"]["$$Flickr"].visible = false
}
}
if ((this.SETTINGS & this.SETTINGS_ALL) == this.SETTINGS_ALL) {
Menu.Top["$$Settings"].visible = false
} else if (this.SETTINGS == this.SETTINGS_NONE) {
Menu.Top["$$Settings"].visible = true
} else {
if ((this.SETTINGS & this.SETTINGS_AV) == this.SETTINGS_AV) {
Menu.Top["$$Settings"]["$$Audio/Video"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_VIDEO) == this.SETTINGS_VIDEO) {
Menu.Top["$$Settings"]["$$Video Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_PHOTO) == this.SETTINGS_PHOTO) {
Menu.Top["$$Settings"]["$$Photo Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_MUSIC) == this.SETTINGS_MUSIC) {
Menu.Top["$$Settings"]["$$Music Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_FILEM) == this.SETTINGS_FILEM) {
Menu.Top["$$Settings"]["$$File Management"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_NETWORK) == this.SETTINGS_NETWORK) {
Menu.Top["$$Settings"]["$$Network Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_SYSTEM) == this.SETTINGS_SYSTEM) {
Menu.Top["$$Settings"]["$$System Setting"].visible = false
}
}
}
// create our plugin with baseParg pointing to current script path
// global variables scriptName, scriptLocation and scriptFullPath are available, no need to do the following
HideMenusPlugin.instance = new HideMenusPlugin(scriptPath)
// register our plugin with Ext
Plugin.registerPlugin(HideMenusPlugin.instance)
traceln("End loading HideMenus Plugin")
morbidz wrote:Would this code work on currently released fw(1.02.21_0.4.3.1) ?
- Code: Select all
// GPLv3
/*
# meta-name="HideMenus"
# meta-desc="WDTV OSD Menu Manager"
# meta-author="b-rad.cc"
# meta-date="2010-11-21
# meta-version="0.2.0"
# meta-type="wdtvext"
# meta-url=""
# meta-filename="HideMenus.plugin.js"
*/
traceln("Start loading HideMenus Plugin 0.2.0")
function HideMenusPlugin(path) {
this.rootPath = path;
// DEFINES //
this.VIDEO_NONE = parseInt("000000000000000",2)
this.VIDEO_ALL = parseInt("111111111111111",2)
this.VIDEO_LOCAL_ALL = parseInt("100000000000000",2)
this.VIDEO_LOCAL_DATE = parseInt("010000000000000",2)
this.VIDEO_LOCAL_FOLDERS = parseInt("001000000000000",2)
this.VIDEO_LOCAL_RECENT = parseInt("000100000000000",2)
this.VIDEO_LOCAL_PLAYLIST = parseInt("000010000000000",2)
this.VIDEO_MSERVERS = parseInt("000001000000000",2)
this.VIDEO_NSHARES = parseInt("000000100000000",2)
this.VIDEO_YT_FAVORITED = parseInt("000000010000000",2)
this.VIDEO_YT_FEATURED = parseInt("000000001000000",2)
this.VIDEO_YT_POPULAR = parseInt("000000000100000",2)
this.VIDEO_YT_VIEWED = parseInt("000000000010000",2)
this.VIDEO_YT_RATED = parseInt("000000000001000",2)
this.VIDEO_YT_PREFS = parseInt("000000000000100",2)
this.VIDEO_YT_ACCOUNT = parseInt("000000000000010",2)
this.VIDEO_YT_SEARCH = parseInt("000000000000001",2)
this.MUSIC_NONE = parseInt("0000000000000",2)
this.MUSIC_ALL = parseInt("1111111111111",2)
this.MUSIC_LOCAL_ALL = parseInt("1000000000000",2)
this.MUSIC_LOCAL_ARTIST = parseInt("0100000000000",2)
this.MUSIC_LOCAL_GENRE = parseInt("0010000000000",2)
this.MUSIC_LOCAL_ALBUM = parseInt("0001000000000",2)
this.MUSIC_LOCAL_DATE = parseInt("0000100000000",2)
this.MUSIC_LOCAL_FOLDERS = parseInt("0000010000000",2)
this.MUSIC_LOCAL_RECENT = parseInt("0000001000000",2)
this.MUSIC_LOCAL_PLAYLIST = parseInt("0000000100000",2)
this.MUSIC_MSERVERS = parseInt("0000000010000",2)
this.MUSIC_NSHARES = parseInt("0000000001000",2)
this.MUSIC_LIVE365 = parseInt("0000000000100",2)
this.MUSIC_SHOUTCAST = parseInt("0000000000010",2)
this.MUSIC_PANDORA = parseInt("0000000000001",2)
this.PHOTO_NONE = parseInt("0000000",2)
this.PHOTO_ALL = parseInt("1111111",2)
this.PHOTO_LOCAL_ALL = parseInt("1000000",2)
this.PHOTO_LOCAL_DATE = parseInt("0100000",2)
this.PHOTO_LOCAL_FOLDERS = parseInt("0010000",2)
this.PHOTO_LOCAL_RECENT = parseInt("0001000",2)
this.PHOTO_MSERVERS = parseInt("0000100",2)
this.PHOTO_NSHARES = parseInt("0000010",2)
this.PHOTO_FLICKR = parseInt("0000001",2)
this.SETTINGS_NONE = parseInt("0000000",2)
this.SETTINGS_ALL = parseInt("1111111",2)
this.SETTINGS_AV = parseInt("1000000",2)
this.SETTINGS_VIDEO = parseInt("0100000",2)
this.SETTINGS_PHOTO = parseInt("0010000",2)
this.SETTINGS_MUSIC = parseInt("0001000",2)
this.SETTINGS_FILEM = parseInt("0000100",2)
this.SETTINGS_NETWORK = parseInt("0000010",2)
this.SETTINGS_SYSTEM = parseInt("0000001",2)
// settings //
this.Pandora = getConfigSetting("PANDORA")
this.VIDEO = getConfigSetting("HIDE_VIDEO")
if (this.VIDEO == "") {
this.VIDEO = this.VIDEO_NONE
}
this.MUSIC = getConfigSetting("HIDE_MUSIC")
if (this.MUSIC == "") {
this.MUSIC = this.MUSIC_NONE
}
this.PHOTO = getConfigSetting("HIDE_PHOTO")
if (this.PHOTO == "") {
this.PHOTO = this.PHOTO_NONE
}
this.SETTINGS = getConfigSetting("HIDE_SETTINGS")
if (this.SETTINGS == "") {
this.SETTINGS = this.SETTINGS_NONE
}
}
// chain HideMenusPlugin with proper inheritance - classical in javascript
HideMenusPlugin.prototype = new Plugin()
HideMenusPlugin.prototype.constructor = HideMenusPlugin;
HideMenusPlugin.prototype.doBuildMenus = function() {
if ((this.VIDEO & this.VIDEO_ALL) == this.VIDEO_ALL) {
Menu.Top["$$Video"].visible = false
} else if (this.VIDEO == this.VIDEO_NONE) {
Menu.Top["$$Video"].visible = true
} else {
if ((this.VIDEO & this.VIDEO_LOCAL_ALL) == this.VIDEO_LOCAL_ALL) {
Menu.Top["$$Video"]["$$Local Drives"]["$$All Video"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_DATE) == this.VIDEO_LOCAL_DATE) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Date"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_FOLDERS) == this.VIDEO_LOCAL_FOLDERS) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Folders"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_RECENT) == this.VIDEO_LOCAL_RECENT) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Recent"].visible = false
}
if ((this.VIDEO & this.VIDEO_LOCAL_PLAYLIST) == this.VIDEO_LOCAL_PLAYLIST) {
Menu.Top["$$Video"]["$$Local Drives"]["$$Playlist"].visible = false
}
if ((this.VIDEO & this.VIDEO_MSERVERS) == this.VIDEO_MSERVERS) {
Menu.Top["$$Video"]["$$Media Servers"].visible = false
}
if ((this.VIDEO & this.VIDEO_NSHARES) == this.VIDEO_NSHARES) {
Menu.Top["$$Video"]["$$Network Shares"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_FAVORITED) == this.VIDEO_YT_FAVORITED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Top Favorited"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_FEATURED) == this.VIDEO_YT_FEATURED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Featured Videos"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_POPULAR) == this.VIDEO_YT_POPULAR) {
Menu.Top["$$Video"]["$$YouTube"]["$$Most Popular"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_VIEWED) == this.VIDEO_YT_VIEWED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Most Viewed"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_RATED) == this.VIDEO_YT_RATED) {
Menu.Top["$$Video"]["$$YouTube"]["$$Top Rated"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_PREFS) == this.VIDEO_YT_PREFS) {
Menu.Top["$$Video"]["$$YouTube"]["$$Preferences"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_ACCOUNT) == this.VIDEO_YT_ACCOUNT) {
Menu.Top["$$Video"]["$$YouTube"]["$$Account"].visible = false
}
if ((this.VIDEO & this.VIDEO_YT_SEARCH) == this.VIDEO_YT_SEARCH) {
Menu.Top["$$Video"]["$$YouTube"]["$$Search"].visible = false
}
}
if ((this.MUSIC & this.MUSIC_ALL) == this.MUSIC_ALL) {
Menu.Top["$$Music"].visible = false
} else if (this.MUSIC == this.MUSIC_NONE) {
Menu.Top["$$Music"].visible = true
} else {
if ((this.MUSIC & this.MUSIC_LOCAL_ALL) == this.MUSIC_LOCAL_ALL) {
Menu.Top["$$Music"]["$$Local Drives"]["$$All Music"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_ARTIST) == this.MUSIC_LOCAL_ARTIST) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Artist"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_GENRE) == this.MUSIC_LOCAL_GENRE) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Genre"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_ALBUM) == this.MUSIC_LOCAL_ALBUM) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Album"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_DATE) == this.MUSIC_LOCAL_DATE) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Date"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_FOLDERS) == this.MUSIC_LOCAL_FOLDERS) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Folder"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_RECENT) == this.MUSIC_LOCAL_RECENT) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Recent"].visible = false
}
if ((this.MUSIC & this.MUSIC_LOCAL_PLAYLIST) == this.MUSIC_LOCAL_PLAYLIST) {
Menu.Top["$$Music"]["$$Local Drives"]["$$Playlist"].visible = false
}
if ((this.MUSIC & this.MUSIC_MSERVERS) == this.MUSIC_MSERVERS) {
Menu.Top["$$Music"]["$$Media Servers"].visible = false
}
if ((this.MUSIC & this.MUSIC_NSHARES) == this.MUSIC_NSHARES) {
Menu.Top["$$Music"]["$$Network Shares"].visible = false
}
if ((this.MUSIC & this.MUSIC_LIVE365) == this.MUSIC_LIVE365) {
Menu.Top["$$Music"]["$$Live365"].visible = false
}
if ((this.MUSIC & this.MUSIC_SHOUTCAST) == this.MUSIC_SHOUTCAST) {
Menu.Top["$$Music"]["$$Shoutcast"].visible = false
}
if (this.Pandora == "OFF" || this.Pandora == "Off" || this.Pandora == "off" || this.MUSIC & this.MUSIC_PANDORA == this.MUSIC_PANDORA) {
Menu.Top["$$Music"]["$$Pandora"].visible = false
}
}
if ((this.PHOTO & this.PHOTO_ALL) == this.PHOTO_ALL) {
Menu.Top["$$Photos"].visible = false
} else if (this.PHOTO == this.PHOTO_NONE) {
Menu.Top["$$Photos"].visible = true
} else {
if ((this.PHOTO & this.PHOTO_LOCAL_ALL) == this.PHOTO_LOCAL_ALL) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$All Photos"].visible = false
}
if ((this.PHOTO & this.PHOTO_LOCAL_DATE) == this.PHOTO_LOCAL_DATE) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$Date"].visible = false
}
if ((this.PHOTO & this.PHOTO_LOCAL_FOLDERS) == this.PHOTO_LOCAL_FOLDERS) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$Folders"].visible = false
}
if ((this.PHOTO & this.PHOTO_LOCAL_RECENT) == this.PHOTO_LOCAL_RECENT) {
Menu.Top["$$Photos"]["$$Local Drives"]["$$Recent"].visible = false
}
if ((this.PHOTO & this.PHOTO_MSERVERS) == this.PHOTO_MSERVERS) {
Menu.Top["$$Photos"]["$$Media Servers"].visible = false
}
if ((this.PHOTO & this.PHOTO_NSHARES) == this.PHOTO_NSHARES) {
Menu.Top["$$Photos"]["$$Network Shares"].visible = false
}
if ((this.PHOTO & this.PHOTO_FLICKR) == this.PHOTO_FLICKR) {
Menu.Top["$$Photos"]["$$Flickr"].visible = false
}
}
if ((this.SETTINGS & this.SETTINGS_ALL) == this.SETTINGS_ALL) {
Menu.Top["$$Settings"].visible = false
} else if (this.SETTINGS == this.SETTINGS_NONE) {
Menu.Top["$$Settings"].visible = true
} else {
if ((this.SETTINGS & this.SETTINGS_AV) == this.SETTINGS_AV) {
Menu.Top["$$Settings"]["$$Audio/Video"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_VIDEO) == this.SETTINGS_VIDEO) {
Menu.Top["$$Settings"]["$$Video Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_PHOTO) == this.SETTINGS_PHOTO) {
Menu.Top["$$Settings"]["$$Photo Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_MUSIC) == this.SETTINGS_MUSIC) {
Menu.Top["$$Settings"]["$$Music Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_FILEM) == this.SETTINGS_FILEM) {
Menu.Top["$$Settings"]["$$File Management"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_NETWORK) == this.SETTINGS_NETWORK) {
Menu.Top["$$Settings"]["$$Network Setting"].visible = false
}
if ((this.SETTINGS & this.SETTINGS_SYSTEM) == this.SETTINGS_SYSTEM) {
Menu.Top["$$Settings"]["$$System Setting"].visible = false
}
}
}
// create our plugin with baseParg pointing to current script path
// global variables scriptName, scriptLocation and scriptFullPath are available, no need to do the following
HideMenusPlugin.instance = new HideMenusPlugin(scriptPath)
// register our plugin with Ext
Plugin.registerPlugin(HideMenusPlugin.instance)
traceln("End loading HideMenus Plugin")

// all traces both trace and traceln will output in /tmp/dmaosd.log (or /tmp/wdtvext.log)
traceln("Plugin.qlPlay: Start loading qlPlay-0.1")
Users browsing this forum: No registered users and 0 guests