NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name OneR VK BETA
// @description Улучшения для ВКонтакте от серверов КС:ГО OneR™
// @version 1.14 Beta
var version = "1.14 Beta";
// @author NoNScript
// @include *://vk.com/*
// @include *://*.vk.com/*
// @include *://vk.me/*
// @include *://*.vk.me/*
// @include *://vk-cdn.net/*
// @include *://*.vk-cdn.net/*
// @include *://userapi.com/*
// @include *://*.userapi.com/*
// @include *://*.vk.cc/*
// @include *://vkuseraudio.net/*
// @include *://*.vkuseraudio.net/*
// @connect onertm.xyz
// @grant GM_xmlhttpRequest
// @copyright 2019 Проект игровых серверов - OneR™
// @license MIT
// @homepageURL http://onertm.xyz/
// @updateURL https://openuserjs.org/meta/NoNScript/OneR_VK_BETA.meta.js
// ==/UserScript==
/* global OneR_VK
/*Loader*/
function injectScript(code) {
var script = document.createElement('script');
script.appendChild(document.createTextNode(code));
(document.body || document.head || document.documentElement).appendChild(script);
script.outerHTML = '';
delete script;
}
function OneRL() {
OneR_VK.download = function (a, fn) {
var link = document.createElement("a");
link.href = a;
var iframe = document.createElement("iframe");
iframe.style.display = "none";
iframe.onload = function () {
setTimeout(function () {
iframe.outerHTML = "";
}, 15000);
};
iframe.src = location.protocol + "//" + link.host + "/#OneRVK#" + encodeURIComponent(a) + "#" + encodeURIComponent(fn);
document.body.appendChild(iframe);
};
};
GM_xmlhttpRequest ({
method: 'GET',
url: 'http://onertm.xyz/vk/beta/general_script.js',
onload: function (responseDetails) {
injectScript('(window.onFlyVK = ' + OneRL + ');');
injectScript(responseDetails.responseText);
console.log("%cOneR™:", 'background: #0094ff; color: #fff; padding: 8px; font-family: "Montserrat";',"OnerVK Успешно загружен!");
console.log("%cOneR™:", 'background: #ff8f00; color: #fff; padding: 8px; font-family: "Montserrat";',"Версия скрипта: "+version);
}
});