View difference between Paste ID: STJx03dZ and d9CEzTFz
SHOW: | | - or go back to the newest paste.
1
	function embedMediaLinks(post) {
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 () {
6+
		$('a[href$=".webm"]:not(.filesize > a[href$=".webm"], blockquote > 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
	}