ModuleBuilder/dist/module/Better NSFW.js
2021-01-23 21:36:01 +00:00

3 lines
No EOL
4.1 KiB
JavaScript

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) {
"use strict";function e(e,n,r,t,o,a,p){try{var i=e[a](p),c=i.value}catch(s){return void r(s)}i.done?n(c):Promise.resolve(c).then(t,o)}function n(n){return function(){var r=this,t=arguments;return new Promise(function(o,a){var p=n.apply(r,t);function i(n){e(p,o,a,i,c,"next",n)}function c(n){e(p,o,a,i,c,"throw",n)}i(void 0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r,t,o,a="1.0.2",p={goosemodHandlers:{onImport:function(){var e=n(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(r=document.createElement("style")).appendChild(document.createTextNode('.chat-3bRxxu.nsfw .imageWrapper-2p5ogY {\n position: relative;\n }\n .chat-3bRxxu.nsfw .imageWrapper-2p5ogY.embedWrapper-lXpS3L:hover::after, .chat-3bRxxu.nsfw .imageWrapper-2p5ogY .wrapper-2TxpI8:hover::after, .chat-3bRxxu.nsfw .imageWrapper-2p5ogY.embedThumbnail-2Y84-K:hover::after {\n display: none;\n }\n .chat-3bRxxu.nsfw .imageWrapper-2p5ogY.embedWrapper-lXpS3L::after, .chat-3bRxxu.nsfw .imageWrapper-2p5ogY .wrapper-2TxpI8.wrapperPaused-19pWuK::after, .chat-3bRxxu.nsfw .imageWrapper-2p5ogY.embedThumbnail-2Y84-K::after {\n content: "NSFW";\n position: absolute;\n display: block;\n left: 50%;\n top: 50%;\n background-color: rgb(240, 71, 71);\n color: #dcddde;\n font-size: 15px;\n font-weight: 600;\n padding: 8px 12px;\n border-radius: 20px;\n letter-spacing: 0.5px;\n transform: translate(-50%, -50%);\n }\n .chat-3bRxxu.nsfw .wrapper-2TxpI8.wrapperPaused-19pWuK:hover::after {\n display: none;\n }\n .chat-3bRxxu.nsfw .imageWrapper-2p5ogY img, .chat-3bRxxu.nsfw .embedVideo-3nf0O9 video, .chat-3bRxxu.nsfw .video-8eMOth {\n filter: blur(20px);\n position: relative;\n }\n .chat-3bRxxu.nsfw .imageWrapper-2p5ogY img:hover, .chat-3bRxxu.nsfw .embedVideo-3nf0O9 video:hover, .chat-3bRxxu.nsfw .video-8eMOth:hover {\n filter: none;\n }\n .chat-3bRxxu.nsfw .wrapperControlsHidden-35Gtol video {\n filter: none;\n }\n ')),document.head.appendChild(r),function e(){try{var n=goosemodScope.webpackModules.findByProps;o=goosemodScope.patcher.patch(goosemodScope.reactUtils.getOwnerInstance(document.querySelector(".".concat(n("chat").chat))).constructor.prototype,"render",function(e,r){var t;return n("getChannel").getChannel(null===(t=r.props.children[1].props.children[0])||void 0===t?void 0:t.props.channelId).nsfw&&(r.props.children[1].props.className+=" nsfw"),r})}catch(r){t=setTimeout(e,500)}}();case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),onRemove:function(){var e=n(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.remove(),clearTimeout(t);try{o()}catch(n){}case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}};exports.default=p;
},{}]},{},["index.js"], null);parcelRequire('index.js').default