erikvold (owner)

Revisions

gist: 148131 Download_button fork
public
Description:
IMDB Vote Menu Command for Greasemonkey
Public Clone URL: git://gist.github.com/148131.git
Embed All Files: show embed
imdbVoteCommand.user.js #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==UserScript==
// @name IMDB Vote Command
// @author Erik Vold
// @namespace imdbVoteCommand
// @include http*://*.imdb.com/title/*/
// @version 0.1
// @datecreated 2009-07-14
// @lastupdated 2009-07-15
// @description Allows you to vote on a movie via Greasemonkey menu command.
// ==/UserScript==
 
var imdbVoteCommand = {};
 
imdbVoteCommand.executeFunc = function( str ){
if( !str && unsafeWindow.ubiquityGMInput ){
var str = unsafeWindow.ubiquityGMInput;
}
else if ( !str ) {
var str = prompt( "Vote:" );
}
 
unsafeWindow.vote( str );
return;
};
 
GM_registerMenuCommand( "vote", imdbVoteCommand.executeFunc, "", "", "v" );