Skip to content

Instantly share code, notes, and snippets.

View pale2hall's full-sized avatar
💻
Doing @tboltusa stuff!

Vince Pale pale2hall

💻
Doing @tboltusa stuff!
View GitHub Profile
@pale2hall
pale2hall / open-owl-imgs.bm.js
Created June 21, 2023 16:52
Open OWL Carousel Images in Tabs Bookmarklet
javascript:(function() {const owlItems = document.querySelectorAll('.owl-carousel .owl-item .carousel-item a');owlItems.forEach(item => { const onclickString = item.getAttribute('onclick'); const imageURL = onclickString.match(/window\.open\('(.+?)%27\)/)[1]; window.open(imageURL, %27_blank%27);});})();
# Classic Rock
"The Rolling Stones",
"Led Zeppelin",
"The Beatles",
"Pink Floyd",
"Queen",
"Aerosmith",
"AC/DC",
"The Who",
"Eagles",
@pale2hall
pale2hall / bookmarklet.js
Created May 11, 2023 15:32
Bookmarklet to Download first scans / photos from PSA
javascript:(function() {
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
const getCSVContent = (rows) => {
let csvContent = "Line Number,Item Number,Cert Number,Front Pic,Back Pic\n";
rows.forEach(row => {
csvContent += `${row.lineNumber},${row.itemNumber},${row.certNumber},${row.frontImage},${row.backImage}\n`;
});
return csvContent;
};
const downloadCSV = (csvContent, fileName) => {
@pale2hall
pale2hall / eedist-hide-bought.js
Created April 20, 2023 15:16
hide bought on eedistribution
javascript: (function() {
const orderedTables = document.querySelectorAll('img[src="https://www.eedistribution.com/images/sitewide/check_mark.jfif"]');
orderedTables.forEach(img => {
const table = img.closest('table[width="96%"]');
if (table) {
table.style.opacity = '0.3';
table.addEventListener('mouseover', () => table.style.opacity = '1');
table.addEventListener('mouseout', () => table.style.opacity = '0.3');
}
});
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 1 1000 1000 382 Mar 1 10:07 /data'
[init] Resolved version given LATEST into 1.16.5
[init] Resolving type given PAPER
[init] Removing old PaperMC versions ...
[init] Downloading PaperMC 1.16.5 (build 505) ...
[init] server.properties already created, skipping
[init] Checking for JSON files.
[init] Setting initial memory to 2G and max to 2G
[init] Using Aikar's flags
developer "1";
con_filter_text "Damage given to";
con_filter_enable "2";
developer "1";con_filter_text "Damage given to";con_filter_enable "2";
/*Add 15 second skip ahead button to NBC Sports Gold streaming and SloMo Toggle! Paste into console*/
$('app-play-pause-button').after('<button id="skipAhead" style="margin: 0; height: 2em; vertical-align: middle; padding-bottom: 34px; background-color: rgba(0,0,0,0); color: white; border: none;">+15s</button>');
$('#skipAhead').click(function(){var vid = $.find('video'); vid[0].currentTime = vid[0].currentTime + 15;});
$('#skipAhead').after('<button id="sloMo" style="margin: 0; height: 2em; vertical-align: middle; padding-bottom: 34px; background-color: rgba(0,0,0,0); color: white; border: none;">SloMo</button>');
$('#sloMo').click(function(){var vid = $.find('video'); var speed = vid[0].playbackRate; if(speed == 1) vid[0].playbackRate = .1; else vid[0].playbackRate = 1;});
#!/bin/bash
echo "TBolt USA Support"
echo ""
echo "My Local IP Address:"
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
#ifconfig | grep -o "inet 192"
echo ""
echo ""
echo "My Public IP Address:"
wget -q -O- ip.pale.io
@pale2hall
pale2hall / freeze.css
Last active March 7, 2019 22:10
Freeze your own PC with CSS!
/* Tested in Chrome 72 on 2018 MacBook Pro 15" with i7 and 16GB Ram */
*{
opacity:.97;
transition: all 3s;
font-family:comic sans ms, comic sans, cursive!important;
padding:1em;
margin:1em;
filter: saturate(80%);
display:inline-block!important;
@pale2hall
pale2hall / bs4-breakpoint-check.html
Created January 14, 2019 18:01
Figure out what breakpoint is currently being displayed in Bootstrap 4
<div class="alert alert-success d-none d-sm-block d-md-none"> SM </div>
<div class="alert alert-success d-none d-md-block d-lg-none"> MD </div>
<div class="alert alert-success d-none d-lg-block d-xl-none"> LG </div>
<div class="alert alert-success d-none d-xl-block"> XL </div>