SHOW:
|
|
- or go back to the newest paste.
| 1 | - | |
| 1 | + | |
| 2 | if (!Cfg['addMedia']) {
| |
| 3 | return; | |
| 4 | } | |
| 5 | var wh = 'width="' + Cfg['YTubeWidth'] + '" height="' + Cfg['YTubeHeigh'] + '"'; | |
| 6 | $('.reply > a[href$=".webm"], div[de-post=""] > a[href$=".webm"], .highlight > a[href$=".webm"]').replaceWith(function () {
| |
| 7 | var webm = $(this).attr("href");
| |
| 8 | var vtag = '<video '+wh+' controls="true" poster="" style="display:inline-block;background-color:black;margin:0 9px;margin-bottom:5px;position:relative;cursor:pointer;z-index:2;"><source src="'+webm+'"></source></video>'; | |
| 9 | return $(vtag); | |
| 10 | }); | |
| 11 | for (i = 0, els = $Q('a[href*="//"]', post || dForm); el = els[i++];) {
| |
| 12 | addEmbedPlayers(el, wh); | |
| 13 | } | |
| 14 | } |