Skip to content

Instantly share code, notes, and snippets.

View patocl's full-sized avatar

Hector Patricio Gonzalez Palaivicino patocl

View GitHub Profile
@patocl
patocl / PluralsightAutoclick.js
Created November 30, 2024 11:26
PluralSight Auto Play Behavior
const autoClickButton = (xpath) => {
// Checks if an element is visible on the page.
const isVisible = (element) => {
const style = window.getComputedStyle(element);
return style.display !== "none" && style.visibility !== "hidden" && style.opacity !== "0";
};
// Set up a MutationObserver to monitor DOM changes.
const observer = new MutationObserver(() => {
const button = document.evaluate(
@patocl
patocl / BpAppServerSetup.ps1
Last active June 6, 2018 14:00
Test Script To Create a Network Resource
# Copyright (c) Avanade Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
net use Z: \\avarpainstallers.file.core.windows.net\rpainstallers /u:AZURE\avarpainstallers 809m8umx78gpz7E5YkbjNf4Os+owx7Ej5MbPOY4UbiNwKqSK9D70q8PacVySAhh0Jnz46NixhcTqNsckc/vtGw==