Project

General

Profile

[script] Context Menu Search v0.3.1 » Context Menu Search v0.2.ini

Mr. BS, 05/07/2014 02:28 AM

 
1
; http://dev.adiirc.com/boards/5/topics/181
2
; Context Menu Search
3
; v0.2 by pereba
4

    
5
menu channel,query,status {
6
  -
7
  $iif($cb(1),Search for " $+ $left($cb(1),200) $+ ")
8
  .Amazon:am
9
  .Bing:bi
10
  .DuckDuckGo:du
11
  .Ebay:e
12
  .Firefox Addons:f
13
  .Google:g
14
  .Google Images:gi
15
  .Grooveshark:groo
16
  .Hawkee:h
17
  .Metacritic:m
18
  .Reddit:re
19
  .Start Page:sp
20
  .Twitter:tw
21
  .Urban Dictionary:ub
22
  .-
23
  .Torrents
24
  ..The Pirate Bay:pi
25
  .Movies
26
  ..IMDB:im
27
  ..Rotten Tomatoes:rt
28
  ..TMDb:tm
29
  .Videos
30
  ..Youtube:y
31
  ..LiveLeak:ll
32
  ..Vimeo:vm
33
  -
34
}
35

    
36
alias am {
37
  $run($sp($1-), http://www.amazon.com/s?field-keywords={key})
38
}
39
alias bi {
40
  $run($sp($1-), http://www.bing.com/search?q={key})
41
}
42
alias du {
43
  $run($sp($1-), https://duckduckgo.com/?q={key})
44
}
45
alias e {
46
  $run($sp($1-), http://www.ebay.com/sch/i.html?_nkw={key})
47
}
48
alias f {
49
  $run($sp($1-), https://addons.mozilla.org/en-US/firefox/search?q={key}&cat=all)
50
}
51
alias g {
52
  $run($sp($1-), https://www.google.com/?#q={key})
53
}
54
alias gi {
55
  $run($sp($1-), https://www.google.com/search?tbm=isch&q={key})
56
}
57
alias groo {
58
  $run($sp($1-), http://grooveshark.com/#/search?q={key})
59
}
60
alias h {
61
  $run($sp($1-), http://hawkee.com/search/{key}/)
62
}
63
alias m {
64
  $run($sp($1-), http://www.metacritic.com/search/all/{key}/results)
65
}
66
alias re {
67
  $run($sp($1-), http://www.reddit.com/search?q={key})
68
}
69
alias sp {
70
  $run($sp($1-), https://startpage.com/do/search/?query={key})
71
}
72
alias tw {
73
  $run($sp($1-), https://twitter.com/search?q={key})
74
}
75
alias ub {
76
  $run($sp($1-), http://www.urbandictionary.com/define.php?term={key})
77
}
78
alias pi {
79
  $run($sp($1-), http://thepiratebay.se/search/{key}/0/99/0)
80
}
81
alias im {
82
  $run($sp($1-), http://www.imdb.com/find?q={key}&s=all)
83
}
84
alias rt {
85
  $run($sp($1-), http://www.rottentomatoes.com/search/?search={key})
86
}
87
alias tm {
88
  $run($sp($1-), http://www.themoviedb.org/search?query={key})
89
}
90
alias y {
91
  $run($sp($1-), http://www.youtube.com/results?search_query={key})
92
}
93
alias ll {
94
  $run($sp($1-), http://www.liveleak.com/browse?q={key})
95
}
96
alias vm {
97
  $run($sp($1-), http://vimeo.com/search?q={key})
98
}
99

    
100
alias -l run { if (!$1) && (!$cb(1)) { return } run $replace($2-,{key},$iif($1,$1,$sp($cb(1)))) }
101

    
102
; replace space by +
103
alias -l sp {
104
  return $regsubex($1-,/(\s)/g, $chr(43))
105
}
106

    
107
; replace space by %20
108
alias -l sp2 {
109
  return $regsubex($1-,/(\s)/g, % $+ 20)
110
}
(4-4/8)