-
Notifications
You must be signed in to change notification settings - Fork 82
/
tbn.js
1 lines (1 loc) · 2.38 KB
/
tbn.js
1
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}({16:function(e,t){["personal","function","favorite"].forEach(e=>{!function(e){let t=document.querySelector(`.cyxy-${e}`);t&&t.addEventListener("click",()=>{chrome.runtime.sendMessage({type:"clickCyxyBtn",btnName:e})})}(e)}),$(".cyxy-personal").on("mouseenter",function(){$("body").append(`<div class="cyxy-personal-hint cyxy-trs-target">${chrome.i18n.getMessage("logInOut")}</div>`),$(".cyxy-personal-hint").attr("style","transform: translateY(-50%) !important;")}),$(".cyxy-function").on("mouseenter",function(){$("body").append(`<div class="cyxy-function-hint cyxy-trs-target">${chrome.i18n.getMessage("funcOnOff")}</div>`),$(".cyxy-function-hint").attr("style","transform: translateY(-50%) !important;")}),$(".cyxy-favorite").on("mouseenter",function(){$("body").append(`<div class="cyxy-favorite-hint cyxy-trs-target">${chrome.i18n.getMessage("addFavorite")}</div>`),$(".cyxy-favorite-hint").attr("style","transform: translateY(-50%) !important;")}),$(".cyxy-video-trans").on("mouseenter",function(){$("body").append(`<div class="cyxy-video-hint cyxy-trs-target">${chrome.i18n.getMessage("videoTrans")}</div>`),$(".cyxy-video-hint").attr("style","transform: translateY(-50%) !important;")}),$(".cyxy-personal").on("mouseleave",function(){$(".cyxy-personal-hint").remove()}),$(".cyxy-function").on("mouseleave",function(){$(".cyxy-function-hint").remove()}),$(".cyxy-favorite").on("mouseleave",function(){$(".cyxy-favorite-hint").remove()}),$(".cyxy-video-trans").on("mouseleave",function(){$(".cyxy-video-hint").remove()})}});