Skip to content

Instantly share code, notes, and snippets.

View jimboobrien's full-sized avatar

Jimobrien jimboobrien

View GitHub Profile
@jimboobrien
jimboobrien / svg-cleanup.js
Created May 22, 2019 15:16 — forked from nt1m/svg-cleanup.js
svg-cleanup.js
// WIP, most of this doesn't work
var svgns = "http://www.w3.org/2000/svg";
var banned = {
namespaces: ["sketch", "illustrator", "sopodi", "inkscape"],
tags: ["title", "desc"],
tagsIfEmpty: ["defs", "g", "style"],
attributes: ["enable-background", "xml:space", "version"]
};
var invisibleShapesData = {
{"lastUpload":"2021-03-24T13:58:30.335Z","extensionVersion":"v3.4.3"}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<pre class="root">
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.