Skip to content

Instantly share code, notes, and snippets.

View jjeff's full-sized avatar

Jeff Robbins jjeff

View GitHub Profile
@jjeff
jjeff / index.html
Created December 1, 2024 00:25
Electron BaseWindow Custom Context Menu Bug
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<h1>Right-Click to Crash Me</h1>
@jjeff
jjeff / index.html
Created November 30, 2024 23:29
Electron BaseWindow Context Menu Bug
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<h1>Right-Click to Crash Me</h1>
@jjeff
jjeff / Sortable.complete.esm.js
Last active July 30, 2022 20:03
Sortable.js MultiDrag PR
/**!
* Sortable 1.15.0
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
*/
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
@jjeff
jjeff / index.html
Created September 13, 2021 23:25
Electron Multi-Screen Window Placement Test
<!-- Empty -->
@jjeff
jjeff / AzProductBookmarklet.js
Created February 26, 2015 16:45
Bookmarklet to get highest resolution Amazon product image for product currently displayed in browser
// to create bookmarklet, use this next line as the bookmark URL (without the leading //)
// javascript:window.location.href%20=%20%27http://ec2.images-amazon.com/images/P/%27%20+%20location.pathname.match(/[0-9A-Z]{10}/)[0]%20+%20%27.01._SCRM_.jpg%27;
// source
window.location.href = 'http://ec2.images-amazon.com/images/P/' + location.pathname.match(/[0-9A-Z]{10}/)[0] + '.01._SCRM_.jpg';