Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $('body, html').scrollTop($(document).height());
- $(".LikeLabel:contains('Мне нравится')").click();
- });
- var refreshIntervalId = setInterval(getLikeCount, 1000);
- function getLikeCount() {
- var countes = $(".LikeLabel:contains('Мне нравится')").length;
- if (countes === 0) {
- var nextvalid = $(".PageNav nav a:contains('Вперёд >')").length;
- if (nextvalid === 0) {
- return false;
- } {
- $(".PageNav nav a:contains('Вперёд >')").attr('id', 'nextpages');
- location.href = 'http://forum.arizona-rp.com/' + $('#nextpages').attr('href') + '';
- clearInterval(refreshIntervalId);
- }
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement