Skip to content

Instantly share code, notes, and snippets.

View limitedeternity's full-sized avatar
🔭
Ищу смыслы

Vyacheslav Bespalov limitedeternity

🔭
Ищу смыслы
View GitHub Profile
@limitedeternity
limitedeternity / yt_repeat.js
Last active September 1, 2023 13:53
Repeat YouTube video automatically
(async () => {
while (true) {
let el = document.querySelector('button[data-title-no-tooltip="Повторить"]');
if (el) {
let evt = new Event("click");
el.dispatchEvent(evt);
} else {
await new Promise(resolve => setTimeout(resolve, 2000));
}
@limitedeternity
limitedeternity / IPSecVPN-Solus.sh
Created June 10, 2018 10:46
IPSecVPN network manager for Solus
git clone https://github.com/xelerance/xl2tpd.git
cd xl2tpd/
make
sudo make install
cd ../
wget https://download.strongswan.org/strongswan-5.7.0dr1.tar.bz2
tar xvf strongswan-5.7.0dr1.tar.bz2
function addXMLRequestCallback(callback) {
var oldSend, i;
if (XMLHttpRequest.callbacks) {
XMLHttpRequest.callbacks.push(callback);
} else {
XMLHttpRequest.callbacks = [callback];
oldSend = XMLHttpRequest.prototype.send;
@limitedeternity
limitedeternity / wget-recursive-filedump.sh
Last active August 1, 2019 10:30
Bash-скрипт для дампа файлопомоек
#!/usr/bin/env bash
link=$(zenity --entry --text 'Please enter link:') || exit 0
wget -m -np -c -R "index.html*" "$link"
/*
=============
What is this?
=============
This code, when invoked, will:
- Reveal all hidden fields,
- Unlock all disabled fields,
- Convert all option, radio, and checkbox fields to editable text,