Gateway Mods

This script adds some functions to speed up HP operations

ของเมื่อวันที่ 19-01-2015 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Gateway Mods
// @namespace    http://www.hacker-project.com/
// @version      0.3
// @description  This script adds some functions to speed up HP operations
// @author       Kevin Mitnick
// @match        http://www.hacker-project.com/*
// @grant        none
// ==/UserScript==

function setup() {
    // Setup jQuery
    var jQueryScript = document.createElement("script");
    jQueryScript.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js");
    document.head.appendChild(jQueryScript);
    
    if (new String(window.location).indexOf("http://www.hacker-project.com/index.php?action=gate&a2=files") > -1) {
        var table = document.getElementsByName("frm_files")[0].getElementsByTagName("table")[0];
        for (var numberOfRows = table.rows.length, i = 3; i<(numberOfRows-3)*3; i+=3) {
            var tr = table.getElementsByTagName("tbody")[0].getElementsByTagName("tr")[i];
            var tds = tr.getElementsByTagName("td");
            var fileType = tds[9].innerHTML;
            var version = parseFloat(tds[11].innerHTML);
            
            // File type testing and calculations
            if (fileType == "Firewall Protect") {
                tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*500)+" MHz CPU, "+Math.round(version*30000)+" kB RAM</p>");
            }
            else if (fileType == "Firewall Bypass") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*800)+" MHz CPU, "+Math.round(version*70000)+" kB RAM</p>");
            }
            else if (fileType == "Password Protect") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*1000)+" MHz CPU, "+Math.round(version*50000)+" kB RAM</p>");
            }
            else if (fileType == "Password Break") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*2000)+" MHz CPU, "+Math.round(version*125000)+" kB RAM</p>");
            }
            else if (fileType == "Hide Files") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*1000)+" MHz CPU, "+Math.round(version*90000)+" kB RAM</p>");
            }
            else if (fileType == "Unhide Files") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*1000)+" MHz CPU, "+Math.round(version*90000)+" kB RAM</p>");
            }
            else if (fileType == "Encryptor") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*6000)+" MHz CPU, "+Math.round(version*300000)+" kB RAM</p>");
            }
            else if (fileType == "Decryptor") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*9000)+" MHz CPU, "+Math.round(version*400000)+" kB RAM</p>");
            }
            else if (fileType == "Malware Overload Bomb") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*5500)+" MHz CPU, "+Math.round(version*70000)+" kB RAM</p>");
            }
            else if (fileType == "File Share Virus") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*2500)+" MHz CPU, "+Math.round(version*10000)+" kB RAM, "+version*500+" kB/s Bandwidth</p>");
            }
            else if (fileType == "Adware Spam Daemon") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*500)+" MHz CPU, "+Math.round(version*50000)+" kB RAM, "+version*30+" kB/s Bandwidth</p>");
            }
            else if (fileType == "IP Scanner") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*2000)+" MHz CPU, "+Math.round(version*100000)+" kB RAM</p>");
            }
            else if (fileType == "IP Cloaker") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*1000)+" MHz CPU, "+Math.round(version*60000)+" kB RAM</p>");
            }
            else if (fileType == "Log UnDeleter") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*500)+" MHz CPU, "+Math.round(version*30000)+" kB RAM</p>");
            }
            else if (fileType == "Log Deleter") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*300)+" MHz CPU, "+Math.round(version*10000)+" kB RAM</p>");
            }
            else if (fileType == "Scan Blocker") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*2000)+" MHz CPU, "+Math.round(version*100000)+" kB RAM</p>");
            }
            else if (fileType == "IP Leech") {
            	tds[11].innerHTML += ("<br/><p class='p1'> "+Math.round(version*4500)+" MHz CPU, "+Math.round(version*13500)+" kB RAM</p>");
            }
        }
    }
}
setup();