Embed Zippyshare from link

find link to songs from zippyshare and automatically embeds into the page

目前为 2015-09-26 提交的版本。查看 最新版本

// ==UserScript==
// @name           Embed Zippyshare from link
// @namespace      my
// @description    find link to songs from zippyshare and automatically embeds into the page
// @include        *torrentsmd.*/forum.php*
// @include        *torrentsmoldova.*/forum.php*
// @require        http://code.jquery.com/jquery-2.1.3.js
// @version        1.1
// @grant          none
// ==/UserScript==

jQuery.noConflict();
var regex = /^.+?\/\/www([0-9]+)\.zippyshare\.com\/v\/([a-zA-Z0-9]+)\/[a-zA-Z0-9]+\.[a-zA-Z0-9]+/;
var soundcloud = $("a").filter(function() {
    var m = regex.exec(this.href);
    if (m) {
       this.setAttribute('serverID', m[1]);
       this.setAttribute('fileID', m[2]);
       return true;
    }
});
soundcloud.each(function(){ 
    $(this).after('<embed flashvars="baseurl=https://api.zippyshare.com/api/&amp;file=' + this.getAttribute('fileID') +
                  '&amp;server=' + this.getAttribute('serverID') + '" allowfullscreen="false" quality="high"\
                   wmode="transparent" src="https://api.zippyshare.com/api/player.swf" type="application/x-shockwave-flash"\
                   height="80" width="700" style="display:block">');
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址