Skip to content

Instantly share code, notes, and snippets.

@haohaolee
haohaolee / lastfm_auth.user.js
Created October 8, 2012 03:34
A userscript try to display a modal dialog, when clicking the button a popup window opened for last.fm auth page
// ==UserScript==
// @name Last.fm auth test
// @namespace https://gist.github.com/3850590
// @version 0.1
// @description a test for last.fm auth based on gmscrobber
// @match *
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js
// @require https://raw.github.com/haohaolee/gmscrobber/master/simple_scrobbler_user.js
// ==/UserScript==
/* command "cambridge" */
CmdUtils.CreateCommand({
names: ["cambridge"],
icon: "http://www.cambridge.org/assets/common/favicon/favicon.ico",
homepage: "http://dictionary.cambridge.org",
author: { name: "Sealence", email: "[email protected]"},
license: "GPL",
description: "Search in Cambridge",
help: "cambridge: your word",
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'input'} ],