您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
try to take over the world!
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/26077/166009/insert_anzahl_schiffe.js
// ==UserScript== // @name insert_anzahl_schiffe // @namespace http://tampermonkey.net/ // @version 0.1 // @datetime 27.12.2016 20:24 // @description try to take over the world! // @author S.K. // @match https://uni3.xorbit.de/imperium.php* // @require http://code.jquery.com/jquery-latest.js // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; console.log(document.URL); if(document.URL.match('imperium.php')){ fn_start(); } })(); function fn_start(){ console.log('start..imperium'); jQuery = $; console.log('frames: ' + frames.length); jQuery('center>table>tbody')[2].insertRow(3).id = 'ben_gTr'; jQuery('#ben_gTr')[0].appendChild(document.createElement('th')).innerHTML = 'ben_gTr (vorh_gTr)'; for(var i=1; i<=$('#pselector')[0].length;i++){ iMet = (parseInt($('center>table>tbody')[2].rows[7].cells[i].innerText.replace(/\./g,''))); iKris = (parseInt($('center>table>tbody')[2].rows[8].cells[i].innerText.replace(/\./g,''))); iDeut = (parseInt($('center>table>tbody')[2].rows[9].cells[i].innerText.replace(/\./g,''))); iTr_vorh = $('center>table>tbody')[2].rows[32].cells[i].innerText; sText = parseInt((iMet+iKris+iDeut)/25000) + ' (' + parseInt(iTr_vorh) + ')'; $('#ben_gTr')[0].appendChild(document.createElement('th')).innerHTML = sText; } }