Element -- selects all h2 elements on the page
h2 {
foo: bar;| // ==UserScript== | |
| // @name Add Saved Items to Cart | |
| // @namespace https://gist.github.com/beporter/ce76204bcba35d9edb66b395bb5e9305 | |
| // @version 0.5 | |
| // @description Repeatedly refresh a given "saved items" page (Amazon, Walmart, BestBuy), look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success. | |
| // @author https://github.com/beporter | |
| // @match https://www.amazon.com/gp/registry/wishlist/* | |
| // @match https://www.amazon.com/hz/wishlist/ls/* | |
| // @match https://www.bestbuy.com/cart | |
| // @match https://www.bestbuy.com/site/customer/lists/manage/saveditems |
| #!/bin/bash | |
| set -eu | |
| set -o pipefail | |
| dns_server=172.24.100.250 | |
| client_ip=$1 | |
| psk=$(wg genpsk) | |
| client_privkey=$(wg genkey) | |
| client_pubkey=$(wg pubkey <<<"$client_privkey") |
| # Run the last command as root | |
| sudo !! | |
| # Serve current directory tree at http://$HOSTNAME:8000/ | |
| python -m SimpleHTTPServer | |
| # Save a file you edited in vim without the needed permissions | |
| :w !sudo tee % | |
| # change to the previous working directory | |
| cd - | |
| # Runs previous command but replacing | |
| ^foo^bar |
| // ==UserScript== | |
| // @name Steam Queue Auto Discoverer | |
| // @namespace xpaw_steam_quick_queue | |
| // @version 2.0.1 | |
| // @description Discover the Steam queue three times to get the sale cards | |
| // @match http://store.steampowered.com/explore* | |
| // @grant none | |
| // ==/UserScript== | |
| var DiscoveryQueueModal, GenerateQueue = function( queueNumber ) |
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |