This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const iframe = document.querySelector('.video-header .video-header__right>.content>div>iframe'); | |
const player = new Vimeo.Player(iframe); | |
const videoHalf = document.querySelector('.video-header .video-header__right'); | |
const startButton = document.getElementById('start-video'); | |
player.on('play', function() { | |
videoHalf.style.zIndex = 2; | |
}); | |
startButton.addEventListener('click', function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a shitty little function I wrote to delete old comments on old.reddit.com/user/username/comments | |
function delComment(num) { | |
var things = document.querySelectorAll('.thing'); | |
var thing = things[num]; | |
var delBtn = thing.querySelector('.del-button .togglebutton'); | |
delBtn.click(); | |
var yesBtn = thing.querySelector('.yes'); | |
yesBtn.click(); | |
var yesBtn = thing.querySelector('.yes'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## #ddev-generated | |
## Description: Start ddev for this project but first run the Docker vmnetd fix | |
## Usage: start-fix | |
## Example: ddev start-fix | |
sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/com.docker.vmnetd | |
sudo tee -a /Library/LaunchDaemons/com.docker.vmnetd.plist > /dev/null <<EOT | |
<?xml version="1.0" encoding="UTF-8"?> |