Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: stop loading JS code from 3rd parties #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Magic Webstore</title>
<link rel="shortcut icon" type="image/png" href="favicon.png">
<script src="https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js"></script>
<script src="https://supertestnet.github.io/bitcoin-chess/js/qrcode.js"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="js/bitcoinjs-lib.js"></script>
<script src="js/qrcode.js"></script>
<script src="js/[email protected]"></script>
<script src="js/[email protected]"></script>
<script src="js/[email protected]"></script>
<script src="js/[email protected]"></script>
<style>
* {
box-sizing: border-box;
Expand Down
1 change: 1 addition & 0 deletions js/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).bech32=e()}}(function(){return function(){return function e(r,t,n){function o(i,c){if(!t[i]){if(!r[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(f)return f(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var l=t[i]={exports:{}};r[i][0].call(l.exports,function(e){return o(r[i][1][e]||e)},l,l.exports,e,r,t,n)}return t[i].exports}for(var f="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}}()({1:[function(e,r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bech32m=t.bech32=void 0;const n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={};for(let e=0;e<n.length;e++){const r=n.charAt(e);o[r]=e}function f(e){const r=e>>25;return(33554431&e)<<5^996825010&-(r>>0&1)^642813549&-(r>>1&1)^513874426&-(r>>2&1)^1027748829&-(r>>3&1)^705979059&-(r>>4&1)}function i(e){let r=1;for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<33||n>126)return"Invalid prefix ("+e+")";r=f(r)^n>>5}r=f(r);for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);r=f(r)^31&n}return r}function c(e,r,t,n){let o=0,f=0;const i=(1<<t)-1,c=[];for(let n=0;n<e.length;++n)for(o=o<<r|e[n],f+=r;f>=t;)f-=t,c.push(o>>f&i);if(n)f>0&&c.push(o<<t-f&i);else{if(f>=r)return"Excess padding";if(o<<t-f&i)return"Non-zero padding"}return c}function u(e){return c(e,8,5,!0)}function s(e){const r=c(e,5,8,!1);if(Array.isArray(r))return r}function l(e){const r=c(e,5,8,!1);if(Array.isArray(r))return r;throw new Error(r)}function d(e){let r;function t(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";const n=e.toLowerCase(),c=e.toUpperCase();if(e!==n&&e!==c)return"Mixed-case string "+e;const u=(e=n).lastIndexOf("1");if(-1===u)return"No separator character for "+e;if(0===u)return"Missing prefix for "+e;const s=e.slice(0,u),l=e.slice(u+1);if(l.length<6)return"Data too short";let d=i(s);if("string"==typeof d)return d;const h=[];for(let e=0;e<l.length;++e){const r=l.charAt(e),t=o[r];if(void 0===t)return"Unknown character "+r;d=f(d)^t,e+6>=l.length||h.push(t)}return d!==r?"Invalid checksum for "+e:{prefix:s,words:h}}return r="bech32"===e?1:734539939,{decodeUnsafe:function(e,r){const n=t(e,r);if("object"==typeof n)return n},decode:function(e,r){const n=t(e,r);if("object"==typeof n)return n;throw new Error(n)},encode:function(e,t,o){if(o=o||90,e.length+7+t.length>o)throw new TypeError("Exceeds length limit");let c=i(e=e.toLowerCase());if("string"==typeof c)throw new Error(c);let u=e+"1";for(let e=0;e<t.length;++e){const r=t[e];if(r>>5!=0)throw new Error("Non 5-bit word");c=f(c)^r,u+=n.charAt(r)}for(let e=0;e<6;++e)c=f(c);c^=r;for(let e=0;e<6;++e){const r=c>>5*(5-e)&31;u+=n.charAt(r)}return u},toWords:u,fromWordsUnsafe:s,fromWords:l}}t.bech32=d("bech32"),t.bech32m=d("bech32m")},{}]},{},[1])(1)});
Loading