IGG Games / bluemediafiles bypass

Redirect to actual download page.

As of 2021-07-02. See the latest version.

// ==UserScript==
// @name         IGG Games / bluemediafiles bypass
// @namespace    http://tampermonkey.net/
// @version      0.0.2
// @description  Redirect to actual download page.
// @author       ting
// @match        http*://bluemediafiles.net/url-generator.php?url=*
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
 
    function _bluemediafiles_decodeKey(encoded) {
        var key = '';
        for (var i = encoded.length / 2 - 5; i >= 0; i = i - 2) {
            key += encoded[i];
        }
        for (i = encoded.length / 2 + 4; i < encoded.length; i = i + 2) {
            key += encoded[i];
        }
        return key;
    }
    [].forEach.call(document.getElementsByTagName('script'), function (s) {
        var m = s.innerText.match(/Goroi_n_Create_Button[(]\"(?<encoded>.+?)\"[)];/);
        if (m && m.length > 1) {
            window.location = 'https://bluemediafiles.com/get-url.php?url=' + _bluemediafiles_decodeKey(m[1]);
        }
    });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。