Project

General

Profile

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

Mr. BS, 03/06/2015 01:20 AM

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

    
5
menu channel,query,status {
6
  -
7
  $iif($cb(1),Search for $qt($mid($v1,1,15) $+ $iif($len($v1) > 15, ...)))
8
  .Amazon:am
9
  .Bing:bi
10
  .DuckDuckGo:du
11
  .Ebay:e
12
  .Firefox Addons:f
13
  .$f Google
14
  ..Google:g
15
  ..Google Images:gi
16
  ..Google Define:gd
17
  ..Google Play:gp
18
  ..Google Shopping:gs
19
  .Grooveshark:groo
20
  .Ip Info:ipi
21
  .Metacritic:m
22
  .$f mIR $+ $chr(5607) related
23
  ..Hawkee:h
24
  ..mIR $+ $chr(5607) Forums:mirc
25
  .Spotify $chr(55357) $+ $chr(56571):spo
26
  .$f Subtitles
27
  ..Legendas.tv:l
28
  .Reddit:re
29
  .Start Page:spage
30
  .Twitter:tw
31
  .Urban Dictionary:ub
32
  .-
33
  .$f Torrents
34
  ..HD-Torrents:hdt
35
  ..KickassTorrents:ka
36
  ..Manicomio Share:ma
37
  ..The Pirate Bay:pi
38
  ..TorrentDay:td
39
  ..RuTracker:rut
40
  ..YIFY:yf
41
  .$f Movies Info
42
  ..IMDB:im
43
  ..Rotten Tomatoes:rt
44
  ..TMDb:tm
45
  .$f Videos
46
  ..Youtube:y
47
  ..LiveLeak:ll
48
  ..Vimeo:vm
49
  -
50
}
51

    
52
; If any value is specified to third parameter, dots will be replaced by +, which become a space in search string. Usefull for some websites like hdts.ru
53
alias am $run($1-, http://www.amazon.com/s?field-keywords={key})
54
alias bi $run($1-, http://www.bing.com/search?q={key})
55
alias du $run($1-, https://duckduckgo.com/?q={key})
56
alias e $run($1-, http://www.ebay.com/sch/i.html?_nkw={key})
57
alias f $run($1-, https://addons.mozilla.org/en-US/firefox/search?q={key}&cat=all)
58
alias g $run($1-, https://www.google.com/?#q={key})
59
alias gi $run($1-, https://www.google.com/search?tbm=isch&q={key})
60
alias gd $run($1-, http://www.google.com/webhp?hl=en#sclient=psy&hl=en&site=webhp&source=hp&q={key}&tbs=dfn:1)
61
alias gp $run($1-, https://play.google.com/store/search?q={key})
62
alias gs $run($1-, http://google.com/products?q={key}&btnG=Search+Products&show=dd&scoring=p)
63
alias groo $run($1-, http://grooveshark.com/#/search?q={key})
64
alias h $run($1-, http://hawkee.com/search/{key}/)
65
alias m $run($1-, http://www.metacritic.com/search/all/{key}/results)
66
alias re $run($1-, http://www.reddit.com/search?q={key})
67
alias spage $run($1-, https://startpage.com/do/search/?query={key})
68
alias tw $run($1-, https://twitter.com/search?q={key})
69
alias ub $run($1-, http://www.urbandictionary.com/define.php?term={key})
70
alias pi $run($1-, http://thepiratebay.se/search/{key}/0/99/0)
71
alias im $run($1-, http://www.imdb.com/find?q={key}&s=all)
72
alias rt $run($1-, http://www.rottentomatoes.com/search/?search={key})
73
alias tm $run($1-, http://www.themoviedb.org/search?query={key})
74
alias y $run($1-, http://www.youtube.com/results?search_query={key})
75
alias ll $run($1-, http://www.liveleak.com/browse?q={key})
76
alias vm $run($1-, http://vimeo.com/search?q={key})
77
alias hdt $run($1-, https://hdts.ru/torrents.php?search={key}, 1)
78
alias l $run($1-, http://legendas.tv/busca/{key})
79
alias ka $run($1-, https://kickass.to/torrents/usearch/?q={key})
80
alias ma $run($1-, http://www.manicomio-share.com/pesquisa.php?busca={key})
81
alias rut $run($1-, http://rutracker.org/forum/tracker.php?nm={key})
82
alias td $run($1-, http://www.torrentday.com/browse.php?#/browse.php?&search={key}&cata=yes)
83
alias yf $run($1-, https://yts.re/browse-movies/{key})
84
alias spo $run($1-, https://play.spotify.com/search/{key})
85
alias ipi $run($1-, http://ip-api.com/{key})
86

    
87
alias -l run { if (!$1) && (!$cb(1)) { return } | run $replacex($2,{key},$sp1($iif($1,$1,$cb(1)),$3))) }
88

    
89
; replace space by +
90
alias -l sp1 return $regsubex($iif($2,$plus($1),$1),/(\40)/g, $chr(43))
91

    
92
; folder icon
93
alias -l f return $chr(55357) $+ $chr(56514)
94

    
95
; replace dot by +
96
alias -l plus return $regsubex($1-,/(\.)/g, +)
97

    
98
; replace space by %20
99
alias -l sp2 return $regsubex($1-,/(\s)/g, % $+ 20)
(7-7/8)