Large

YouTube HD Ultimate

By Avindra V.G. Last update Dec 10, 2010 — Installed 401,975 times.

Options Menu

in
Subscribe to Options Menu 5 posts, 3 voices



JoeSimmons Scriptwright

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.
It would eliminate all those negative reviews by the noobs who can't edit the source, and it also would make it look nicer.

 
sizzlemctwizzle Scriptwright

Our script has been released and is hosted at
http://gmconfig.googlecode.com/svn/trunk/gm_config.js to @require
You can use it in your script with something like this:

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')

 
Avindra V.G. Script's Author

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).

 
sizzlemctwizzle Scriptwright
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.
 
JoeSimmons Scriptwright
Avindra Gool... wrote:
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.
I don't know. I've tried several times myself but can't find a solid way.
Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel