admin管理员组文章数量:1405379
Before anyone makes any assumptions, I am trying to bypass the forced timers on a course which is required to renew one of my certs. Frustratingly, the course is seemingly identical to the original and has me reading things I have already read before. Truly I wish I could skip it and just take the quizzes, which is where I need some help.
I have already tried to make sense of some of the other similar questions, but alas, I am no programmer.
Anyways, here is the bit of code that I think needs looked at, but hopefully someone can direct me as to if I need to provide something different.
<div class="t-col option-next">
<span id="PlaybuttonEn" style="display: none;"><a href="javascript:;" title="Next" class="btn ctrl"><span id="PlaybuttonEnText">NEXT</span><i class="glyphicon glyphicon-triangle-right"></i>
</a>
</span>
<span id="PlaybuttonDs" style="display: inline;">
<div id="scene-duration" class="timer-bar slideIn">
<div class="progress">
<div class="progress-bar" style="width: 48.5714%;"></div>
</div>
<label><span id="timer" title="Button is enabled" style="display: inline;">00:17</span>
</label>
</div>
<a href="javascript:;" title="" class="btn ctrl enabled" enabled="enabled"><span id="PlaybuttonDsText" title="ok">NEXT</span><i class="glyphicon glyphicon-triangle-right"></i></a>
</span>
</div>
Any help would be super appreciated. This has been a thorn in my side for a few hours now.
Before anyone makes any assumptions, I am trying to bypass the forced timers on a course which is required to renew one of my certs. Frustratingly, the course is seemingly identical to the original and has me reading things I have already read before. Truly I wish I could skip it and just take the quizzes, which is where I need some help.
I have already tried to make sense of some of the other similar questions, but alas, I am no programmer.
Anyways, here is the bit of code that I think needs looked at, but hopefully someone can direct me as to if I need to provide something different.
<div class="t-col option-next">
<span id="PlaybuttonEn" style="display: none;"><a href="javascript:;" title="Next" class="btn ctrl"><span id="PlaybuttonEnText">NEXT</span><i class="glyphicon glyphicon-triangle-right"></i>
</a>
</span>
<span id="PlaybuttonDs" style="display: inline;">
<div id="scene-duration" class="timer-bar slideIn">
<div class="progress">
<div class="progress-bar" style="width: 48.5714%;"></div>
</div>
<label><span id="timer" title="Button is enabled" style="display: inline;">00:17</span>
</label>
</div>
<a href="javascript:;" title="" class="btn ctrl enabled" enabled="enabled"><span id="PlaybuttonDsText" title="ok">NEXT</span><i class="glyphicon glyphicon-triangle-right"></i></a>
</span>
</div>
Any help would be super appreciated. This has been a thorn in my side for a few hours now.
Share Improve this question edited Apr 3, 2017 at 23:44 Majid Nayyeri 2432 silver badges11 bronze badges asked Apr 3, 2017 at 23:20 insufferablyhelplessinsufferablyhelpless 211 gold badge1 silver badge3 bronze badges 12- Could you clarify the question? Do you need to go to the next page without waiting for the timer to count down to 0? Also, what browser are you using? What happens if you simply disable javascript? – Dan Chrostowski Commented Apr 3, 2017 at 23:24
- Also, maybe include a screen shot (you can upload to imgur) to get a better idea of what you're trying to do/bypass. – Dan Chrostowski Commented Apr 3, 2017 at 23:25
- Thank you for the response. Yes I need to get to the next page without waiting on the timer. I'm currently in Chrome. Disabling javascript keeps the page from loading, it seems. @DanChrostowski not sure how ments work on here yet. – insufferablyhelpless Commented Apr 3, 2017 at 23:27
- 1 Can you right click on the link that is disabled in chrome, choose Inspect, then in the resulting developer pane choose the Event Listeners tab located toward the bottom, then look for the click event as shown here: imgur./a/vU7ZA – Dan Chrostowski Commented Apr 3, 2017 at 23:48
- 1 And after you get that, click on the whatever_file.js link on the right hand side and paste the function which handles the click. Or better yet, if this is publicly accessible without a password just send the link. – Dan Chrostowski Commented Apr 3, 2017 at 23:50
2 Answers
Reset to default 1There is a chance that the timer is being controlled by either a setInterval
or a setTimeout
function.
If that is the case, for chrome, you can do Ctrl + Shift + I
to open your chrome dev tools. From there, navigate to your console and paste in:
// The multiple factor to speed up the intervals by
const speedup = 10;
// Create a backup of the set timeout function
const originalTime = window.setTimeout;
// Override the original set timout function
setTimeout = function(callback, millis) {
// Run the original function but with a modified delay
return originalTime(callback, millis/speedup);
}
// Do the same thing with the set interval function
const originalInt = window.setInterval;
setInterval = function(callback, millis) {
return originalInt(callback, millis/speedup);
}
Then do Ctrl + R
to reload the page then quickly click Enter
to run the code snippet before the page loads, overriding the intervals!
mate you forgot the / before "div" in a bunch of lines it should be </div>
same with "span" and everything else it should have </"whatever you are doing">
here is the slightly fixed code:
</div class="t-col option-next">
</span id="PlaybuttonEn" style="display: none;"><a href="javascript:;" title="Next" class="btn ctrl"><span id="PlaybuttonEnText">NEXT<span><i class="glyphicon glyphicon-triangle-right"></i>
</a>
</span>
</span id="PlaybuttonDs" style="display: inline;">
</div id="scene-duration" class="timer-bar slideIn">
</div class="progress">
</div class="progress-bar" style="width: 48.5714%;"><div>
</div>
</label><span id="timer" title="Button is enabled" style="display: inline;">00:17<span>
</label>
</div>
</a href="javascript:;" title="" class="btn ctrl enabled" enabled="enabled"><span id="PlaybuttonDsText" title="ok">NEXT<span></i class="glyphicon glyphicon-triangle-right"></i><a>
</span>
本文标签: Bypass or edit javascript countdown timerStack Overflow
版权声明:本文标题:Bypass or edit javascript countdown timer - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744287755a2598963.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论