SHARE
TWEET

Untitled

a guest Jul 31st, 2017 207 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var players = players.concat(APgrab('span', '(player|map|embed)'), APgrab('p', '(player|map|embed)'),
  2.                              APgrab('div',  '(player|map|embed)'), APgrab('dl', '(map|embed)'));
  3.  
  4.     var rx = [ // more will be added in the future
  5.       [/^(https:\/\/pastebin\.com)\/(embed(_i?frame|_js)?\/)?([\w-]+)/, '$1/embed_iframe/$4' ],
  6.       [/^(.*\.svg)$/i, 'svg'],
  7.       [/^(.*\.swf)$/i, 'swf'],
  8.       [/^(.*\.(mp4|webm|ogv))$/i, 'video'],
  9.       [/^(.*\.(mp3|opus|ogg|oga|flac))$/i, 'audio'],
  10.       [/$^/, 'no comma after last element']
  11.     ];
  12.    
  13.     var rx2 = [];
  14.     if(typeof uAPErx == 'object') {
  15.       for(var i=0; i<uAPErx.length; i++) rx2.push(uAPErx[i]);
  16.     }
  17.     for(var i=0; i<rx.length; i++) rx2.push(rx[i]);
  18.     rx = rx2;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top