确实旧版的代码不给力,又去搬运了新代码,操作还是老样子:只针对Google核心的浏览器,在浏览器出现bluemediafiles广告5秒不能跳过的页面按F12调出调试界面,选择控制台Console输入以下代码后回车即可。
// ==UserScript==
// @name IGG Games / bluemediafiles bypass
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @Description Redirect to actual download page.
// @Author ting
// @match http*://bluemediafiles.com/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 = '/get-url.php?url=' + _bluemediafiles_decodeKey(m[1]);
}
});
})();
// ==UserScript==
// @name IGG Games / bluemediafiles bypass
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @Description Redirect to actual download page.
// @Author ting
// @match http*://bluemediafiles.com/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 = '/get-url.php?url=' + _bluemediafiles_decodeKey(m[1]);
}
});
})();