Skip to content

Instantly share code, notes, and snippets.

View panther7's full-sized avatar
🦊

Filip Mösner panther7

🦊
  • Seznam.cz, a.s.
  • Polná
View GitHub Profile
@panther7
panther7 / index.html
Created August 26, 2025 11:24
will-download hostWebContetns null
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Download Test</title>
</head>
<body>
<button id="downloadBtn">download</button>
@panther7
panther7 / index.html
Created August 12, 2025 12:12
Circular Sentry issue
<!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>Hello World!</h1>
@panther7
panther7 / index.html
Created August 12, 2025 09:50
print certificate updates
<!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>Hello World!</h1>
@panther7
panther7 / index.html
Created July 11, 2025 15:07
useragent sometimes different
<!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>Hello World!</h1>
@panther7
panther7 / main.js
Created July 10, 2025 12:46
PDF partition issue
// Modules to control application life and create native browser window
const { app, BrowserWindow } = require('electron')
const path = require('node:path')
function createWindow (partition = '') {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
@panther7
panther7 / main.js
Created April 9, 2025 13:05
Cert error
// Modules to control application life and create native browser window
const { app, BrowserWindow, WebContentsView } = require('electron')
function createWindow () {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 1000,
height: 800
})
@panther7
panther7 / index.html
Created April 8, 2025 15:40
Test postMessage
<button id=testButton>TEST</button>
<script>
testButton.onclick = () => {
window.postMessage({
command: "sbrowser-loggedAccount",
});
}
</script>
@panther7
panther7 / index.html
Created March 25, 2025 09:36
Restore navigation history didn't use custom userAgent from session
<!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>Hello World!</h1>