Discussions » Creation Requests

How to bypass this simple countdown

§
Posted: 12.01.2016

How to bypass this simple countdown

Greetings everyone
I have no knowledge on javascript and I need your help to bypass this simple countdown. Thanks.

Here is the picture:
http://imgur.com/a918cM3

Site: http://djliker.com

CODE:
"
var seconds = 617;
function secondPassed() {
var minutes = Math.round((seconds - 30)/60);
var remainingSeconds = seconds % 60;
if (remainingSeconds < 10) {
remainingSeconds = "0" + remainingSeconds;
}
document.getElementById('countdown').innerHTML = "Next Submit: Wait " + minutes + ":" + remainingSeconds + " Seconds" ;
if (seconds <= 0) {
clearInterval(countdownTimer);
document.getElementById('countdown').innerHTML = "Next Submit: READY!";
} else {
seconds--;
}
}

var countdownTimer = setInterval('secondPassed()', 1000);
"

Deleted user 38339
§
Posted: 12.04.2016

This may not work, but it's worth trying.

Add this user script into Tampermonkey:

// ==UserScript==
// @name Bypass Wait Time
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Test
// @author Tom
// @match http://http://djliker.com/*
// @grant none
// @run-at document-end
// ==/UserScript==

(function() {
'use strict';

var seconds = 2;
})();

§
Posted: 12.04.2016

Hi, note that the match rule has a wrong duplicated http://. Use only http://djliker.com/*. Also note that you create a local scope inside the (function() { ... })(); block, so the local variables created is not the same as the global variable. You shoul use only seconds = 2; outside and whithin the local function declaration. View this example:

var seconds = 617;
console.log(seconds); // outputs: 617
(function() {
  'use strict';
  var seconds = 2;
  console.log(seconds); // outputs: 2
})();
console.log(seconds); // outputs: 617
seconds = 2; // <-- You should use only this sentence
console.log(seconds); // outputs: 2
Deleted user 38339
§
Posted: 13.04.2016

Thanks leoncastro.

Post reply

Sign in to post a reply.