AntiGame Origin
-
-
Is inserting CSS rules in body instead of head in general better for Opera ?
-
with this small changes under Opera 11.60 and Opera 12 (next) i can use events list under or above and it`s works in 100%. antigame is always load on every page! finally . i tested this under FF and under FF works too. i don`t know how better is instead CSS rules but if better is insert to head you can do some like this:
createStyleSheet: function()
{
document.getElementsByTagName("head")[0].appendChild(document.createElement("style"));
Utils.stylesheet = document.styleSheets[document.styleSheets.length-1];
if(window.opera) {
document.getElementsByTagName("body")[0].appendChild(document.createElement("style"));
Utils.stylesheet = document.styleSheets[document.styleSheets.length-1];
}
}, -
Normally style tags may only occur in head.
Several browser are "tolerant" and use them also at other places. But this is against the work of the standard, and in the next version of a browser it can (or must) be more restrictive.
I am at the moment not possible to test this change in IE -
It's no problem for other browsers, i implemented already this
var element = (this.isOpera ) ? 'body' : 'head';
document.getElementsByTagName(element)[0].appendChild(document.createElement("style"));
Utils.stylesheet = document.styleSheets[document.styleSheets.length-1]; -
ok. for fun i insert into: "Fleet2_insertCSSRules: function()"
Utils.insertCSSRule('#fleet2 #speed_plain [rel="1"]{color:#f30}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="2"]{color:#f60}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="3"]{color:#f90}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="4"]{color:#fc0}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="5"]{color:#ff0}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="6"]{color:#cf0}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="7"]{color:#9f0}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="8"]{color:#6f0}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="9"]{color:#3f0}');
Utils.insertCSSRule('#fleet2 #speed_plain [rel="10"]{color:#0f0}');
now it`s looks nice
edit by Valent- removed picture -
Good idea ;-)
About Opera : There are much more problems with Antigame .. We should talk together about it -
The new test version 1.33.5 userscripts.org/scripts/show/117158 includes the first bugfixes for Opera - Thanks to Joks and Slowmotion
26.11.2011 v1.33.5
+ Galaxy view: separated showing player and alliance rank
* Fixed WebSim language selection
+ Fleet 2: Added colored speed selection (disable with setting "Fleet 2: Improve / fix layout)
* Started with adding fixes for Opera
- Insert styles to body -
1) someone know why auto copy cords didn`t work from Ogame notices? i have in notices saved a lot of cords or spy report and i must enter then manual it will be very useful if auto copy will works with ogame notices
2) i translate new options AntiGame Origin - Translations -
Joks wrote:
1) someone know why auto copy cords didn`t work from Ogame notices? i have in notices saved a lot of cords or spy report and i must enter then manual :/ it will be very useful if auto copy will works with ogame notices
See userscripts.org/scripts/show/116819 - Autocopy coordinates from external pages
Please give the URL -
in code antigame we have:
ogame notices have page:
so the problem is not in include section
and in code:
you can insert:
it will be remove from war report strange line construct from close point -
Gentlemens, please be in touch with translation thread, which need also some rearrangement. There is need to be done a procedure to know which translations are for what version and ect.
And someone from developing team should check this thread everytime a new version is anounced, if there is some updated translation available (so it can be implemented together with the new release).
Also each translation/step should be noted in OMTool.
My recommendation how to change the first post in translation thread:
*************I reorganize the translations for AntiGame. Here you can help to improve/translate your language.
Included languages: AR, BA, BG, BR, CZ, DE, DK, ES, FR, HR, GR, MX, NL, NO, IT, ORG, PL, PT, RO, RU, SK, US
1. The template should be taken directly from following en spoiler and translated to your beloved language
2. After translation, post it here or send an eMail to francolino@ogame.org (for updates, just reedit your existing spoiler).
3. Note your action in this post with a version number matching to the version you have translated (use for that size 12font, bold, italic and yellow color)
4. For updates only, note your action here with reedit the version number and place this smile before it (so the dev team will update your lang in next version)
5. Note your translation in OMTool, because we love bureaucracy
- If you can't update this thread, please ask someone from team to do it
- Thanks to you all for your help !
EN - default template of Antigame Origin script - placed version 1.33.6EN template Source Code
- function lang_LabelsEN ()
- {
- return {
- lbl_missAttack: 'Attack',
- lbl_missColony: 'Colonization',
- lbl_missDeploy: 'Deployment',
- lbl_missDestroy: 'Moon Destruction',
- lbl_missEspionage: 'Espionage',
- lbl_missExpedition: 'Expedition',
- lbl_missFederation: 'ACS Attack',
- lbl_missHarvest: 'Harvest',
- lbl_missHold: 'ACS Defend',
- lbl_missTransport: 'Transport',
- lbl_shipSCargo: 'Small Cargo',
- lbl_shipLCargo: 'Large Cargo',
- lbl_shipLFighter: 'Light Fighter',
- lbl_shipHFighter: 'Heavy Fighter',
- lbl_shipCruiser: 'Cruiser',
- lbl_shipBattleship: 'Battleship',
- lbl_shipColonizator: 'Colony Ship',
- lbl_shipRecycler: 'Recycler',
- lbl_shipSpy: 'Espionage Probe',
- lbl_shipBomber: 'Bomber',
- lbl_shipDestroyer: 'Destroyer',
- lbl_shipRIP: 'Deathstar',
- lbl_shipBCruiser: 'Battlecruiser',
- lbl_shipSatellite: 'Solar Satellite',
- lbl_defRLauncher: 'Rocket Launcher',
- lbl_defLLaser: 'Light Laser',
- lbl_defHLaser: 'Heavy Laser',
- lbl_defGauss: 'Gauss Cannon',
- lbl_defIon: 'Ion Cannon',
- lbl_defPlasma: 'Plasma Turret',
- lbl_defSShield: 'Small Shield Dome',
- lbl_defLShield: 'Large Shield Dome',
- lbl_RequiredEnergy: 'Energy needed',
- rx_sendMail: /Send a message to (.+)\./
- }
- };
- function lang_InterfaceEN ()
- {
- return {
- opt_title: 'AntiGame Options',
- opt_btnOk: 'OK',
- opt_btnCancel: 'Cancel',
- opt_btnDefault: 'Default',
- opt_language: 'Language',
- opt_update_check: 'Auto-check for updates',
- opt_thousandSeparator: 'Thousand separator',
- opt_blockAutoComplete: 'Block Auto-Complete in Firefox',
- opt_showDeficient: 'Show missing resources',
- opt_showResources: 'Show extended resources information',
- opt_showNames: 'Show ship/building/research names over images',
- opt_nameColorOn: 'Name color: available',
- opt_nameColorOff: 'Name color: unavailable',
- opt_nameColorDisabled: 'Name color: not enough resources',
- opt_showConstructionTitle: 'Show construction titles in the planet list',
- opt_shortHeader: 'Always minimize planet image',
- opt_misc_scrollTitle: 'Scroll time to the next event in the window title',
- opt_uni_SpeedFactor: 'Speed factor of this universe',
- opt_uni_DFPercent: 'Percentage of fleet structure to debris',
- opt_uni_DefenseToDF: 'Percentage of defense to debris',
- opt_timeSetting: 'Change time values (hours only)',
- opt_showServerOgameClock: 'Keep server time for top-right Ogame clock',
- opt_showServerPhalanx: 'Keep server time for Phalanx view',
- opt_showPageStartTime: 'Display the time the page was last refreshed',
- opt_timeAMPM: 'Use 12-hours format (AM/PM) instead of 24-hours',
- opt_timeDontChange: 'Don\'t change time',
- opt_timeLocal: 'Always set to local timezone',
- opt_timeServer: 'Always set to server timezone',
- opt_killTips: 'Kill tooltips',
- opt_evt_dimReverse: 'Dim returning fleets',
- opt_phalanx_showDebris: 'Show theoretical debris in Phalanx view',
- opt_evt_expandFleetsEvt: 'Show fleet composition and cargo (EventList)',
- opt_evt_expandFleetsPhal: 'Show fleet composition and cargo (Phalanx)',
- opt_galaxyShowRank: 'Show player ranks in Galaxy view',
- opt_galaxyShowAllyRank: 'Show alliance ranks in Galaxy view',
- opt_galaxyRankColor: 'Player/alliance ranks color',
- opt_galaxyDebrisMin: 'Minimal size of debris to highlight (0 to turn off)',
- opt_galaxyDebrisColor: 'Color of highlighted debris',
- opt_galaxyHideMoon: 'Hide Moon picture (display moon size instead)',
- opt_galaxy_Players: 'Highlight the following players',
- opt_galaxy_PlayerColors: 'Colors for player highlighting',
- opt_galaxy_Allys: 'Highlight the following alliances',
- opt_galaxy_AllyColors: 'Colors for alliance highlighting',
- opt_galaxy_keepTipsPlanets: 'Keep tooltips for planets and moons',
- opt_galaxy_keepTipsDebris: 'Keep tooltips for debris fields',
- opt_msg_expandBox: 'Expand the messagebox height',
- opt_msg_PlunderThreshold: 'Low limit for theoretical plunder (x1000)',
- opt_msg_DebrisThreshold: 'Low limit for theoretical debris (x1000)',
- opt_msg_foldSmallPlunder: 'Fold reports with plunder and debris less than the limit',
- opt_msg_showPlunder: 'Show plunder in spy reports',
- opt_msg_addButtons: 'Additional buttons on Messages',
- opt_msg_fixColors: 'Fix colors of combat reports',
- opt_fleet1_fixLayout: 'Fleet 1: Improve Layout',
- opt_fleet_showCapacity: 'Fleet 1: Show ships capacity and speed',
- opt_fleet1_showResCalc: 'Fleet 1: Show resource calculator',
- opt_uni_maxPlayerScore: 'Fleet 1: The strongest player has more than 5M points',
- opt_fleet1_killTips: 'Fleet 1: Kill tooltips',
- opt_autocopyCoords: 'Fleet 2: Auto-copy coordinates',
- opt_autocopyGlobal: 'Fleet 2: Memorize coordinates from any other external page',
- opt_fleet2_setTargetDF: 'Fleet 2: Set target to DF if the fleet includes recyclers',
- opt_fleet2_fixLayout: 'Fleet 2: Improve Layout',
- opt_fleet2_ShortLinks: 'Fleet 2: Target shortlinks',
- opt_fleet2_MoonColor: 'Fleet 2: Color for moons in the shortlink list',
- opt_fleet2_MoonsToEnd: 'Fleet 2: Move moons to the end of the shortlinks list',
- opt_fleet2_expandLists: 'Fleet 2: Expand drop-down boxes (Speed, Shortcuts, ACSs)',
- opt_fleet2_checkProbeCapacity: 'Fleet 2: Check probes capacity before departure',
- opt_fleet3_fixLayout: 'Fleet 3: Improve Layout',
- opt_missionPriority: 'Fleet 3: Mission priority',
- opt_mvmt_expandFleets: 'Show fleet ships and cargo',
- opt_mvmt_showReversal: 'Show reversal time for fleets',
- opt_missColor: 'Mission color: ',
- opt_msg_addSimButton: 'Add buttons for submitting spy reports to simulator',
- lbl_sectionGeneral: 'General',
- lbl_sectionUniverse: 'Universe',
- lbl_sectionTime: 'Time settings',
- lbl_sectionEventList: 'Event list & Phalanx',
- lbl_sectionGalaxy: 'Galaxy',
- lbl_sectionMessages: 'Messages',
- lbl_sectionFleetDispatch: 'Fleet dispatch',
- lbl_sectionFleetMovement: 'Fleet movement',
- lbl_optionsNote1: 'The option is stored for this universe only',
- lbl_resetCoords: 'Reset - ',
- lbl_TotalCapacity: 'Total capacity',
- lbl_MinSpeed: 'Minimal speed',
- lbl_ExPoints: 'Expedition points',
- lbl_mvmt_Return: 'R',
- lbl_resources: 'Resources',
- lbl_debris: 'Debris',
- lbl_total: 'Total',
- lbl_loot: 'Loot',
- lbl_metal: 'Metal',
- lbl_crystal: 'Crystal',
- lbl_shipSCargoAlt: 'SC',
- lbl_shipLCargoAlt: 'LC',
- lbl_shipRecyclerAlt: 'Recs',
- lbl_shipSatelliteAlt: 'Sat.',
- lbl_deficientRes: 'Missing resources',
- lbl_Production: 'Production',
- lbl_ArrivalACS: 'Arrival (ACS)',
- lbl_btnMarkReadAll: 'Mark all displayed messages as read',
- lbl_btnDeleteSmallPlunder: 'Delete spy reports with plunder < $plunder and debris < $debris',
- lbl_Moon: 'Moon',
- lbl_onTop: 'On top',
- lbl_onBottom: 'On bottom',
- lbl_onLeft: 'On left',
- lbl_installNewVersion: 'Click to install new version',
- lbl_Save: 'Save',
- lbl_Clear: 'Clear',
- lbl_Quantity: 'Quantity',
- lbl_Duration: 'Duration',
- lbl_Consumption: 'Consumption',
- lbl_tmTime: 'Time',
- lbl_tmCountdown: 'Countdown'
- }
- };
-------------
AR- 1.32.6 - Need to be finished
BA- 1.32.0 - Need to be finished
BR - 1.32.0 - by Danielxv
CZ - 1.32.0 - by prebijak / unknown nick
DE - 1.32.0 - by DerWoNetDaIst / Slowmotion
DK - 1.32.0 - by Im Me, Bangsholt - Need to be finished
ES - 1.32.6 - by Kramagon
FR - 1.32.0 - by David M. / benneb
GR - 1.32.0 - by camber - Need to be finished
IT - 1.26.0 - by Grievous - Need to be finished
HR - 1.32.0 - by zlay, zohar88
MX- 1.32.6 - Need to be finished
NL - 1.32.0 - paralyz3
NO- 1.32.0 -
PT - 1.32.0 - by HeD_pE
PL - 1.32.0 - by Pussty / Johnson & Joksik
RO - 1.32.0 - by DonCannabis - Need to be finished
SK - 1.33.2 - by sirEdward
Added new sentences into script - please update your translations:
opt_fleet1_fixLayout: 'Fleet 1: Improve Layout',
opt_fleet1_killTips: 'Fleet 1: Kill tooltips',
opt_fleet3_fixLayout: 'Fleet 3: Improve Layout',
opt_missionPriority: 'Fleet 3: Mission priority',
Please use ONLY the template from en spoiler (we're updating it to match the most actual version)! -
First i change some more things on translations. Right now i removed all twice lines. Later i reorganize the translation template.
-
in console error i have one small error with CSS antigame:
it should be:
auto is for margin, width and height only, not for padding
Fixed in 1.33.7 -
I was actually wondering, can one of you guy's maybe also take a look at the Antigame_mod, cause i really liked the way it showed those images in the extra resources menu. But ever since the 2.3 update on Ogame the images have dissapeared.
I for one would greatly appreciate it, like all the stuff that is already done for Antigame. -
Some ES com Antigame users hace reported a visualization error on the 2nd fleet page (see image)
edit by Valent- removed picture -
@ Kramagon :
Fixed in userscripts.org/scripts/show/117158
Bauwser wrote:
I was actually wondering, can one of you guy's maybe also take a look at the Antigame_mod, cause i really liked the way it showed those images in the extra resources menu. But ever since the 2.3 update on Ogame the images have dissapeared.
I for one would greatly appreciate it, like all the stuff that is already done for Antigame.
We will have a look. -
Antigame Testversion 1.33.7 userscripts.org/scripts/show/117158
And a renewed changelog of the last days:
Recent changes:
28.11.2011 v1.33.7
+ Antigame settings: Improved layout, reorganize in subsections (done in Messages, Fleet dispatch)
+ Antigame settings: Messages : Added option for espionage report - Reducing row spacing with 25% up to 100%
+ Antigame settings: Fleet dispatch - Fleet page 2 : Added option to color moons in expanded list
* Fleet page 2: Fixed layout with very long descriptions
+ OSimulate: Supports now all languages
27.11.2011 v1.33.6
+ Antigame settings: Galaxy : separated showing player and alliance rank
+ Antigame settings: Fleet dispatch - Fleet page 2 : Added Improve layout checkbox
+ Fleet page 2: Improve layout - Added colored speed selection
* Opera fix: Insert styles to body instead of head (fixes several problems with Opera)
* Fixed WebSim language selection
* Languages : Removed double variables, copy Label translations into Interface
* Updated CZ
26.11.2011 v1.33.4
* Fixed Simulators
* Fixed Uni speed from Metatag
25.11.2011 v1.33.2
* Changed layout on Fleet1 and Fleet2 a little
25.11.2011 v1.33.0
* Fixed problems with phalanx
+ Antigame settings: Fleet dispatch - Fleet page 1 : Added Improve layout checkbox
+ Fleet page 1 : Improve layout removes the small "all ships" buttons and increases inputbox - The icon selects all ships (native Ogame function)
25.11.2011 v1.32.8
+ Antigame settings: Messages : Adjustable height of messagebox.
* Fleetpage 2 : Improved design and handling, fixed bugs.
+ Added : Uni speed factor read from meta tags Open : clean up all uni_SpeedFactor
* Fixed : Removed all code for Ogame 1.1 Opeon : clean up all ogameVersion -
good work, thank to quick fix #TB_window position but if i can give you one suggest
if someone don`t use option "Expand the messagebox height" then that person open war report and he must scroll page down to see option for click to see full war report and if you will see carefully war report is with some strange dot line. and the default option for "Expand the messagebox height" is disabled that why many people don`t will have repaired war report to full window :(.
so i think good idea will be change function "Fix colors of combat reports'". this function is default on in antigame so every one will have fixed that window. to fix war report we change line:
Source Code
- else if ( Utils.isCurrentPage('showmessage,messages') ) {
- if ( Options.msg_fixColors && Utils.isCurrentPage('messages') )
- {
- Utils.insertCSSRule('.combatreport_ididattack_iwon { color: #00B000; }');
- Utils.insertCSSRule('.combatreport_ididattack_ilost { color: #D02222; }');
- Utils.insertCSSRule('.combatreport_ididattack_draw { color: #C0C000; }');
- }
to:
else if ( Utils.isCurrentPage('showmessage,messages') ) {
if ( Options.msg_fixColors && Utils.isCurrentPage('messages,showmessage') )
{
Utils.insertCSSRule('.combatreport_ididattack_iwon { color: #00B000; }');
Utils.insertCSSRule('.combatreport_ididattack_ilost { color: #D02222; }');
Utils.insertCSSRule('.combatreport_ididattack_draw { color: #C0C000; }');
Utils.insertCSSRule( '#showmessage #shortreport td { border-bottom-style:none}');
}
after that people that don`t use "Expand the messagebox height" will have default fixed war report, and the war report is nicer without strange background dot line -
Sounds good ..
Well i think about to include this changes on spyreports ( for Improve layout) :
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Users Online 2
2 Guests