Commit graph

49 commits

Author SHA1 Message Date
Lorenz Hübschle-Schneider
ccf7b1c51e Adapt common plugins to make use of multiple embeds per message 2014-07-27 12:55:25 +01:00
Lorenz Hübschle-Schneider
e962472414 Fix Google maps regex 2014-07-27 12:55:25 +01:00
Lorenz Hübschle-Schneider
ac31901d7d Allow plugins to return an array of results and display each of them
Also fix the URL regex to match multiple URLs ('g' modifier)
2014-07-27 12:55:22 +01:00
David Cormier
ceb31c1947 contentForMessage doesn't have to care about content visibility 2014-07-26 09:38:24 -04:00
Lorenz Hübschle-Schneider
8e1e871411 Fix matching (#segments) 2014-07-14 23:21:23 +01:00
Lorenz Hübschle-Schneider
885b47eaaf Add yr.no plugin 2014-07-14 22:51:07 +01:00
Lorenz Hübschle-Schneider
39b6d7a179 Fix URL regex
Old one doesn't match umlauts and other unicode stuff
New one is a lot more general and similar to what angular uses
2014-07-14 22:51:07 +01:00
Lorenz Hübschle-Schneider
86f4c7308b Image plugin: case insensitive regex
Fixes #305
2014-05-21 17:45:49 +01:00
Lorenz Hübschle-Schneider
9f46e656cb Improve youtube matching URL
closes #266
2014-04-25 18:39:01 -04:00
Felix Eckhofer
cd6ee96ae7 Use https for dailymotion 2014-04-04 20:43:13 +02:00
Lorenz Hübschle-Schneider
3c1bdfeb71 Improve plugin regular expressions, load imgur over https if enabled 2014-03-05 15:53:13 +00:00
Felix Eckhofer
18dd4eae1f Replace tabs with spaces 2014-02-24 11:41:25 +01:00
Felix Eckhofer
b3b4651e33 Remove trailing spaces 2014-02-24 11:41:25 +01:00
David Cormier
fb5a477b73 Implement asciinema plugin
Close #66
2014-02-23 10:04:14 -05:00
Lorenz H-S
5ad01dac81 embed youtube over SSL 2014-01-09 21:45:00 +00:00
David Cormier
68f24554d1 Remove global for variables 2013-12-17 15:55:41 -05:00
David Cormier
c251c3b74c Fix is already defined errors 2013-12-17 15:48:43 -05:00
David Cormier
0912a2b55b Remove extra comma and unnecessary semicolons 2013-12-17 15:39:22 -05:00
David Cormier
e2a84470ce Add missing semicolons 2013-12-17 15:35:36 -05:00
David Cormier
6d5573a148 Delete trailing whitespaces 2013-12-17 15:30:22 -05:00
Tor Hveem
1615f3016b Use angular function to linkify text.
Fixes bugs with HTML escaping in text
2013-10-28 14:37:21 +01:00
Tor Hveem
d57127cc84 make class for embedded image, and fix its height parameter so its
better for small images
2013-10-28 13:32:48 +01:00
Tor Hveem
6258303465 New user setting for display embedded content by default 2013-10-28 13:32:47 +01:00
Vivien Didelot
15e267a9ee plugins: add AlloCine support 2013-10-23 09:44:21 -04:00
Vivien Didelot
98ad8d152d plugins: add Dailymotion support 2013-10-22 10:48:05 -04:00
Tor Hveem
453a8d5ef3 Make images clickable so you can get full size 2013-10-19 13:10:35 +02:00
Vivien Didelot
10480843c2 plugins: add Google Maps support 2013-10-18 17:32:39 -04:00
Vivien Didelot
4eddc8bf57 plugins: add SoundCloud and MixCloud support 2013-10-18 11:13:36 -04:00
Tor Hveem
5923093071 New plugin: spotify 2013-10-18 16:47:53 +02:00
Vivien Didelot
55b720466b plugins: (image) support fukung.net
Links to http://fukung.net/v/foobar.gif end by the actual image
extensions, but the full image path is under
http://media.fukung.net/imgs/foobar.gif.

This commit replace the URL prefix if it matches fukung.net/v/.
2013-10-17 18:25:01 -04:00
Vivien Didelot
ea65c5dc44 plugins: (youtube) make video preview slicker 2013-10-17 16:52:26 -04:00
Tor Hveem
fba78d490e Support more URLs for youtube and request html5 player to improve
performance of embedding
2013-10-17 13:36:54 +02:00
Tor Hveem
b2174db197 Remove URLplugin, replace URLs inline with a hrefs 2013-10-15 18:58:00 +02:00
Vivien Didelot
8fea1c072e plugins: (url) do not return the whole message 2013-10-14 15:18:00 -04:00
Vivien Didelot
97da1928de plugins: match /nsfw/i tag anywhere in the message
Sometimes you may have trailing whitespace or put this tag at the
beginning of the line.

Ref: #27
2013-10-14 12:01:25 -04:00
David Cormier
2377253676 plugins: fix imagePlugin 2013-10-13 15:14:43 -04:00
David Cormier
741416cb79 plugins: provide names for plugins 2013-10-13 15:00:00 -04:00
David Cormier
b2ee67707b plugins: let plugins name their content 2013-10-13 14:57:54 -04:00
David Cormier
3f56c80f56 plugins: warn the user that content may not be safe for work 2013-10-13 14:49:38 -04:00
David Cormier
a1123ddad0 plugins: automatically hide lines that ends with nsfw 2013-10-13 14:44:37 -04:00
David Cormier
1f7cb5c3ba plugins: use to explicitely trust html 2013-10-13 14:33:09 -04:00
Tor Hveem
6e1ec22fe4 Add target=_blank on links again, it got lost in earlier merge 2013-10-12 17:23:04 +02:00
Tor Hveem
5ea276f648 Show content by default 2013-10-11 23:26:19 +02:00
David Cormier
51221d4a44 plugins: add documentation 2013-10-08 19:08:20 -04:00
David Cormier
7b701079f4 plugins: make PluginManager dependent of userPlugins and register them at runtime 2013-10-08 19:08:20 -04:00
David Cormier
e457e96cd6 plugins: define plugins as Plugin objects 2013-10-08 19:08:20 -04:00
David Cormier
cc2eda7057 plugins: create PluginManager service 2013-10-08 19:08:20 -04:00
David Cormier
1fd6e1b0b6 plugins: Create a plugins service with a Plugin definition 2013-10-08 19:08:17 -04:00
David Cormier
7db8e31a7f plugins: Move plugins to external module 2013-10-08 19:08:13 -04:00