Skip to content

Instantly share code, notes, and snippets.

@harryfear
harryfear / Click to read aloud (en-US).bookmarklet.js
Last active March 23, 2024 10:03 — forked from mimonelu/gist:a08f1aeab49dc760a14a43047473643b
読み上げブックマークレット
javascript:window.onmousemove=function(e){e.target.style.outline="2px #f00 solid";};window.onmouseout=function(e){e.target.style.outline="none";};window.onclick=function(e){var t=e.target.innerText,s=new SpeechSynthesisUtterance(t);console.log(t);s.lang="en-UK";s.pitch=1;s.rate=0.999;speechSynthesis.speak(s);};void(0);
@harryfear
harryfear / PayPalFeeCalculator.js
Created January 10, 2024 23:39
A versatile JavaScript tool for calculating PayPal transaction fees, supporting UK, EEA, and worldwide transactions with both forward and reverse fee calculations
/*
PayPal Fee Calculator - Accurate and Comprehensive
Last updated: 10 January 2024
0 x-border fees for UK-UK
1.29 x-border fees from EEA to UK
1.99 x-border fees from Rest of World to UK
This script is an essential tool for anyone dealing with PayPal transactions, particularly those who need to calculate fees for various types of international transactions. Whether you are a freelancer, running an online business, or simply need to manage personal transactions, this calculator is designed to make your financial planning easier and more precise.
Features:
// Install here: https://chriszarate.github.io/bookmarkleter/
// 🪃 Email the current open page to yourself as a link via programatic mailto invocation
javascript:(function() {
var pageTitle = encodeURIComponent(document.title);
var pageUrl = encodeURIComponent(window.location.href);
var emailAddress = 'sjobs@apple.com';
var subject = 'Note to self (' + pageTitle + ')';
var body = pageTitle + '%0A%0A' + pageUrl;
var mailtoLink = 'mailto:' + emailAddress + '?subject=' + subject + '&body=' + body;
<!DOCTYPE html>
<html>
<head>
<title>Fuel Usage and Trip Cost Calculator</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="p-3">
<h1 class="mb-3">Fuel Usage and Trip Cost Calculator</h1>
(function () {
// Install here: https://chriszarate.github.io/bookmarkleter/
// https://chat.openai.com/c/03d8944a-e0a4-4c8f-9074-037ab2497483
// https://www.bionize.app/
// https://chrome.google.com/webstore/detail/hyper-bold/bjicoipahmlimcmjoejgaoneibennoab
// https://stephanango.com/tidy
var readabilityTarget = 'div[id^="readability-"]';