Skip to content

Commit 6a260db

Browse files
author
Nikita-kun
committed
v1.1.0, #3 added
1 parent 606cc36 commit 6a260db

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

ice.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
var l = ''; //google login or email
33
var p = ''; //google password
44
var area = 'https://www.ingress.com/intel?ll=53.22792,50.203829&z=16';
5-
var v = 30000; //Delay between capturing screenshots, in milliseconds (1000 ms = 1 s)
5+
var v = 30000; //Delay between capturing screenshots, in milliseconds (1000 ms = 1 s)
6+
var width = 900; //Picture width
7+
var height = 500; //Picture height
68
/* SGNITTES */
79

810
var page = require('webpage').create();
@@ -20,10 +22,15 @@ fs.list('.').forEach(function (e) {
2022
});
2123
var V = max + 1;
2224

23-
var Version = '1.0.1'
25+
var Version = '1.1.0'
2426
var version = Version + '\n';
2527

2628

29+
page.viewportSize = {
30+
width: width + 42,
31+
height: height + 167
32+
};
33+
2734
function s() {
2835
console.log('Capturing screen #' + V + '...');
2936
page.render('Ice' + V + '.png');
@@ -119,7 +126,7 @@ window.setTimeout(function () {page.open('https://www.ingress.com/intel', functi
119126
document.querySelector('#header').style.display = 'none';
120127
document.querySelector('#footer').style.display = 'none';
121128
document.querySelector('#snapcontrol').style.display = 'none';
122-
document.querySelector('div.gm-style-cc:nth-child(8)').style.display = 'none';
129+
//document.querySelector('div.gm-style-cc:nth-child(8)').style.display = 'none';
123130
});
124131
page.evaluate(function () {
125132
var hide = document.querySelectorAll('.gmnoprint');

0 commit comments

Comments
 (0)