User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz 2 > OLD GLB2Scout Tool : RIP March 20
Page:
 
Stobie
MoD
offline
Link
 
Originally posted by Stobie
Currently I am filtering out scrims all together due to what TxSteve said, but to your point it fails solely on that its a private scrimmage. I was hoping I would get a solution from WG staff to be able to identify private scrims up front but seems I have to go through the routine manually and escape when its a private scrim. I have accounted for it already in theory, just haven't tested in full.

I have had many requests for this so I will look into it in depth today.


Honestly I don't know why I always say when I get time I will look into it. LOL I am already done, I guess that is the joy of writing everything in and then just commenting out certain things.

This should be working, just note that if you are scouting more than 1 game at a time it might not actually store the results so go ahead and scout it again. The first time it will be storing all the data and could take upwards of 15-30 seconds based on how fast the connection is between GLB and Scout.
 
Stobie
MoD
offline
Link
 
if anyone can figure out how on a replay URL to call this javascript function from the url call I will give you a free season

URL : http://glb2.warriorgeneral.com/game/replay/171542
JS Function : glb2.replay.togglePlays()
 
TxSteve
Not A Mod
offline
Link
 
never mind.



looked like I just had to do a password reset at twitch
Edited by TxSteve on Mar 27, 2015 08:46:51
 
Parab00n
offline
Link
 
Originally posted by Stobie
if anyone can figure out how on a replay URL to call this javascript function from the url call I will give you a free season

URL : http://glb2.warriorgeneral.com/game/replay/171542
JS Function : glb2.replay.togglePlays()


Working on it, think I nearly got it.
 
Parab00n
offline
Link
 
Not as close as I thought, still working though
 
Stobie
MoD
offline
Link
 
Originally posted by Parab00n
Not as close as I thought, still working though


Welcome to my juncture of asking for help
 
Majestic Gent
offline
Link
 
Originally posted by Stobie
if anyone can figure out how on a replay URL to call this javascript function from the url call I will give you a free season

URL : http://glb2.warriorgeneral.com/game/replay/171542
JS Function : glb2.replay.togglePlays()


The closest I got was adding a bookmarklet with the following URL in my browser:

javascript: (function(){glb2.replay.togglePlays();})();

Still can't figure out a way to execute the bookmarklet after the page loads without using some native browser extension.

Edited by Majestic Gent on Mar 28, 2015 08:10:01
Edited by Majestic Gent on Mar 28, 2015 08:08:14
Edited by Majestic Gent on Mar 28, 2015 08:07:33
Edited by Majestic Gent on Mar 28, 2015 08:04:25
Edited by Majestic Gent on Mar 28, 2015 08:03:06
 
Stobie
MoD
offline
Link
 
Originally posted by Majestic Gent


The closest I got was adding a bookmarklet with the following URL in my browser:

javascript: (function(){glb2.replay.togglePlays();})();

Still can't figure out a way to execute the bookmarklet after the page loads without using some native browser extension.



Same path I ended up. Was able to even script the document.location to the page desired but then I call the Function after but it's trying to refer to itself not the loaded page so it doesn't know what to do.

For those who don't know I am using batch files to open a page and navigate to a url. If cd or bort add a parameter to the irk I could utilize that but not sure they will do it.
 
Parab00n
offline
Link
 
Originally posted by Stobie
Same path I ended up. Was able to even script the document.location to the page desired but then I call the Function after but it's trying to refer to itself not the loaded page so it doesn't know what to do.

For those who don't know I am using batch files to open a page and navigate to a url. If cd or bort add a parameter to the irk I could utilize that but not sure they will do it.


So I can't call the function no matter what I do, but is there a way to just remove the style section that causes it to hide? The plays are loaded no matter what, you can delete the style="display: none; and the plays show up. Maybe calling JS functions like we are doing is blocked. This seems like it would take Bort a few minutes to change...

<div id="plays" style="display: none;">
<h2>Playcalling</h2>
<div class="left play_title">Offense:</div><div class="left offense_play">TE Post</div>
<div class="left play_title">Defense:</div><div class="left defense_play">Overload Blitz</div>
</div>
 
Majestic Gent
offline
Link
 
Originally posted by Parab00n
So I can't call the function no matter what I do, but is there a way to just remove the style section that causes it to hide? The plays are loaded no matter what, you can delete the style="display: none; and the plays show up. Maybe calling JS functions like we are doing is blocked. This seems like it would take Bort a few minutes to change...

<div id="plays" style="display: none;">
<h2>Playcalling</h2>
<div class="left play_title">Offense:</div><div class="left offense_play">TE Post</div>
<div class="left play_title">Defense:</div><div class="left defense_play">Overload Blitz</div>
</div>


it's not blocked... but the issue is once the new page loads it's a new document so something has to tell the new document to remove display:none from the div which one would need access to the source, a parameter.
 
Parab00n
offline
Link
 
Originally posted by Majestic Gent
it's not blocked... but the issue is once the new page loads it's a new document so something has to tell the new document to remove display:none from the div which one would need access to the source, a parameter.


Yea I've tried using a .html file and calling it via Onload but no luck there either.
 
Stobie
MoD
offline
Link
 
The only thing I can think of is calling an iframe and having the parent frame send the commmand to the iframe.
 
Corndog
Admin
offline
Link
 
Seems a simple greasemonkey type script on a short delay could just call the function?
 
Corndog
Admin
offline
Link
 
// ==UserScript==
// @name My Fancy New Userscript
// @version 0.1
// @match http://glb2.warriorgeneral.com/game/replay/*
// ==/UserScript==

setTimeout(glb2.replay.togglePlays(), 50);
Edited by Corndog on Mar 30, 2015 00:03:48
 
Stobie
MoD
offline
Link
 
Originally posted by Corndog
// ==UserScript==
// @name My Fancy New Userscript
// @version 0.1
// @match http://glb2.warriorgeneral.com/game/replay/*
// ==/UserScript==

setTimeout(glb2.replay.togglePlays(), 50);


I was using Chrome so would have to switch to FF.
 
Page:
 


You are not logged in. Please log in if you want to post a reply.