User:Ed6767/RedWarn QuickTemplate packInstall p9iMHMBTH6.js

/* ++ ++
 * Generated automatically.         |
 * DO NOT EDIT THIS FILE OR ADD TO  |
 * YOUR COMMON.JS FILE. DOING SO    |
 * WILL CAUSE SERIOUS ISSUES.       |
 * WILL CAUSE SERIOUS ISSUES.       |

Install script (c) Ed. E (User:Ed6767) - license: https://gitlab.com/redwarn/redwarn-web rw.ui.loadDialog.show("Installing..."); let packSource = JSON.parse(atob("eyJuYW1lIjoiUmVkV2FybiBFeHRVQiIsImNyZWF0ZWRCeSI6IkVkNjc2NyIsInRlbXBsYXRlcyI6W3sidGl0bGUiOiJZb3UgbWF5IGJlbmVmaXQgZnJvbSB1c2luZyBSZWRXYXJuIChJbnZpdGUgVFcgVXNlcikiLCJhYm91dCI6IkJhc2ljIHRlc3QgaW52aXRlICYgaW50cm9kdWN0aW9uIGZvciB1c2VycyB3aXRoIHR3aW5rbGUiLCJjb250ZW50IjoiPT0gWW91IG1heSBiZW5lZml0IGZyb20gdXNpbmcgUmVkV2FybiA9PVxuW1tGaWxlOlJlZFdhcm4gV29yZG1hcmsgKGZvciBicmlnaHQgYmFja2dyb3VuZHMpLnN2Z3xyaWdodHxmcmFtZWxlc3N8bGluaz1XaWtpcGVkaWE6UmVkV2Fybl1dXG5IZWxsbywge3tzdWJzdDpCQVNFUEFHRU5BTUV9fSEgSSdtIFtbVXNlcjp7e3N1YnN0OlJFVklTSU9OVVNFUn19fHt7c3Vic3Q6UkVWSVNJT05VU0VSfX1dXSwgYSBkZXZlbG9wZXIgZm9yIFJlZFdhcm4uIEkgbm90aWNlZCB5b3UgaGF2ZSBiZWVuIHVzaW5nIFR3aW5rbGUgYW5kIHdhcyB3b25kZXJpbmcgaWYgeW91J2QgbGlrZSB0byB0cnkgUmVkV2FybiwgYSBuZXcgbW9kZXJuIGFuZCB1c2VyIGZyaWVuZGx5IHRvb2wgc3BlY2lmaWNhbGx5IGRlc2lnbmVkIHRvIGltcHJvdmUgeW91ciBjb3VudG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l0IGlzIHZlcnkgaW1wb3J0YW50IHRvIHJlbWVtYmVyIHRoYXQgYmVoaW5kIGV2ZXJ5IGVkaXQgdGhlcmUgaXMgYSBodW1hbiwgYW5kIG92ZXJ1c2luZyBvbmUgcXVpY2sgcm9sbGJhY2sgcmVhc29uIChlc3BlY2lhbGx5IHdoZW4gdGhlIHJhdGlvbmFsZSBkb2VzIG5vdCBhcHBseSB0byB0aGF0IGVkaXQpLCBhbmQgY29uc2VxdWVudGx5IHRoZSBhdXRvd2FybmluZyBmZWF0dXJlJ3MgZGVmYXVsdCBVVyBzZWxlY3Rpb25zIGNhbiBkaXNjb3VyYWdlIGdvb2QgZmFpdGggZWRpdG9ycy4gUmVkV2FybiBpbmNsdWRlcyBtYW55IG90aGVyIHF1aWNrLXJvbGxiYWNrIHJlYXNvbnMgZm9yIHRoaXMgcmVhc29uLCBhbmQgaWYgeW91IGRvIG5vdCBmaW5kIG9uZSwgeW91IGFyZSBoaWdobHkgcmVjb21tZW5kZWQgdG8gdXNlIHRoZSBibHVlIHJvbGxiYWNrIGJ1dHRvbiBvciBncmVlbiByb2xsYmFjayBnb29kIGZhaXRoIGJ1dHRvbi4gU2VtaS1hdXRvbWF0ZWQgY291bnRlciB2YW5kYWxpc20gdG9vbHMgc3VjaCBhcyBSZWRXYXJuIGFyZSBleHRyZW1lbHkgcG93ZXJmdWwsIHNvIHBsZWFzZSBiZSBtb3JlIGNhcmVmdWwgaW4gZnV0dXJlLiBSZWdhcmRzLCB+fn5+In1dLCJwYWNrQ29kZSI6IkVkNjc2Ny9wOWlNSE1CVEg2In0=")); // Load source from currentpack rw.config.templatePacks.push(packSource); // Push into config rw.info.writeConfig(true, =>{ // save config   rw.ui.loadDialog.close;    rw.quickTemplate.packStore = []; // clear out packs    // Show success dialog    rw.ui.confirmDialog( "Pack installed!", "RELOAD PAGE", =>window.location.reload, "", =>{}, 0); }); //