-
-
Save DanielApt/59840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
name: "hyves-zoek", | |
icon: "http://img19.imageshack.us/img19/3555/hyvesiconjx2.png", | |
author: { name: "Daniel Apt"}, | |
license: "GPL", | |
description: "Zoek Hyves voor de gegeven naam", | |
help: "Typ of selecteer een naam om hyves voor deze naam te doorzoeken. Druk enter om naar de zoekpagina met resultaten te navigeren, of wacht totdat deze heeft geladen in het preview scherm.", | |
takes: {"name": noun_arb_text}, | |
preview: function( pblock, input ) { | |
pblock.innerHTML = "Zoek <a href='www.hyves.nl'>Hyves</a> voor: "+input.text; | |
pblock.innerHTML += <iframe src='www.hyves.nl/index.php?l1=ut&l2=sr&l3=fr&search=true&l1=ut&l2=sr&l3=fr&advancedSearch=1&name=&country=142&where=&keyword=&aGender%5B%5D=1&aGender%5B%5D=3&search_age=all#searchhyver="+input.text+"&ut_sr_fr_1=1&simpleMemberSearch_1=1&__state__=3' width='400' height ='300'/> | |
}, | |
execute: function(input) { | |
var url = "http://www.hyves.nl/search/#searchhyver="+input.text+"&__state__=2"; | |
Utils.openUrlInBrowser(url); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment