diff --git a/.gitignore b/.gitignore index 763301f..dbc4d21 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -dist/ +dist/* +!dist/handwritingfy.script.iife.js node_modules/ \ No newline at end of file diff --git a/README.md b/README.md index 36657e5..8693516 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,7 @@ TODO: # Credit This chrome extension is inspred by [this repository](https://github.com/timqian/chart.xkcd). Credit to the author @timqian. + +# Other topics + +## How to publish a javascaript module diff --git a/dist/handwritingfy.script.iife.js b/dist/handwritingfy.script.iife.js new file mode 100644 index 0000000..2b55453 --- /dev/null +++ b/dist/handwritingfy.script.iife.js @@ -0,0 +1,5 @@ +(function(){"use strict";const r=()=>{var l=document.createElement("link");l.href="https://fonts.googleapis.com",l.rel="preconnect",document.head.appendChild(l);var e=document.createElement("link");e.href="https://fonts.gstatic.com",e.rel="preconnect",e.crossOrigin="true",document.head.appendChild(e);var a=document.createElement("link");a.href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Caveat:wght@400;500;600;700&family=Covered+By+Your+Grace&family=Dancing+Script:wght@400;500;600;700&family=Edu+VIC+WA+NT+Beginner:wght@400;500;600;700&family=Gloria+Hallelujah&family=Great+Vibes&family=Homemade+Apple&family=Mansalva&family=Nanum+Brush+Script&family=Nanum+Pen+Script&family=Nothing+You+Could+Do&family=Pacifico&family=Permanent+Marker&family=Reenie+Beanie&family=Rock+Salt&family=Satisfy&family=Shadows+Into+Light&family=Short+Stack&family=Splash&family=Square+Peg&family=Waiting+for+the+Sunrise&display=swap",a.rel="stylesheet",document.head.appendChild(a);var t=document.createElement("style");let m=` +@font-face { + font-family: 'xkcd'; + src: url('https://cdn.rawgit.com/ipython/xkcd-font/master/xkcd-script/font/xkcd-script.woff') format('woff'); +}`;t.appendChild(document.createTextNode(m)),document.head.appendChild(t)},c=l=>{var e=document.createElement("style");e.appendChild(document.createTextNode(`* {font-family: '${l}' !important; }`)),document.head.appendChild(e)},o=()=>{let l=document.querySelectorAll("svg"),e=document.createElementNS("http://www.w3.org/2000/svg","filter");e.setAttribute("id","displacementFilter");const a=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence");a.setAttribute("type","fractalNoise"),a.setAttribute("baseFrequency","0.05"),a.setAttribute("result","noise"),e.appendChild(a);const t=document.createElementNS("http://www.w3.org/2000/svg","feDisplacementMap");t.setAttribute("in2","noise"),t.setAttribute("in","SourceGraphic"),t.setAttribute("scale","5"),t.setAttribute("xChannelSelector","R"),t.setAttribute("yChannelSelector","G"),e.appendChild(t),l.forEach(n=>{n.appendChild(e);for(let i=0;iThe effect of handwritingfy margin: 0 auto; " > +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+
The effect of handwritingfy Sorry, your browser does not support inline SVG. - + diff --git a/package.json b/package.json index f921529..30203b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "handwritingfy", - "version": "1.0.0", + "version": "1.0.1", "author": "Tristan", "license": "MIT", "description": "A simple tool to make webpages seem handwritten!", @@ -28,4 +28,4 @@ "vite": "^3.0.0" }, "dependencies": {} -} \ No newline at end of file +}