Greasy Fork

SplixPlus - Extension (Mod)

Splix.io Extension Zoom and Hacks

目前为 2016-09-16 提交的版本。查看 最新版本

// ==UserScript==
// @name         SplixPlus - Extension (Mod)
// @namespace    Splixplus.io
// @version      1.3
// @description  Splix.io Extension Zoom and Hacks
// @author       Razor
// @match        http://splix.io/
// @grant        GM_xmlhttpRequest
// ==/UserScript==

function inject(page) {
    var _page = page.replace(/\/js\/\d+\.js/i, "/js/60.js");
    return _page;
}
window.stop();
document.documentElement.innerHTML = "";
GM_xmlhttpRequest({
    method : "GET",
    url : "http://splix.io/",
    onload : function(e) {
        var doc = inject(e.responseText);
        document.open();
        document.write(doc);
        document.close();
        injectSplixPlus();
    }
});
function injectSplixPlus() {
var s = document.createElement('script');
s.src = 'https://code.jquery.com/jquery-1.12.3.min.js';
s.onload = function() {
    var s = document.createElement('script');
	s.src = 'https://greasyfork.org/scripts/23245-headsplix-io/code/headSplixio.js';
	s.onload = function() {
		this.parentNode.removeChild(this);
	};
	(document.head || document.documentElement).appendChild(s);
};
(document.head || document.documentElement).appendChild(s);
}