Lorenz Hübschle-Schneider
7ba8ba202e
Spotify: also match other types of embeds (playlists and artists)
9 years ago
Lorenz Hübschle-Schneider
71d2cefce1
Escape dots in plugin regexes
...
See #519
9 years ago
Evan Tschuy
d1921c49e2
Add underscore to youtube regex
9 years ago
kurros
4a0ed97934
allow browser to use https for pastebin embed
9 years ago
Ninjex
4971baefec
Update plugin.js ( #795 )
...
The Asciinema cast plugin regex was faulty. Casts can have /[a-z]/ characters, not only digits /\d)
Here is a test cast for you to run: https://asciinema.org/a/29qfl1dwsgd25o91nfv3dvvbn
(squashed two commits --@lorenzhs)
9 years ago
Lorenz Hübschle-Schneider
bfb5af68b4
Gist plugin: ignore trailing slashes and anchors
...
Supersedes #783
9 years ago
Peter Elmers
05f5629ba7
Please linter
9 years ago
Peter Elmers
fa992e2fa5
Add a pastebin plugin
9 years ago
Simen Graaten
b7183fb404
Add preview of .mp3, .ogg and .wav links via <audio> tag.
...
This fixes #745
10 years ago
Eternal
7753922137
Improving urlRexexp for plugins
10 years ago
Furkan Alaca
41659493cd
parse dropbox URLs for image preview plugin (v5)
10 years ago
hormigas
b5594d5754
adding imgur gifv support to the videoPlugin
10 years ago
Tor Hveem
a02573a9c2
Construct plugin elements async. Fixes #660
...
This commit changes the plugins that uses angular.element to load
resources directly to instead return a function that runs
angular.element. When the browser runs angular.element('<img>') and gets
a src attr it will fetch the content in the src. This makes the
browser running gb automatically fetch all plugin content that gets
linked even if the user didn't request it.
Maybe we could change our plugin architecture to split the match
function and the generator functions so this could be solved more
elegantly.
10 years ago
Alex Schneider
1d628ed849
Remove comments that we don't really need
10 years ago
Alex Schneider
6dcb579de4
Fix sanitization by constructing elements in Javascript.
...
This is still technically a hack, the elements should really be defined in a view with templates, but it fixes the issue with sanitize where it can't sanitize if it can't parse HTML.
10 years ago
David Cormier
0afa7bc184
plugins: sanitize user input before passing it to plugins
10 years ago
Colin Arnott
2f8ab9dbf3
roll back tls upgrade for giphy plugin link, as it conflicts with printed link
10 years ago
Colin Arnott
875001f1b2
simplify regex matching and increase readability of the giphy plugin and have plugin link to original userfacing url, not cdn image file
10 years ago
Colin Arnott
03a6e391f6
added plugin support for giphy gifs as embedded content and created testcases
10 years ago
David Cormier
b6260e7cc7
plugins: add html5 video support
...
Shows ogv, mp4 and webm files inside a video tag
10 years ago
David Cormier
d8c4ba78c1
plugins: add html5 video support
...
Shows ogv, mp4 and webm files inside a video tag
11 years ago
Vivien Didelot
c4bddc993d
Revert "Check GET parameters in image embedding"
...
There's no need to check for every GET parameters (using the line ending
'$' character), we can just add a word boundary (the '\b' character)
instead. Thus, revert commit b939bc7ca8
.
11 years ago
Lorenz Hübschle-Schneider
c57911db64
Restructure plugin constructors to make them more convenient
11 years ago
Lorenz Hübschle-Schneider
4b65847b46
Rewrite youtube plugin with urlPlugin
...
Remove URL without protocol from tests
11 years ago
Lorenz Hübschle-Schneider
beaa3426dd
Rewrite vine plugin with urlPlugin
11 years ago
Lorenz Hübschle-Schneider
18c0db6c4f
Fix Asciinema plugin
11 years ago
Vivien Didelot
ab260cb5a7
plugins: add Vine support
...
This commit adds support for Vine embeddable content.
11 years ago
Vivien Didelot
b365272aa6
plugins: (image) support :size suffix
...
Some images URL (such as Twitter hosting site twimg.com) are suffixed
with :size where size can be small, medium or large.
11 years ago
Kenneth Chung
fdc598c00f
fix a typo and some grammar mistakes
11 years ago
Lorenz Hübschle-Schneider
bc037720bd
Fix plugin selectors after angular upgrade
...
The recent angular update changed the format of the hash keys.
They're now in the format 'object:123' (etc), which isn't a valid
CSS class name any more, but we used the $$hashKey as such.
I used this opportunity to introduce a bit of abstraction there as well
11 years ago
Lorenz Hübschle-Schneider
a80db339f8
Use strict
...
Requires turning IrcUtils into an Angular service, because the global variable
trick won't work with use strict.
Reuse is still easily possible by removing the angular wrapping around it.
11 years ago
Lorenz Hübschle-Schneider
b939bc7ca8
Check GET parameters in image embedding
...
This is a great candidate for the tests!
11 years ago
Lorenz Hübschle-Schneider
1235a5e148
Embed Dropbox images
...
We need to pass a parameter, "?dl=1", to get the actual file
11 years ago
Lorenz Hübschle-Schneider
7d13f49dab
Add tweet embedding plugin
11 years ago
Lorenz Hübschle-Schneider
6d988069c7
Add asynchronous GitHub Gist embedding plugin
...
requires a few selectors to be more precise in our CSS
11 years ago
Lorenz Hübschle-Schneider
3d719f3671
Simplify plugins that detect URLs by eliminating redundancy
11 years ago
Lorenz Hübschle-Schneider
703fcb1668
Add support for asynchronous / lazy plugins
...
Fixes #253
11 years ago
Lorenz Hübschle-Schneider
ccf7b1c51e
Adapt common plugins to make use of multiple embeds per message
11 years ago
Lorenz Hübschle-Schneider
e962472414
Fix Google maps regex
11 years ago
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)
11 years ago
David Cormier
ceb31c1947
contentForMessage doesn't have to care about content visibility
11 years ago
Lorenz Hübschle-Schneider
8e1e871411
Fix matching (#segments)
11 years ago
Lorenz Hübschle-Schneider
885b47eaaf
Add yr.no plugin
11 years ago
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
11 years ago
Lorenz Hübschle-Schneider
86f4c7308b
Image plugin: case insensitive regex
...
Fixes #305
11 years ago
Lorenz Hübschle-Schneider
9f46e656cb
Improve youtube matching URL
...
closes #266
11 years ago
Lorenz Hübschle-Schneider
b91241744c
Improve youtube matching URL
...
closes #266
11 years ago
Felix Eckhofer
cd6ee96ae7
Use https for dailymotion
11 years ago
Lorenz Hübschle-Schneider
3c1bdfeb71
Improve plugin regular expressions, load imgur over https if enabled
11 years ago
Felix Eckhofer
18dd4eae1f
Replace tabs with spaces
12 years ago