Last active
August 29, 2015 14:08
-
-
Save grigory51/e6b04282cc1261b891fd to your computer and use it in GitHub Desktop.
https://gist.github.com/grigory51/305edb3cfdb295ffd013 для вставки в строку браузера
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){function count(){var cost=0;$(".train-info__route-info-holder b:nth-child(2n)")["each"](function (){var filteredPrice=$(this)["html"]()["replace"](/(\ \;| |руб)/g,"");var price=parseFloat(filteredPrice)||0;cost+=price;} );alert("Всего потрачено "+cost+" Р.");} ;function loop(){if(!$("#MoreOwner")["is"](":visible")&&!$("#WaitMsg")["is"](":visible")){count();} else {$("#MoreButton")["trigger"]("click");setTimeout(loop,1000);} ;} ;loop();}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment