Options Menu
|
|
Sizzlemctwizzle and I are working on a GM_config command to spawn a configuration window purely by supplying a JSON object containing the information needed. Maybe when we're done, you could use this, possibly even help us create it.
|
|
|
Our script has been released and is hosted at
GM_config.init('YouTube HQ + 720p Ultimate',{
colors: {label:'Enable Colors',
type:'checkbox',
default:true
},
hd:{label:'Use HD',
type:'checkbox',
default:true
},
autoplay:{label:'Autoplay',
type:'checkbox',
default:true
},
annotations:{label:'Hide Annotations',
type:'checkbox',
default:true
},
c1:{label:'Player Foreground color',
type:'text',
default:'000000'
},
c2:{label:'Player Background color',
type:'text',
default:'FFFFFF'
},
big:{label:'Enlarge Player',
type:'checkbox',
default:true
},
jump:{label:'Jump to Player',
type:'checkbox',
default:true
},
loop:{label:'Loop',
type:'checkbox',
default:true
}
});Not sure whether you want to open it through the GM commands menu or a link on the youtube page, but basically just make a call to GM_config.open() Also to get access to the values use GM_config.get('loop')
|
|
|
thanks for the tip sizzle, but i added a GUI myself today... wish i'd looked at this post first though... could've saved some time :) on a semi-unrelated note: have any idea how to position elements over flash videos? setting wmode to opaque works, but you can't click on the video, and i tried css ,but it breaks the actionscript / javascript functions. using position as absolute or relative and setting overflow to auto works, but the border gets hidden. any ideas? (try using GM_config on a youtube page with a distinct colored border so you can see). |
|
|
Avindra Gool... wrote: thanks for the tip sizzle, but i added a GUI myself today... wish i'd looked at this post first though... could've saved some time :)Your GUI works well for your script though, since you only use checkboxes and two textareas. I like the rollover title, might have to steal that ;) We made GM_config so scriptwrights don't have to keep reinventing the wheel when they want to add a options menu for their script. Feel free to contribute if you want. I'll see if I can come up with anything about the positioning elements. |
|
|
Avindra Gool... wrote:I don't know. I've tried several times myself but can't find a solid way. |