Skip to content

Instantly share code, notes, and snippets.

View HUrquhart's full-sized avatar
🏠
Working from home

Harley Urquhart HUrquhart

🏠
Working from home
  • Goulburn NSW Australia
  • 18:26 (UTC +11:00)
View GitHub Profile
@HUrquhart
HUrquhart / AdmiralPaywallPrevention.js
Created June 14, 2022 12:02
Removes the popup from the admiral revenue recovery system (ANTI - ADBLOCKER)
// written by https://github.com/HUrquhart
document.getElementsByTagName('html')[0].style.overflow = "auto";
document.body.style.overflow = "auto";
body = document.getElementsByTagName('body')[0]
body.removeChild(body.lastChild);
@HUrquhart
HUrquhart / SaltyVideoSrcRandomiser.php
Last active January 23, 2019 11:24
A simple script to randomize the starting point in an embedded video
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>
function SaltyVideoSrcRandomiser(videoID, videoLength, minVideoStartSecond = 0){
// RNG
var Start = Math.floor((Math.random() * videoLength)+ minVideoStartSecond);