2021-01-23 14:19:51 +00:00
|
|
|
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"index.js":[function(require,module,exports) {
|
2021-01-23 21:36:01 +00:00
|
|
|
var e=arguments[3];function n(e,n,o,t,r,i,s){try{var a=e[i](s),u=a.value}catch(c){return void o(c)}a.done?n(u):Promise.resolve(u).then(t,r)}function o(e){return function(){var o=this,t=arguments;return new Promise(function(r,i){var s=e.apply(o,t);function a(e){n(s,r,i,a,u,"next",e)}function u(e){n(s,r,i,a,u,"throw",e)}a(void 0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t="2.0.3";"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.styleSheets||(e.window={document:{styleSheets:[0]}});var r=window.document.styleSheets[0],i=[],s={rainbowMode:!0},a={rainbowMode:{enable:function(){i.push(r.insertRule(".messageContent-2qWWxC {\n background: repeating-linear-gradient(45deg, violet, indigo, blue, green, yellow, orange, red);\n -webkit-background-clip: text;\n color: transparent;\n background-size: 800% 800%;\n animation: rainbow 8s ease infinite;\n }",r.cssRules.length)),i.push(r.insertRule("code.inline {\n color: #fff;\n }",r.cssRules.length)),i.push(r.insertRule("@keyframes rainbow { \n 0%{background-position:0% 50%}\n 50%{background-position:100% 25%}\n 100%{background-position:0% 50%}\n }",r.cssRules.length))},disable:function(){for(var e=0;e<i.length;e++)r.deleteRule(i[e])}}},u=function(e){a[e].enable(),s[e]=!0},c=function(e){a[e].disable(),s[e]=!1},d=function(e,n){n?u(e):c(e)},g={goosemodHandlers:{onImport:function(){var e=o(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:goosemodScope.logger.debug("rainbowMode","Enabling Rainbow Tweaks");case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onLoadingFinished:function(){var e=o(regeneratorRuntime.mark(function e(){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n in s)!0===s[n]&&u(n);goosemodScope.settings.createItem("RainbowCord",["(v".concat(t,")"),{type:"header",text:"Themes"},{type:"toggle",text:"Rainbow Mode",subtext:"Messages are rainbow",onToggle:function(e){d("rainbowMode",e)},isToggled:function(){return s.rainbowMode}}]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onRemove:function(){var e=o(regeneratorRuntime.mark(function e(){var n,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n in s)!0===s[n]&&c(n);o=goosemodScope.settings.items.find(function(e){return"RainbowCord"===e[1]}),goosemodScope.settings.items.splice(goosemodScope.settings.items.indexOf(o),1);case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),logRegionColor:"black"}};exports.default=g;
|