@mlikiowa/nanaeo 1.0.1712581733047 → 1.0.1721718565088

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"sources":["js/plugins/rightMenu.js"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_regeneratorRuntime","e","t","r","Object","n","hasOwnProperty","defineProperty","value","i","a","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","_defineProperty","obj","key","_toPropertyKey","_toPrimitive","toPrimitive","String","Number","asyncGeneratorStep","gen","reject","_next","_throw","info","error","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","RightMenu","rightMenuConfig","volantis","GLOBAL_CONFIG","plugins","rightmenu","messageRightMenu","message","enable","_rightMenuWrapper","document","getElementById","_rightMenuContent","_printHtml","_menuMusic","_readingModel","_readBkg","_menuLoad","querySelectorAll","_menuOption","querySelector","_searchWord","_copyText","_copyPaste","_copySelect","_copyCut","_copyHref","_copySrc","_copyImg","_openTab","_backward","_toggle","_forward","urlRegx","init","DOMController","visible","parentNode","removeChild","readBkg","createElement","className","id","window","body","appendChild","initEvent","oncontextmenu","event","ctrlKey","offsetWidth","hideMenu","popMenu","stopPropagation","preventDefault","removeEventListener","addEventListener","onclick","RightMenuAplayer","aplayerBackward","aplayerToggle","aplayerForward","mouseClientX","clientX","mouseClientY","clientY","screenWidth","documentElement","clientWidth","screenHeight","clientHeight","setMenuItem","focus","style","zIndex","menuWidth","menuHeight","offsetHeight","showLeft","showTop","left","top","notice","showMessage","blur","console","NoticeRightMenu","localStorage","getItem","VolantisApp","icon","faicon","time","setItem","optionFlag","eventTarget","target","selectText","getSelection","toString","tagName","toLowerCase","inputStr","select","statrPos","selectionStart","endPos","selectionEnd","copyString","substring","readClipboard","text","insertAtCaret","eventHref","href","test","open","eventSrc","currentSrc","trimEnd","endsWith","writeClipImg","flag","OpenSearch","_printArticle","pathName","location","pathname","question","printHtml","readingModel","aplayer","APlayer","player","music_alwaysShow","status","ele","layout","includes","checkAPlayer","str","utilWriteClipText","messageCopyright","writeClipText","navigator","clipboard","writeText","input","setAttribute","result","execCommand","_ref","_callee","success","parentElement","data","blob","dom","textRange","selection","range","_context","customPicUrl","replace","old","fetch","write","ClipboardItem","t0","createTextRange","moveToElementText","createRange","selectNodeContents","removeAllRanges","addRange","_x","_x2","_x3","_callee2","_context2","permissions","query","state","readText","elemt","startPos","scrollTop","isReadModel","remove","setStyle","setTimeout","print","innerHTML","reload","ScrollReveal","clean","fadeToggle","toggleClass","option","backgroundColor","hasClass","destroy","freeze","requestAnimationFrame","readyState","pjax","send"],"mappings":"AAAA,aAEA,SAASA,QAAQC,GAAgC,OAAOD,QAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,QAAQC,EAAI,CAC7T,SAASK,sBAFTA,oBAAA,WAAA,OAAAC,CAAA,EAAA,IAAAC,EAAAD,EAAA,CAAA,EAAAE,EAAAC,OAAAL,UAAAM,EAAAF,EAAAG,eAAAX,EAAAS,OAAAG,gBAAA,SAAAL,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAK,KAAA,EAAAC,EAA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,UAAA,KAAAG,WAAAH,UAAA,GACdH,EAAG0D,WACHR,OAAOjC,SAASqC,cAAgB,WAC9B,OAAO,CACT,EACImC,GAAU5E,GAAkBmF,YAAYlF,QAAQ,OAAQ,aAC9D,EACA4C,SAAU1D,EAAG0D,SACb+E,aAAczI,EAAGyI,aAErB,CA5iBmB,GA8iBnBvP,OAAO+T,OAAO1M,WAEdE,SAASyM,uBAAsB,WACD,YAAxBjM,SAASkM,YACX5M,UAAUkC,OAEVhC,SAAS2M,KAAKC,MAAK,WACjB9M,UAAUmD,UACZ,KAEAzC,SAAS8C,iBAAiB,oBAAoB,WAC5CxD,UAAUkC,OAEVhC,SAAS2M,KAAKC,MAAK,WACjB9M,UAAUmD,UACZ,GACF,GAEJ","file":"../../../js/plugins/rightMenu.js","sourcesContent":["const RightMenu = (() => {\n const\n rightMenuConfig = volantis.GLOBAL_CONFIG.plugins.rightmenu,\n messageRightMenu = volantis.GLOBAL_CONFIG.plugins.message.enable && volantis.GLOBAL_CONFIG.plugins.message.rightmenu.enable;\n\n const\n fn = {},\n _rightMenuWrapper = document.getElementById('rightmenu-wrapper'),\n _rightMenuContent = document.getElementById('rightmenu-content'),\n _printHtml = document.getElementById('printHtml'),\n _menuMusic = document.getElementById('menuMusic'),\n _readingModel = document.getElementById('readingModel'),\n _readBkg = document.getElementById('read_bkg');\n\n const\n _menuLoad = document.querySelectorAll('.menuLoad-Content'),\n _menuOption = document.querySelector('.menu-Option'),\n _searchWord = document.querySelector('.menu-Option[data-fn-type=\"searchWord\"]'),\n _copyText = document.querySelector('.menu-Option[data-fn-type=\"copyText\"]'),\n _copyPaste = document.querySelector('.menu-Option[data-fn-type=\"copyPaste\"]'),\n _copySelect = document.querySelector('.menu-Option[data-fn-type=\"copySelect\"]'),\n _copyCut = document.querySelector('.menu-Option[data-fn-type=\"copyCut\"]'),\n _copyHref = document.querySelector('.menu-Option[data-fn-type=\"copyHref\"]'),\n _copySrc = document.querySelector('.menu-Option[data-fn-type=\"copySrc\"]'),\n _copyImg = document.querySelector('.menu-Option[data-fn-type=\"copyImg\"]'),\n _openTab = document.querySelector('.menu-Option[data-fn-type=\"openTab\"]'),\n _backward = document.querySelector('#menuMusic .backward'),\n _toggle = document.querySelector('#menuMusic .toggle'),\n _forward = document.querySelector('#menuMusic .forward');\n\n const urlRegx = /^((https|http)?:\\/\\/)+[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&_~`@[\\]\\':+!]*([^<>\\\"\\\"])*$/;\n\n fn.init = () => {\n DOMController.visible(_menuMusic, false);\n DOMController.visible(_menuOption, false);\n if (_readBkg) _readBkg.parentNode.removeChild(_readBkg);\n\n const readBkg = document.createElement(\"div\");\n readBkg.className = \"common_read_bkg common_read_hide\";\n readBkg.id = \"read_bkg\";\n window.document.body.appendChild(readBkg);\n }\n\n fn.initEvent = () => {\n window.document.oncontextmenu = (event) => {\n if (event.ctrlKey || document.body.offsetWidth <= 500) {\n fn.hideMenu();\n return true;\n }\n return fn.popMenu(event);\n }\n\n _rightMenuWrapper.oncontextmenu = (event) => {\n event.stopPropagation();\n event.preventDefault();\n return false;\n }\n\n window.removeEventListener('blur', fn.hideMenu);\n window.addEventListener('blur', fn.hideMenu);\n document.body.removeEventListener('click', fn.hideMenu);\n document.body.addEventListener('click', fn.hideMenu);\n\n if (_forward && _toggle && _forward) {\n _backward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerBackward();\n }\n _toggle.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerToggle();\n }\n _forward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerForward();\n }\n }\n }\n\n // 菜单位置设定\n fn.popMenu = (event) => {\n let mouseClientX = event.clientX;\n let mouseClientY = event.clientY;\n let screenWidth = document.documentElement.clientWidth || document.body.clientWidth;\n let screenHeight = document.documentElement.clientHeight || document.body.clientHeight;\n\n try {\n fn.setMenuItem(event);\n DOMController.visible(_rightMenuWrapper);\n _rightMenuWrapper.focus();\n _rightMenuWrapper.style.zIndex = '-2147483648';\n let menuWidth = _rightMenuContent.offsetWidth;\n let menuHeight = _rightMenuContent.offsetHeight;\n let showLeft = mouseClientX + menuWidth > screenWidth ? mouseClientX - menuWidth + 10 : mouseClientX;\n let showTop = mouseClientY + menuHeight > screenHeight ? mouseClientY - menuHeight + 10 : mouseClientY;\n showTop = mouseClientY + menuHeight > screenHeight && showTop < menuHeight && mouseClientY < menuHeight ?\n showTop + (screenHeight - menuHeight - showTop - 10) : showTop;\n _rightMenuWrapper.style.left = showLeft + \"px\";\n _rightMenuWrapper.style.top = showTop + \"px\";\n _rightMenuWrapper.style.zIndex = '2147483648';\n if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) fn.showMessage();\n } catch (error) {\n _rightMenuWrapper.blur();\n console.error(error);\n return true;\n }\n\n return false;\n }\n\n // 消息提示\n fn.showMessage = () => {\n const NoticeRightMenu = localStorage.getItem('NoticeRightMenu') === 'true';\n if (messageRightMenu && !NoticeRightMenu)\n VolantisApp.message('右键菜单', '唤醒原系统菜单请使用:<kbd>Ctrl</kbd> + <kbd>右键</kbd>', {\n icon: rightMenuConfig.faicon + ' fa-exclamation-square red',\n time: 9000\n }, () => {\n localStorage.setItem('NoticeRightMenu', 'true')\n });\n }\n\n // 菜单项设置\n fn.setMenuItem = (event) => {\n let optionFlag = false;\n const eventTarget = event.target;\n const selectText = window.getSelection().toString();\n DOMController.visible(_openTab, false); // 隐藏新标签页打开\n\n // 判断是否是输入框\n if (eventTarget.tagName.toLowerCase() === 'input' || eventTarget.tagName.toLowerCase() === 'textarea') {\n const inputStr = eventTarget.value;\n\n // 全选\n if (inputStr.length > 0) {\n DOMController.visible(_copySelect);\n _copySelect.onclick = () => {\n event.preventDefault();\n eventTarget.select();\n }\n } else {\n DOMController.visible(_copySelect, false);\n }\n\n // 剪切\n if (selectText) {\n DOMController.visible(_copyCut);\n _copyCut.onclick = () => {\n const statrPos = eventTarget.selectionStart;\n const endPos = eventTarget.selectionEnd;\n fn.copyString(selectText);\n eventTarget.value = inputStr.substring(0, statrPos) + inputStr.substring(endPos, inputStr.length);\n eventTarget.selectionStart = statrPos;\n eventTarget.selectionEnd = statrPos;\n eventTarget.focus();\n }\n } else {\n DOMController.visible(_copyCut, false);\n }\n\n // 粘贴\n fn.readClipboard().then(text => {\n // 如果剪切板存在内容\n if (!!text) {\n DOMController.visible(_copyPaste);\n _copyPaste.onclick = () => {\n fn.insertAtCaret(eventTarget, text);\n }\n } else {\n DOMController.visible(_copyPaste, false);\n }\n }).catch((err) => {\n console.error(err);\n DOMController.visible(_copyPaste, false);\n });\n } else {\n DOMController.visible(_copySelect, false);\n DOMController.visible(_copyPaste, false);\n DOMController.visible(_copyCut, false);\n }\n\n // 新标签打开链接\n const eventHref = eventTarget.href;\n if (!!eventHref && urlRegx.test(eventHref)) {\n optionFlag = true;\n DOMController.visible(_copyHref);\n DOMController.visible(_openTab);\n if (_copyHref) _copyHref.onclick = () => {\n fn.copyString(eventHref);\n }\n _openTab.onclick = () => {\n window.open(eventHref);\n }\n } else {\n DOMController.visible(_copyHref, false);\n }\n\n // 新标签打开图片 & 复制图片链接\n const eventSrc = eventTarget.currentSrc;\n if (!!eventSrc && urlRegx.test(eventSrc)) {\n optionFlag = true;\n DOMController.visible(_copySrc);\n DOMController.visible(_openTab);\n\n _copySrc.onclick = () => {\n fn.copyString(eventSrc);\n }\n\n _openTab.onclick = () => {\n window.open(eventSrc);\n }\n } else {\n DOMController.visible(_copySrc, false);\n }\n\n // 复制图片\n if (!!eventSrc && urlRegx.test(eventSrc) && eventSrc.trimEnd().endsWith('.png')) {\n optionFlag = true;\n DOMController.visible(_copyImg);\n\n _copyImg.onclick = () => {\n fn.writeClipImg(event, flag => {\n if (flag && messageRightMenu) VolantisApp.message('系统提示', '图片复制成功!', {\n icon: rightMenuConfig.faicon + ' fa-images'\n });\n }, (error) => {\n if (messageRightMenu) VolantisApp.message('系统提示', '复制失败:' + error, {\n icon: rightMenuConfig.faicon + ' fa-exclamation-square red'\n });\n })\n }\n } else {\n DOMController.visible(_copyImg, false);\n }\n\n // 复制文本\n if (selectText) {\n optionFlag = true;\n DOMController.visible(_copyText);\n DOMController.visible(_searchWord);\n\n _copyText.onclick = () => {\n fn.copyString(selectText);\n }\n\n !!_searchWord && (_searchWord.onclick = () => {\n OpenSearch(selectText);\n })\n } else {\n DOMController.visible(_copyText, false);\n DOMController.visible(_searchWord, false);\n }\n\n // 打印\n const _printArticle = document.querySelector('#post.article') || null;\n const pathName = window.location.pathname;\n if (!!_printArticle) {\n DOMController.visible(_printHtml);\n DOMController.visible(_readingModel);\n\n if (_printHtml) {\n _printHtml.onclick = () => {\n if (window.location.pathname === pathName) {\n const message = '是否打印当前页面?<br><em style=\"font-size: 80%\">建议打印时勾选背景图形</em><br>';\n if (messageRightMenu) VolantisApp.question('', message, {}, () => {\n fn.printHtml();\n })\n } else {\n fn.hideMenu();\n }\n }\n }\n\n if (_readingModel) {\n _readingModel.onclick = () => {\n if (window.location.pathname === pathName) {\n fn.readingModel();\n } else {\n fn.readingModel();\n }\n }\n }\n\n } else {\n DOMController.visible(_printHtml, false);\n DOMController.visible(_readingModel, false);\n }\n\n if (volantis.GLOBAL_CONFIG.plugins.aplayer.enable\n && typeof RightMenuAplayer !== 'undefined'\n && RightMenuAplayer.APlayer.player !== undefined) {\n if (rightMenuConfig.music_alwaysShow) {\n DOMController.visible(_menuMusic);\n } else if (RightMenuAplayer.APlayer.status === 'play' || RightMenuAplayer.APlayer.status === 'undefined') {\n optionFlag = true;\n DOMController.visible(_menuMusic);\n } else {\n DOMController.visible(_menuMusic, false);\n }\n } else {\n DOMController.visible(_menuMusic, false);\n }\n\n _menuLoad.forEach(ele => {\n DOMController.visible(ele, !optionFlag);\n })\n\n if (volantis.GLOBAL_CONFIG.plugins.aplayer.enable\n && rightMenuConfig.layout.includes('music')) {\n RightMenuAplayer.checkAPlayer();\n }\n }\n\n // 隐藏菜单\n fn.hideMenu = () => {\n DOMController.visible(_rightMenuWrapper, false);\n }\n\n // 复制字符串\n fn.copyString = (str) => {\n VolantisApp.utilWriteClipText(str)\n .then(() => {\n if (messageRightMenu) {\n VolantisApp.messageCopyright();\n }\n }).catch(e => {\n if (messageRightMenu) {\n VolantisApp.message('系统提示', e, {\n icon: rightMenuConfig.faicon + ' fa-exclamation-square red'\n });\n }\n })\n }\n\n // 写入文本到剪切板\n fn.writeClipText = (str) => {\n try {\n return navigator.clipboard\n .writeText(str)\n .then(() => {\n return Promise.resolve()\n })\n .catch(err => {\n return Promise.reject(err)\n })\n } catch (e) {\n const input = document.createElement('input');\n input.setAttribute('readonly', 'readonly');\n document.body.appendChild(input);\n input.setAttribute('value', str);\n input.select();\n try {\n let result = document.execCommand('copy')\n document.body.removeChild(input);\n if (!result || result === 'unsuccessful') {\n return Promise.reject('复制文本失败!')\n } else {\n return Promise.resolve()\n }\n } catch (e) {\n document.body.removeChild(input);\n return Promise.reject(\n '当前浏览器不支持复制功能,请检查更新或更换其他浏览器操作!'\n )\n }\n }\n }\n\n // 写入图片到剪切板\n fn.writeClipImg = async function (event, success, error) {\n const eventSrc = rightMenuConfig.customPicUrl.enable ?\n event.target.currentSrc.replace(rightMenuConfig.customPicUrl.old, rightMenuConfig.customPicUrl.new) :\n event.target.currentSrc;\n const parentElement = event.target.parentElement;\n try {\n const data = await fetch(eventSrc);\n const blob = await data.blob();\n await navigator.clipboard\n .write([\n new ClipboardItem({\n [blob.type]: blob\n })\n ]).then(() => {\n success(true);\n }, (e) => {\n console.error('图片复制失败:', e);\n error(e);\n });\n } catch (e) {\n const dom = document;\n try {\n if (dom.body.createTextRange) {\n const textRange = document.body.createTextRange();\n textRange.moveToElementText(parentElement);\n textRange.select();\n } else if (window.getSelection) {\n const selection = window.getSelection();\n const range = document.createRange();\n range.selectNodeContents(parentElement);\n selection.removeAllRanges();\n selection.addRange(range);\n }\n document.execCommand('copy');\n window.getSelection().removeAllRanges();\n success(false);\n } catch (e) {\n console.error(e);\n error('不支持复制当前图片!');\n }\n }\n }\n\n // 请求读取剪切板\n fn.readClipboard = async () => {\n const result = await navigator.permissions.query({\n name: 'clipboard-read'\n });\n if (result.state === 'granted' || result.state === 'prompt') {\n // 修改为 .read() 可以获取剪切板中的文字/图片\n // 返回的是 ClipboardItem\n return navigator.clipboard\n .readText()\n .then(text => text)\n .catch(err => Promise.reject(err));\n }\n return Promise.reject(result);\n }\n\n // 粘贴文本\n fn.insertAtCaret = (elemt, value) => {\n const startPos = elemt.selectionStart,\n endPos = elemt.selectionEnd;\n if (document.selection) {\n elemt.focus();\n var sel = document.selection.createRange();\n sel.text = value;\n elemt.focus();\n } else {\n if (startPos || startPos == '0') {\n var scrollTop = elemt.scrollTop;\n elemt.value = elemt.value.substring(0, startPos) + value + elemt.value.substring(endPos, elemt.value.length);\n elemt.focus();\n elemt.selectionStart = startPos + value.length;\n elemt.selectionEnd = startPos + value.length;\n elemt.scrollTop = scrollTop;\n } else {\n elemt.value += value;\n elemt.focus();\n }\n }\n }\n\n // 执行打印页面\n fn.printHtml = () => {\n if (volantis.isReadModel) fn.readingModel();\n DOMController.setAttribute('details', 'open', 'true');\n DOMController.remove('.cus-article-bkg');\n DOMController.remove('.iziToast-overlay');\n DOMController.remove('.iziToast-wrapper');\n DOMController.remove('.prev-next');\n DOMController.remove('footer');\n DOMController.remove('#l_header');\n DOMController.remove('#l_cover');\n DOMController.remove('#l_side');\n DOMController.remove('#comments');\n DOMController.remove('#s-top');\n DOMController.remove('#BKG');\n DOMController.remove('#rightmenu-wrapper');\n DOMController.remove('.nav-tabs');\n DOMController.remove('.parallax-mirror');\n DOMController.remove('.new-meta-item.share');\n DOMController.remove('div.footer');\n DOMController.setStyle('body', 'backgroundColor', 'unset');\n DOMController.setStyle('#l_main', 'width', '100%');\n DOMController.setStyle('#post', 'boxShadow', 'none');\n DOMController.setStyle('#post', 'background', 'none');\n DOMController.setStyle('#post', 'padding', '0');\n DOMController.setStyle('h1', 'textAlign', 'center');\n DOMController.setStyle('h1', 'fontWeight', '600');\n DOMController.setStyle('h1', 'fontSize', '2rem');\n DOMController.setStyle('h1', 'marginBottom', '20px');\n DOMController.setStyle('.tab-pane', 'display', 'block');\n DOMController.setStyle('.tab-content', 'borderTop', 'none');\n DOMController.setStyle('.highlight>table pre', 'whiteSpace', 'pre-wrap');\n DOMController.setStyle('.highlight>table pre', 'wordBreak', 'break-all');\n DOMController.setStyle('.fancybox img', 'height', 'auto');\n DOMController.setStyle('.fancybox img', 'weight', 'auto');\n\n setTimeout(() => {\n window.print();\n document.body.innerHTML = '';\n window.location.reload();\n }, 50);\n }\n\n // 阅读模式\n fn.readingModel = () => {\n if (typeof ScrollReveal === 'function') ScrollReveal().clean('#comments');\n DOMController.fadeToggle(document.querySelector('#l_header'))\n DOMController.fadeToggle(document.querySelector('footer'))\n DOMController.fadeToggle(document.querySelector('#s-top'))\n DOMController.fadeToggle(document.querySelector('.article-meta#bottom'))\n DOMController.fadeToggle(document.querySelector('.prev-next'))\n DOMController.fadeToggle(document.querySelector('#l_side'))\n DOMController.fadeToggle(document.querySelector('#comments'))\n\n DOMController.toggleClass(document.querySelector('#l_main'), 'common_read')\n DOMController.toggleClass(document.querySelector('#l_main'), 'common_read_main')\n DOMController.toggleClass(document.querySelector('#l_body'), 'common_read')\n DOMController.toggleClass(document.querySelector('#safearea'), 'common_read')\n DOMController.toggleClass(document.querySelector('#pjax-container'), 'common_read')\n DOMController.toggleClass(document.querySelector('#read_bkg'), 'common_read_hide')\n DOMController.toggleClass(document.querySelector('h1'), 'common_read_h1')\n DOMController.toggleClass(document.querySelector('#post'), 'post_read')\n DOMController.toggleClass(document.querySelector('#l_cover'), 'read_cover')\n DOMController.toggleClass(document.querySelector('.widget.toc-wrapper'), 'post_read')\n\n volantis.isReadModel = volantis.isReadModel === undefined ? true : !volantis.isReadModel;\n if (volantis.isReadModel) {\n const option = {\n backgroundColor: 'var(--color-read-post)',\n icon: rightMenuConfig.faicon + ' fa-book-reader',\n time: 5000\n }\n if (messageRightMenu) VolantisApp.message('系统提示', '阅读模式已开启,您可以点击屏幕空白处退出。', option);\n document.querySelector('#l_body').removeEventListener('click', fn.readingModel);\n document.querySelector('#l_body').addEventListener('click', (event) => {\n if (DOMController.hasClass(event.target, 'common_read')) {\n fn.readingModel();\n }\n });\n } else {\n document.querySelector('#l_body').removeEventListener('click', fn.readingModel);\n document.querySelector('#post').removeEventListener('click', fn.readingModel);\n }\n }\n\n return {\n init: (notice = false) => {\n fn.init();\n fn.initEvent();\n if (notice && messageRightMenu) VolantisApp.message('系统提示', '自定义右键注册成功。');\n },\n destroy: (notice = false) => {\n fn.hideMenu();\n window.document.oncontextmenu = () => {\n return true\n };\n if (notice && messageRightMenu) VolantisApp.message('系统提示', '自定义右键注销成功。');\n },\n hideMenu: fn.hideMenu,\n readingModel: fn.readingModel\n }\n})()\n\nObject.freeze(RightMenu);\n\nvolantis.requestAnimationFrame(() => {\n if (document.readyState !== 'loading') {\n RightMenu.init();\n\n volantis.pjax.send(() => {\n RightMenu.hideMenu();\n })\n } else {\n document.addEventListener(\"DOMContentLoaded\", function () {\n RightMenu.init();\n\n volantis.pjax.send(() => {\n RightMenu.hideMenu();\n })\n })\n }\n});\n"]}
1
+ {"version":3,"sources":["js/plugins/rightMenu.js"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_regeneratorRuntime","e","t","r","Object","n","hasOwnProperty","defineProperty","value","i","a","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","_defineProperty","_toPropertyKey","_toPrimitive","toPrimitive","String","Number","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","RightMenu","rightMenuConfig","volantis","GLOBAL_CONFIG","plugins","rightmenu","messageRightMenu","message","enable","fn","_rightMenuWrapper","document","getElementById","_rightMenuContent","_printHtml","_menuMusic","_readingModel","_readBkg","_menuLoad","querySelectorAll","_menuOption","querySelector","_searchWord","_copyText","_copyPaste","_copySelect","_copyCut","_copyHref","_copySrc","_copyImg","_openTab","_backward","_toggle","_forward","urlRegx","init","DOMController","visible","parentNode","removeChild","readBkg","createElement","className","id","window","body","appendChild","initEvent","oncontextmenu","event","ctrlKey","offsetWidth","hideMenu","popMenu","stopPropagation","preventDefault","removeEventListener","addEventListener","onclick","RightMenuAplayer","aplayerBackward","aplayerToggle","aplayerForward","mouseClientX","clientX","mouseClientY","clientY","screenWidth","documentElement","clientWidth","screenHeight","clientHeight","setMenuItem","focus","style","zIndex","menuWidth","menuHeight","offsetHeight","showLeft","showTop","left","top","notice","showMessage","error","blur","console","NoticeRightMenu","localStorage","getItem","VolantisApp","icon","faicon","time","setItem","optionFlag","eventTarget","target","selectText","getSelection","toString","tagName","toLowerCase","inputStr","select","statrPos","selectionStart","endPos","selectionEnd","copyString","substring","readClipboard","text","insertAtCaret","err","eventHref","href","test","open","eventSrc","currentSrc","trimEnd","endsWith","writeClipImg","flag","OpenSearch","_printArticle","pathName","location","pathname","question","printHtml","readingModel","aplayer","APlayer","player","undefined","music_alwaysShow","status","ele","layout","includes","checkAPlayer","str","utilWriteClipText","messageCopyright","writeClipText","navigator","clipboard","writeText","reject","input","setAttribute","result","execCommand","_ref","_callee","success","parentElement","data","blob","dom","textRange","selection","range","_context","customPicUrl","replace","old","fetch","write","ClipboardItem","t0","createTextRange","moveToElementText","createRange","selectNodeContents","removeAllRanges","addRange","_x","_x2","_x3","_callee2","_context2","permissions","query","state","readText","elemt","startPos","scrollTop","isReadModel","remove","setStyle","setTimeout","print","innerHTML","reload","ScrollReveal","clean","fadeToggle","toggleClass","option","backgroundColor","hasClass","destroy","freeze","requestAnimationFrame","readyState","pjax","send"],"mappings":"AAAA,aAEA,SAASA,QAAQC,GAAgC,OAAOD,QAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,QAAQC,EAAI,CAC7T,SAASK,sBAFTA,oBAAA,WAAA,OAAAC,CAAA,EAAA,IAAAC,EAAAD,EAAA,CAAA,EAAAE,EAAAC,OAAAL,UAAAM,EAAAF,EAAAG,eAAAX,EAAAS,OAAAG,gBAAA,SAAAL,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAK,KAAA,EAAAC,EAAA,mBAAAb,OAAAA,OAAA,CAAA,EAAAc,EAAAD,EAAAZ,UAAA,aAAAc,EAAAF,EAAAG,eAAA,kBAAAC,EAAAJ,EAAAK,aAAA,gBAAA,SAAAC,EAAAb,EAAAD,EAAAE,GAAA,OAAAC,OAAAG,eAAAL,EAAAD,EAAA,CAAAO,MAAAL,EAAAa,YAAA,EAAAC,cAAA,EAAAC,UAAA,IAAAhB,EAAAD,EAAA,CAAA,IAAAc,EAAA,CAAA,EAAA,GAAA,CAAA,MAAAb,GAAAa,EAAA,SAAAb,EAAAD,EAAAE,GAAA,OAAAD,EAAAD,GAAAE,CAAA,CAAA,CAAA,SAAAgB,EAAAjB,EAAAD,EAAAE,EAAAE,GAAA,IAAAI,EAAAR,GAAAA,EAAAF,qBAAAqB,EAAAnB,EAAAmB,EAAAV,EAAAN,OAAAiB,OAAAZ,EAAAV,WAAAY,EAAA,IAAAW,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a,CACxB,IAAMW,EAAS,CACbC,gBAAiB,yBACjBhH,KAAM3F,EAAgB4F,OAAS,kBAC/BC,KAAM,KAEJxF,GAAkBqF,YAAYpF,QAAQ,OAAQ,wBAAyBoM,GAC3EhM,SAASU,cAAc,WAAWmC,oBAAoB,QAAS/C,EAAG4H,cAClE1H,SAASU,cAAc,WAAWoC,iBAAiB,SAAS,SAACR,GACvDb,cAAcyK,SAAS5J,EAAMiD,OAAQ,gBACvCzF,EAAG4H,cAEP,GACF,MACE1H,SAASU,cAAc,WAAWmC,oBAAoB,QAAS/C,EAAG4H,cAClE1H,SAASU,cAAc,SAASmC,oBAAoB,QAAS/C,EAAG4H,aAEpE,EAEO,CACLlG,KAAM,WAAoB,IAAnBgD,EAAMvF,UAAA/B,OAAA,GAAA+B,UAAA,KAAA6I,WAAA7I,UAAA,GACXa,EAAG0B,OACH1B,EAAGsC,YACCoC,GAAU7E,GAAkBqF,YAAYpF,QAAQ,OAAQ,aAC9D,EACAuM,QAAS,WAAoB,IAAnB3H,EAAMvF,UAAA/B,OAAA,GAAA+B,UAAA,KAAA6I,WAAA7I,UAAA,GACda,EAAG2C,WACHR,OAAOjC,SAASqC,cAAgB,WAC9B,OAAO,CACT,EACImC,GAAU7E,GAAkBqF,YAAYpF,QAAQ,OAAQ,aAC9D,EACA6C,SAAU3C,EAAG2C,SACbiF,aAAc5H,EAAG4H,aAErB,CA5iBmB,GA8iBnB/O,OAAOyT,OAAO/M,WAEdE,SAAS8M,uBAAsB,WACD,YAAxBrM,SAASsM,YACXjN,UAAUmC,OAEVjC,SAASgN,KAAKC,MAAK,WACjBnN,UAAUoD,UACZ,KAEAzC,SAAS8C,iBAAiB,oBAAoB,WAC5CzD,UAAUmC,OAEVjC,SAASgN,KAAKC,MAAK,WACjBnN,UAAUoD,UACZ,GACF,GAEJ","file":"../../../js/plugins/rightMenu.js","sourcesContent":["const RightMenu = (() => {\n const\n rightMenuConfig = volantis.GLOBAL_CONFIG.plugins.rightmenu,\n messageRightMenu = volantis.GLOBAL_CONFIG.plugins.message.enable && volantis.GLOBAL_CONFIG.plugins.message.rightmenu.enable;\n\n const\n fn = {},\n _rightMenuWrapper = document.getElementById('rightmenu-wrapper'),\n _rightMenuContent = document.getElementById('rightmenu-content'),\n _printHtml = document.getElementById('printHtml'),\n _menuMusic = document.getElementById('menuMusic'),\n _readingModel = document.getElementById('readingModel'),\n _readBkg = document.getElementById('read_bkg');\n\n const\n _menuLoad = document.querySelectorAll('.menuLoad-Content'),\n _menuOption = document.querySelector('.menu-Option'),\n _searchWord = document.querySelector('.menu-Option[data-fn-type=\"searchWord\"]'),\n _copyText = document.querySelector('.menu-Option[data-fn-type=\"copyText\"]'),\n _copyPaste = document.querySelector('.menu-Option[data-fn-type=\"copyPaste\"]'),\n _copySelect = document.querySelector('.menu-Option[data-fn-type=\"copySelect\"]'),\n _copyCut = document.querySelector('.menu-Option[data-fn-type=\"copyCut\"]'),\n _copyHref = document.querySelector('.menu-Option[data-fn-type=\"copyHref\"]'),\n _copySrc = document.querySelector('.menu-Option[data-fn-type=\"copySrc\"]'),\n _copyImg = document.querySelector('.menu-Option[data-fn-type=\"copyImg\"]'),\n _openTab = document.querySelector('.menu-Option[data-fn-type=\"openTab\"]'),\n _backward = document.querySelector('#menuMusic .backward'),\n _toggle = document.querySelector('#menuMusic .toggle'),\n _forward = document.querySelector('#menuMusic .forward');\n\n const urlRegx = /^((https|http)?:\\/\\/)+[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&_~`@[\\]\\':+!]*([^<>\\\"\\\"])*$/;\n\n fn.init = () => {\n DOMController.visible(_menuMusic, false);\n DOMController.visible(_menuOption, false);\n if (_readBkg) _readBkg.parentNode.removeChild(_readBkg);\n\n const readBkg = document.createElement(\"div\");\n readBkg.className = \"common_read_bkg common_read_hide\";\n readBkg.id = \"read_bkg\";\n window.document.body.appendChild(readBkg);\n }\n\n fn.initEvent = () => {\n window.document.oncontextmenu = (event) => {\n if (event.ctrlKey || document.body.offsetWidth <= 500) {\n fn.hideMenu();\n return true;\n }\n return fn.popMenu(event);\n }\n\n _rightMenuWrapper.oncontextmenu = (event) => {\n event.stopPropagation();\n event.preventDefault();\n return false;\n }\n\n window.removeEventListener('blur', fn.hideMenu);\n window.addEventListener('blur', fn.hideMenu);\n document.body.removeEventListener('click', fn.hideMenu);\n document.body.addEventListener('click', fn.hideMenu);\n\n if (_forward && _toggle && _forward) {\n _backward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerBackward();\n }\n _toggle.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerToggle();\n }\n _forward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerForward();\n }\n }\n }\n\n // 菜单位置设定\n fn.popMenu = (event) => {\n let mouseClientX = event.clientX;\n let mouseClientY = event.clientY;\n let screenWidth = document.documentElement.clientWidth || document.body.clientWidth;\n let screenHeight = document.documentElement.clientHeight || document.body.clientHeight;\n\n try {\n fn.setMenuItem(event);\n DOMController.visible(_rightMenuWrapper);\n _rightMenuWrapper.focus();\n _rightMenuWrapper.style.zIndex = '-2147483648';\n let menuWidth = _rightMenuContent.offsetWidth;\n let menuHeight = _rightMenuContent.offsetHeight;\n let showLeft = mouseClientX + menuWidth > screenWidth ? mouseClientX - menuWidth + 10 : mouseClientX;\n let showTop = mouseClientY + menuHeight > screenHeight ? mouseClientY - menuHeight + 10 : mouseClientY;\n showTop = mouseClientY + menuHeight > screenHeight && showTop < menuHeight && mouseClientY < menuHeight ?\n showTop + (screenHeight - menuHeight - showTop - 10) : showTop;\n _rightMenuWrapper.style.left = showLeft + \"px\";\n _rightMenuWrapper.style.top = showTop + \"px\";\n _rightMenuWrapper.style.zIndex = '2147483648';\n if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) fn.showMessage();\n } catch (error) {\n _rightMenuWrapper.blur();\n console.error(error);\n return true;\n }\n\n return false;\n }\n\n // 消息提示\n fn.showMessage = () => {\n const NoticeRightMenu = localStorage.getItem('NoticeRightMenu') === 'true';\n if (messageRightMenu && !NoticeRightMenu)\n VolantisApp.message('右键菜单', '唤醒原系统菜单请使用:<kbd>Ctrl</kbd> + <kbd>右键</kbd>', {\n icon: rightMenuConfig.faicon + ' fa-exclamation-square red',\n time: 9000\n }, () => {\n localStorage.setItem('NoticeRightMenu', 'true')\n });\n }\n\n // 菜单项设置\n fn.setMenuItem = (event) => {\n let optionFlag = false;\n const eventTarget = event.target;\n const selectText = window.getSelection().toString();\n DOMController.visible(_openTab, false); // 隐藏新标签页打开\n\n // 判断是否是输入框\n if (eventTarget.tagName.toLowerCase() === 'input' || eventTarget.tagName.toLowerCase() === 'textarea') {\n const inputStr = eventTarget.value;\n\n // 全选\n if (inputStr.length > 0) {\n DOMController.visible(_copySelect);\n _copySelect.onclick = () => {\n event.preventDefault();\n eventTarget.select();\n }\n } else {\n DOMController.visible(_copySelect, false);\n }\n\n // 剪切\n if (selectText) {\n DOMController.visible(_copyCut);\n _copyCut.onclick = () => {\n const statrPos = eventTarget.selectionStart;\n const endPos = eventTarget.selectionEnd;\n fn.copyString(selectText);\n eventTarget.value = inputStr.substring(0, statrPos) + inputStr.substring(endPos, inputStr.length);\n eventTarget.selectionStart = statrPos;\n eventTarget.selectionEnd = statrPos;\n eventTarget.focus();\n }\n } else {\n DOMController.visible(_copyCut, false);\n }\n\n // 粘贴\n fn.readClipboard().then(text => {\n // 如果剪切板存在内容\n if (!!text) {\n DOMController.visible(_copyPaste);\n _copyPaste.onclick = () => {\n fn.insertAtCaret(eventTarget, text);\n }\n } else {\n DOMController.visible(_copyPaste, false);\n }\n }).catch((err) => {\n console.error(err);\n DOMController.visible(_copyPaste, false);\n });\n } else {\n DOMController.visible(_copySelect, false);\n DOMController.visible(_copyPaste, false);\n DOMController.visible(_copyCut, false);\n }\n\n // 新标签打开链接\n const eventHref = eventTarget.href;\n if (!!eventHref && urlRegx.test(eventHref)) {\n optionFlag = true;\n DOMController.visible(_copyHref);\n DOMController.visible(_openTab);\n if (_copyHref) _copyHref.onclick = () => {\n fn.copyString(eventHref);\n }\n _openTab.onclick = () => {\n window.open(eventHref);\n }\n } else {\n DOMController.visible(_copyHref, false);\n }\n\n // 新标签打开图片 & 复制图片链接\n const eventSrc = eventTarget.currentSrc;\n if (!!eventSrc && urlRegx.test(eventSrc)) {\n optionFlag = true;\n DOMController.visible(_copySrc);\n DOMController.visible(_openTab);\n\n _copySrc.onclick = () => {\n fn.copyString(eventSrc);\n }\n\n _openTab.onclick = () => {\n window.open(eventSrc);\n }\n } else {\n DOMController.visible(_copySrc, false);\n }\n\n // 复制图片\n if (!!eventSrc && urlRegx.test(eventSrc) && eventSrc.trimEnd().endsWith('.png')) {\n optionFlag = true;\n DOMController.visible(_copyImg);\n\n _copyImg.onclick = () => {\n fn.writeClipImg(event, flag => {\n if (flag && messageRightMenu) VolantisApp.message('系统提示', '图片复制成功!', {\n icon: rightMenuConfig.faicon + ' fa-images'\n });\n }, (error) => {\n if (messageRightMenu) VolantisApp.message('系统提示', '复制失败:' + error, {\n icon: rightMenuConfig.faicon + ' fa-exclamation-square red'\n });\n })\n }\n } else {\n DOMController.visible(_copyImg, false);\n }\n\n // 复制文本\n if (selectText) {\n optionFlag = true;\n DOMController.visible(_copyText);\n DOMController.visible(_searchWord);\n\n _copyText.onclick = () => {\n fn.copyString(selectText);\n }\n\n !!_searchWord && (_searchWord.onclick = () => {\n OpenSearch(selectText);\n })\n } else {\n DOMController.visible(_copyText, false);\n DOMController.visible(_searchWord, false);\n }\n\n // 打印\n const _printArticle = document.querySelector('#post.article') || null;\n const pathName = window.location.pathname;\n if (!!_printArticle) {\n DOMController.visible(_printHtml);\n DOMController.visible(_readingModel);\n\n if (_printHtml) {\n _printHtml.onclick = () => {\n if (window.location.pathname === pathName) {\n const message = '是否打印当前页面?<br><em style=\"font-size: 80%\">建议打印时勾选背景图形</em><br>';\n if (messageRightMenu) VolantisApp.question('', message, {}, () => {\n fn.printHtml();\n })\n } else {\n fn.hideMenu();\n }\n }\n }\n\n if (_readingModel) {\n _readingModel.onclick = () => {\n if (window.location.pathname === pathName) {\n fn.readingModel();\n } else {\n fn.readingModel();\n }\n }\n }\n\n } else {\n DOMController.visible(_printHtml, false);\n DOMController.visible(_readingModel, false);\n }\n\n if (volantis.GLOBAL_CONFIG.plugins.aplayer.enable\n && typeof RightMenuAplayer !== 'undefined'\n && RightMenuAplayer.APlayer.player !== undefined) {\n if (rightMenuConfig.music_alwaysShow) {\n DOMController.visible(_menuMusic);\n } else if (RightMenuAplayer.APlayer.status === 'play' || RightMenuAplayer.APlayer.status === 'undefined') {\n optionFlag = true;\n DOMController.visible(_menuMusic);\n } else {\n DOMController.visible(_menuMusic, false);\n }\n } else {\n DOMController.visible(_menuMusic, false);\n }\n\n _menuLoad.forEach(ele => {\n DOMController.visible(ele, !optionFlag);\n })\n\n if (volantis.GLOBAL_CONFIG.plugins.aplayer.enable\n && rightMenuConfig.layout.includes('music')) {\n RightMenuAplayer.checkAPlayer();\n }\n }\n\n // 隐藏菜单\n fn.hideMenu = () => {\n DOMController.visible(_rightMenuWrapper, false);\n }\n\n // 复制字符串\n fn.copyString = (str) => {\n VolantisApp.utilWriteClipText(str)\n .then(() => {\n if (messageRightMenu) {\n VolantisApp.messageCopyright();\n }\n }).catch(e => {\n if (messageRightMenu) {\n VolantisApp.message('系统提示', e, {\n icon: rightMenuConfig.faicon + ' fa-exclamation-square red'\n });\n }\n })\n }\n\n // 写入文本到剪切板\n fn.writeClipText = (str) => {\n try {\n return navigator.clipboard\n .writeText(str)\n .then(() => {\n return Promise.resolve()\n })\n .catch(err => {\n return Promise.reject(err)\n })\n } catch (e) {\n const input = document.createElement('input');\n input.setAttribute('readonly', 'readonly');\n document.body.appendChild(input);\n input.setAttribute('value', str);\n input.select();\n try {\n let result = document.execCommand('copy')\n document.body.removeChild(input);\n if (!result || result === 'unsuccessful') {\n return Promise.reject('复制文本失败!')\n } else {\n return Promise.resolve()\n }\n } catch (e) {\n document.body.removeChild(input);\n return Promise.reject(\n '当前浏览器不支持复制功能,请检查更新或更换其他浏览器操作!'\n )\n }\n }\n }\n\n // 写入图片到剪切板\n fn.writeClipImg = async function (event, success, error) {\n const eventSrc = rightMenuConfig.customPicUrl.enable ?\n event.target.currentSrc.replace(rightMenuConfig.customPicUrl.old, rightMenuConfig.customPicUrl.new) :\n event.target.currentSrc;\n const parentElement = event.target.parentElement;\n try {\n const data = await fetch(eventSrc);\n const blob = await data.blob();\n await navigator.clipboard\n .write([\n new ClipboardItem({\n [blob.type]: blob\n })\n ]).then(() => {\n success(true);\n }, (e) => {\n console.error('图片复制失败:', e);\n error(e);\n });\n } catch (e) {\n const dom = document;\n try {\n if (dom.body.createTextRange) {\n const textRange = document.body.createTextRange();\n textRange.moveToElementText(parentElement);\n textRange.select();\n } else if (window.getSelection) {\n const selection = window.getSelection();\n const range = document.createRange();\n range.selectNodeContents(parentElement);\n selection.removeAllRanges();\n selection.addRange(range);\n }\n document.execCommand('copy');\n window.getSelection().removeAllRanges();\n success(false);\n } catch (e) {\n console.error(e);\n error('不支持复制当前图片!');\n }\n }\n }\n\n // 请求读取剪切板\n fn.readClipboard = async () => {\n const result = await navigator.permissions.query({\n name: 'clipboard-read'\n });\n if (result.state === 'granted' || result.state === 'prompt') {\n // 修改为 .read() 可以获取剪切板中的文字/图片\n // 返回的是 ClipboardItem\n return navigator.clipboard\n .readText()\n .then(text => text)\n .catch(err => Promise.reject(err));\n }\n return Promise.reject(result);\n }\n\n // 粘贴文本\n fn.insertAtCaret = (elemt, value) => {\n const startPos = elemt.selectionStart,\n endPos = elemt.selectionEnd;\n if (document.selection) {\n elemt.focus();\n var sel = document.selection.createRange();\n sel.text = value;\n elemt.focus();\n } else {\n if (startPos || startPos == '0') {\n var scrollTop = elemt.scrollTop;\n elemt.value = elemt.value.substring(0, startPos) + value + elemt.value.substring(endPos, elemt.value.length);\n elemt.focus();\n elemt.selectionStart = startPos + value.length;\n elemt.selectionEnd = startPos + value.length;\n elemt.scrollTop = scrollTop;\n } else {\n elemt.value += value;\n elemt.focus();\n }\n }\n }\n\n // 执行打印页面\n fn.printHtml = () => {\n if (volantis.isReadModel) fn.readingModel();\n DOMController.setAttribute('details', 'open', 'true');\n DOMController.remove('.cus-article-bkg');\n DOMController.remove('.iziToast-overlay');\n DOMController.remove('.iziToast-wrapper');\n DOMController.remove('.prev-next');\n DOMController.remove('footer');\n DOMController.remove('#l_header');\n DOMController.remove('#l_cover');\n DOMController.remove('#l_side');\n DOMController.remove('#comments');\n DOMController.remove('#s-top');\n DOMController.remove('#BKG');\n DOMController.remove('#rightmenu-wrapper');\n DOMController.remove('.nav-tabs');\n DOMController.remove('.parallax-mirror');\n DOMController.remove('.new-meta-item.share');\n DOMController.remove('div.footer');\n DOMController.setStyle('body', 'backgroundColor', 'unset');\n DOMController.setStyle('#l_main', 'width', '100%');\n DOMController.setStyle('#post', 'boxShadow', 'none');\n DOMController.setStyle('#post', 'background', 'none');\n DOMController.setStyle('#post', 'padding', '0');\n DOMController.setStyle('h1', 'textAlign', 'center');\n DOMController.setStyle('h1', 'fontWeight', '600');\n DOMController.setStyle('h1', 'fontSize', '2rem');\n DOMController.setStyle('h1', 'marginBottom', '20px');\n DOMController.setStyle('.tab-pane', 'display', 'block');\n DOMController.setStyle('.tab-content', 'borderTop', 'none');\n DOMController.setStyle('.highlight>table pre', 'whiteSpace', 'pre-wrap');\n DOMController.setStyle('.highlight>table pre', 'wordBreak', 'break-all');\n DOMController.setStyle('.fancybox img', 'height', 'auto');\n DOMController.setStyle('.fancybox img', 'weight', 'auto');\n\n setTimeout(() => {\n window.print();\n document.body.innerHTML = '';\n window.location.reload();\n }, 50);\n }\n\n // 阅读模式\n fn.readingModel = () => {\n if (typeof ScrollReveal === 'function') ScrollReveal().clean('#comments');\n DOMController.fadeToggle(document.querySelector('#l_header'))\n DOMController.fadeToggle(document.querySelector('footer'))\n DOMController.fadeToggle(document.querySelector('#s-top'))\n DOMController.fadeToggle(document.querySelector('.article-meta#bottom'))\n DOMController.fadeToggle(document.querySelector('.prev-next'))\n DOMController.fadeToggle(document.querySelector('#l_side'))\n DOMController.fadeToggle(document.querySelector('#comments'))\n\n DOMController.toggleClass(document.querySelector('#l_main'), 'common_read')\n DOMController.toggleClass(document.querySelector('#l_main'), 'common_read_main')\n DOMController.toggleClass(document.querySelector('#l_body'), 'common_read')\n DOMController.toggleClass(document.querySelector('#safearea'), 'common_read')\n DOMController.toggleClass(document.querySelector('#pjax-container'), 'common_read')\n DOMController.toggleClass(document.querySelector('#read_bkg'), 'common_read_hide')\n DOMController.toggleClass(document.querySelector('h1'), 'common_read_h1')\n DOMController.toggleClass(document.querySelector('#post'), 'post_read')\n DOMController.toggleClass(document.querySelector('#l_cover'), 'read_cover')\n DOMController.toggleClass(document.querySelector('.widget.toc-wrapper'), 'post_read')\n\n volantis.isReadModel = volantis.isReadModel === undefined ? true : !volantis.isReadModel;\n if (volantis.isReadModel) {\n const option = {\n backgroundColor: 'var(--color-read-post)',\n icon: rightMenuConfig.faicon + ' fa-book-reader',\n time: 5000\n }\n if (messageRightMenu) VolantisApp.message('系统提示', '阅读模式已开启,您可以点击屏幕空白处退出。', option);\n document.querySelector('#l_body').removeEventListener('click', fn.readingModel);\n document.querySelector('#l_body').addEventListener('click', (event) => {\n if (DOMController.hasClass(event.target, 'common_read')) {\n fn.readingModel();\n }\n });\n } else {\n document.querySelector('#l_body').removeEventListener('click', fn.readingModel);\n document.querySelector('#post').removeEventListener('click', fn.readingModel);\n }\n }\n\n return {\n init: (notice = false) => {\n fn.init();\n fn.initEvent();\n if (notice && messageRightMenu) VolantisApp.message('系统提示', '自定义右键注册成功。');\n },\n destroy: (notice = false) => {\n fn.hideMenu();\n window.document.oncontextmenu = () => {\n return true\n };\n if (notice && messageRightMenu) VolantisApp.message('系统提示', '自定义右键注销成功。');\n },\n hideMenu: fn.hideMenu,\n readingModel: fn.readingModel\n }\n})()\n\nObject.freeze(RightMenu);\n\nvolantis.requestAnimationFrame(() => {\n if (document.readyState !== 'loading') {\n RightMenu.init();\n\n volantis.pjax.send(() => {\n RightMenu.hideMenu();\n })\n } else {\n document.addEventListener(\"DOMContentLoaded\", function () {\n RightMenu.init();\n\n volantis.pjax.send(() => {\n RightMenu.hideMenu();\n })\n })\n }\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["js/plugins/rightMenus.js"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_regeneratorRuntime","e","t","r","Object","n","hasOwnProperty","defineProperty","value","i","a","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","asyncGeneratorStep","gen","reject","_next","_throw","key","info","error","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","RightMenus","defaultEvent","defaultGroup","messageRightMenu","volantis","GLOBAL_CONFIG","plugins","message","enable","rightmenu","corsAnywhere","rightmenus","options","urlRegx","imgRegx","initialMenu","fun","init","pjax","send","hideMenu","isReadModel","readMode","readClipboard","_readClipboard","_callee","clipboardText","result","_context","navigator","permissions","query","t0","state","clipboard","readText","window","clipboardRead","writeClipText","text","writeText","writeClipImg","_writeClipImg","_callee2","link","success","image","_context2","Image","crossOrigin","addEventListener","canvas","document","createElement","context","getContext","width","height","drawImage","toBlob","blob","write","ClipboardItem","src","concat","_x","_x2","_x3","insertAtCaret","elemt","startPos","selectionStart","endPos","selectionEnd","selection","focus","createRange","scrollTop","substring","rightMenuConfig","_rightMenuWrapper","getElementById","_rightMenuContent","_rightMenuList","querySelectorAll","_rightMenuListWithHr","_readBkg","_menuMusic","_backward","querySelector","_toggle","_forward","globalData","mouseEvent","isInputBox","selectText","inputValue","isLink","linkUrl","isMediaLink","mediaLinkUrl","isImage","isArticle","pathName","isReadClipboard","isShowMusic","statusCheck","globalDataBackup","assign","initEvent","elementAppend","contextmenu","menuEvent","parentNode","removeChild","readBkg","className","id","body","appendChild","menuPosition","event","mouseClientX","clientX","mouseClientY","clientY","screenWidth","documentElement","clientWidth","screenHeight","clientHeight","style","display","menuControl","menuWidth","offsetWidth","menuHeight","offsetHeight","showLeft","showTop","left","top","notice","menuNotic","console","globalDataSet","item","nodeName","firstElementChild","groupName","getAttribute","itemEvent","articleShowLink","every","start","elementHrItem","hide","nextElementSibling","_volantis$GLOBAL_CONF","getSelection","toString","target","tagName","toLowerCase","href","test","currentSrc","location","pathname","aplayer","RightMenuAplayer","APlayer","player","musicAlwaysShow","status","oncontextmenu","ctrlKey","stopPropagation","preventDefault","removeEventListener","eventName","RightMenusFunction","debug","VolantisApp","icon","iconPrefix","time","onclick","aplayerBackward","aplayerToggle","aplayerForward","NoticeRightMenu","localStorage","getItem","displayMode","setItem","copyText","utilWriteClipText","messageCopyright","copyLink","copyAll","select","copyPaste","_callee3","_context3","copyCut","statrPos","inputStr","copyImg","hideMessage","printMode","question","printHtml","DOMController","setAttribute","removeList","setStyleList","setTimeout","print","innerHTML","reload","ScrollReveal","clean","fadeToggleList","toggleClassList","setStyle","backgroundColor","hasClass","freeze","requestAnimationFrame","readyState"],"mappings":"AAAA,aAEA,SAASA,QAAQC,GAAgC,OAAOD,QAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgB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ent: ['copyText', 'copyLink', 'copyPaste', 'copyAll', 'copyCut', 'copyImg', 'printMode', 'readMode'],\n defaultGroup: ['navigation', 'inputBox', 'seletctText', 'elementCheck', 'elementImage', 'articlePage'],\n messageRightMenu: volantis.GLOBAL_CONFIG.plugins.message.enable && volantis.GLOBAL_CONFIG.plugins.message.rightmenu.enable,\n corsAnywhere: volantis.GLOBAL_CONFIG.plugins.rightmenus.options.corsAnywhere,\n urlRegx: /^((https|http)?:\\/\\/)+[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&_~`@[\\]\\':+!]*([^<>\\\"\\\"])*$/,\n imgRegx: /\\.(jpe?g|png|webp|svg|gif|jifi)(-|_|!|\\?|\\/)?.*$/,\n\n /**\n * 加载右键菜单\n */\n initialMenu: () => {\n RightMenus.fun.init();\n volantis.pjax.send(() => {\n RightMenus.fun.hideMenu();\n if (volantis.isReadModel) RightMenus.fun.readMode();\n })\n },\n\n /**\n * 读取剪切板\n * @returns text\n */\n readClipboard: async () => {\n let clipboardText;\n const result = await navigator.permissions.query({ name: 'clipboard-read' });\n switch (result.state) {\n case 'granted':\n case 'prompt':\n clipboardText = await navigator.clipboard.readText()\n break;\n default:\n window.clipboardRead = false;\n break;\n }\n return clipboardText;\n },\n\n /**\n * 写入文本到剪切板\n * @param {String} text\n */\n writeClipText: text => {\n return navigator.clipboard\n .writeText(text)\n .then(() => {\n return Promise.resolve()\n })\n .catch(err => {\n return Promise.reject(err)\n })\n },\n\n /**\n * 写入图片到剪切板\n * @param {*} link\n * @param {*} success\n * @param {*} error\n */\n writeClipImg: async (link, success, error) => {\n const image = new Image;\n image.crossOrigin = \"Anonymous\";\n image.addEventListener('load', () => {\n let canvas = document.createElement(\"canvas\");\n let context = canvas.getContext(\"2d\");\n canvas.width = image.width;\n canvas.height = image.height;\n context.drawImage(image, 0, 0);\n canvas.toBlob(blob => {\n navigator.clipboard.write([\n new ClipboardItem({ 'image/png': blob })\n ]).then(e => {\n success(e)\n }).catch(e => {\n error(e)\n })\n }, 'image/png')\n }, false)\n image.src = `${link}?(lll¬ω¬)`;\n },\n\n /**\n * 粘贴文本到剪切板\n * @param {*} elemt\n * @param {*} value\n */\n insertAtCaret: (elemt, value) => {\n const startPos = elemt.selectionStart,\n endPos = elemt.selectionEnd;\n if (document.selection) {\n elemt.focus();\n var sel = document.selection.createRange();\n sel.text = value;\n elemt.focus();\n } else {\n if (startPos || startPos == '0') {\n var scrollTop = elemt.scrollTop;\n elemt.value = elemt.value.substring(0, startPos) + value + elemt.value.substring(endPos, elemt.value.length);\n elemt.focus();\n elemt.selectionStart = startPos + value.length;\n elemt.selectionEnd = startPos + value.length;\n elemt.scrollTop = scrollTop;\n } else {\n elemt.value += value;\n elemt.focus();\n }\n }\n }\n}\n\n/**\n * 事件处理区域\n */\nRightMenus.fun = (() => {\n const rightMenuConfig = volantis.GLOBAL_CONFIG.plugins.rightmenus;\n\n const\n fn = {},\n _rightMenuWrapper = document.getElementById('rightmenu-wrapper'),\n _rightMenuContent = document.getElementById('rightmenu-content'),\n _rightMenuList = document.querySelectorAll('#rightmenu-content li.menuLoad-Content'),\n _rightMenuListWithHr = document.querySelectorAll('#rightmenu-content li, #rightmenu-content hr, #menuMusic'),\n _readBkg = document.getElementById('read_bkg'),\n _menuMusic = document.getElementById('menuMusic'),\n _backward = document.querySelector('#menuMusic .backward'),\n _toggle = document.querySelector('#menuMusic .toggle'),\n _forward = document.querySelector('#menuMusic .forward');\n\n // 公共数据\n let globalData = {\n mouseEvent: null,\n isInputBox: false,\n selectText: '',\n inputValue: '',\n isLink: false,\n linkUrl: '',\n isMediaLink: false,\n mediaLinkUrl: '',\n isImage: false,\n isArticle: false,\n pathName: '',\n isReadClipboard: true,\n isShowMusic: false,\n statusCheck: false\n }\n const globalDataBackup = Object.assign({}, globalData);\n\n /**\n * 初始化监听事件处理\n */\n fn.initEvent = () => {\n fn.elementAppend();\n fn.contextmenu();\n fn.menuEvent();\n }\n\n /**\n * 预置元素设定\n */\n fn.elementAppend = () => {\n // 阅读模式\n if (_readBkg) _readBkg.parentNode.removeChild(_readBkg);\n const readBkg = document.createElement(\"div\");\n readBkg.className = \"common_read_bkg common_read_hide\";\n readBkg.id = \"read_bkg\";\n window.document.body.appendChild(readBkg);\n }\n\n /**\n * 右键菜单位置设定\n * @param {*} event\n */\n fn.menuPosition = (event) => {\n try {\n let mouseClientX = event.clientX;\n let mouseClientY = event.clientY;\n let screenWidth = document.documentElement.clientWidth || document.body.clientWidth;\n let screenHeight = document.documentElement.clientHeight || document.body.clientHeight;\n\n _rightMenuWrapper.style.display = 'block';\n fn.menuControl(event);\n\n let menuWidth = _rightMenuContent.offsetWidth;\n let menuHeight = _rightMenuContent.offsetHeight;\n let showLeft = mouseClientX + menuWidth > screenWidth ? mouseClientX - menuWidth + 10 : mouseClientX;\n let showTop = mouseClientY + menuHeight > screenHeight ? mouseClientY - menuHeight + 10 : mouseClientY;\n showTop = mouseClientY + menuHeight > screenHeight && showTop < menuHeight && mouseClientY < menuHeight ?\n showTop + (screenHeight - menuHeight - showTop - 10) : showTop;\n _rightMenuWrapper.style.left = `${showLeft}px`;\n _rightMenuWrapper.style.top = `${showTop}px`;\n if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) fn.menuNotic();\n } catch (error) {\n console.error(error);\n fn.hideMenu();\n return true;\n }\n return false;\n }\n\n /**\n * 菜单项控制\n * @param {*} event\n */\n fn.menuControl = (event) => {\n fn.globalDataSet(event);\n if (!!_menuMusic) _menuMusic.style.display = globalData.isShowMusic ? 'block' : 'none';\n _rightMenuList.forEach(item => {\n item.style.display = 'none';\n const nodeName = item.firstElementChild.nodeName;\n const groupName = item.firstElementChild.getAttribute('data-group');\n const itemEvent = item.firstElementChild.getAttribute('data-event');\n if (globalData.statusCheck || globalData.isArticle) {\n switch (groupName) {\n case 'inputBox':\n if (globalData.isInputBox) {\n item.style.display = 'block';\n if (itemEvent === 'copyCut' && !globalData.selectText) item.style.display = 'none';\n if (itemEvent === 'copyAll' && !globalData.inputValue) item.style.display = 'none';\n if (itemEvent === 'copyPaste' && !globalData.isReadClipboard) item.style.display = 'none';\n }\n break;\n case 'seletctText':\n if (!!globalData.selectText) item.style.display = 'block';\n break;\n case 'elementCheck':\n if (globalData.isLink || globalData.isMediaLink) item.style.display = 'block';\n break;\n case 'elementImage':\n if (globalData.isImage) item.style.display = 'block';\n break;\n case 'articlePage':\n if (globalData.isArticle) item.style.display = 'block';\n break;\n default:\n item.style.display = nodeName === 'A'\n ? globalData.isArticle && !globalData.statusCheck && rightMenuConfig.options.articleShowLink\n ? 'block'\n : 'none'\n : 'block';\n break;\n }\n } else if (nodeName === 'A' || RightMenus.defaultGroup.every(item => { return groupName !== item })) {\n item.style.display = 'block';\n }\n })\n\n // 执行外部事件\n volantis.mouseEvent = event;\n volantis.rightmenu.method.handle.start()\n\n // 过滤 HR 元素\n let elementHrItem = { item: null, hide: true };\n _rightMenuListWithHr.forEach((item) => {\n if (item.nodeName === \"HR\") {\n item.style.display = 'block';\n if (!elementHrItem.item) {\n elementHrItem.item = item;\n return;\n }\n if (elementHrItem.hide || elementHrItem.item.nextElementSibling.nodeName === \"hr\") {\n elementHrItem.item.style.display = 'none';\n }\n elementHrItem.item = item;\n elementHrItem.hide = true;\n } else {\n if (item.style.display === 'block' && elementHrItem.hide) {\n elementHrItem.hide = false;\n }\n }\n })\n if (!!elementHrItem.item && elementHrItem.hide) elementHrItem.item.style.display = 'none';\n }\n\n /**\n * 元素状态判断/全局数据设置\n * @param {*} event\n */\n fn.globalDataSet = (event) => {\n globalData = Object.assign({}, globalDataBackup);\n globalData.mouseEvent = event;\n globalData.selectText = window.getSelection().toString();\n\n // 判断是否为输入框\n if (event.target.tagName.toLowerCase() === 'input' || event.target.tagName.toLowerCase() === 'textarea') {\n globalData.isInputBox = true;\n globalData.inputValue = event.target.value;\n }\n\n // 判断是否允许读取剪切板\n if (globalData.isInputBox && window.clipboardRead === false) {\n globalData.isReadClipboard = false;\n }\n\n // 判断是否包含链接\n if (!!event.target.href && RightMenus.urlRegx.test(event.target.href)) {\n globalData.isLink = true;\n globalData.linkUrl = event.target.href;\n }\n\n // 判断是否包含媒体链接\n if (!!event.target.currentSrc && RightMenus.urlRegx.test(event.target.currentSrc)) {\n globalData.isMediaLink = true;\n globalData.mediaLinkUrl = event.target.currentSrc;\n }\n\n // 判断是否为图片地址\n if (globalData.isMediaLink && RightMenus.imgRegx.test(globalData.mediaLinkUrl)) {\n globalData.isImage = true;\n }\n\n // 判断是否为文章页面\n if (!!(document.querySelector('#post.article') || null)) {\n globalData.isArticle = true;\n globalData.pathName = window.location.pathname;\n }\n\n // 判断是否显示音乐控制器\n if (volantis.GLOBAL_CONFIG.plugins.aplayer?.enable\n && typeof RightMenuAplayer !== 'undefined'\n && RightMenuAplayer.APlayer.player !== undefined) {\n if (rightMenuConfig.options.musicAlwaysShow\n || RightMenuAplayer.APlayer.status === 'play'\n || RightMenuAplayer.APlayer.status === 'undefined') {\n globalData.isShowMusic = true;\n }\n }\n\n // 设定校验状态\n if (!!globalData.selectText || globalData.isInputBox || globalData.isLink || globalData.isMediaLink) {\n globalData.statusCheck = true;\n }\n }\n\n /**\n * 全局右键监听函数\n */\n fn.contextmenu = () => {\n window.document.oncontextmenu = (event) => {\n if (event.ctrlKey || document.body.offsetWidth <= 500) {\n fn.hideMenu();\n return true;\n }\n return fn.menuPosition(event);\n }\n\n _rightMenuWrapper.oncontextmenu = (event) => {\n event.stopPropagation();\n event.preventDefault();\n return false;\n }\n\n window.removeEventListener('blur', fn.hideMenu);\n window.addEventListener('blur', fn.hideMenu);\n document.body.removeEventListener('click', fn.hideMenu);\n document.body.addEventListener('click', fn.hideMenu);\n }\n\n /**\n * 菜单项事件处理函数\n */\n fn.menuEvent = () => {\n _rightMenuList.forEach(item => {\n let eventName = item.firstElementChild.getAttribute('data-event');\n const id = item.firstElementChild.getAttribute('id');\n const groupName = item.firstElementChild.getAttribute('data-group');\n if (item.firstElementChild.nodeName === \"A\") return;\n item.addEventListener('click', () => {\n try {\n if (RightMenus.defaultEvent.every(item => { return eventName !== item })) {\n if (groupName === 'seletctText') {\n RightMenusFunction[id](globalData.selectText)\n } else if (groupName === 'elementCheck') {\n RightMenusFunction[id](globalData.isLink ? globalData.linkUrl : globalData.mediaLinkUrl)\n } else if (groupName === 'elementImage') {\n RightMenusFunction[id](globalData.mediaLinkUrl)\n } else {\n RightMenusFunction[id]()\n }\n } else {\n fn[eventName]()\n }\n } catch (error) {\n if (volantis.GLOBAL_CONFIG.debug === \"rightMenus\") {\n console.error({\n id: id,\n error: error,\n globalData: globalData,\n groupName: groupName,\n eventName: eventName\n });\n }\n if (RightMenus.messageRightMenu) {\n VolantisApp.message('错误提示', error, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n time: '15000'\n });\n }\n }\n })\n })\n\n if (_forward && _toggle && _forward) {\n _backward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerBackward();\n }\n _toggle.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerToggle();\n }\n _forward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerForward();\n }\n }\n }\n\n /**\n * 隐藏菜单显示\n */\n fn.hideMenu = () => {\n _rightMenuWrapper.style.display = null;\n _rightMenuWrapper.style.left = null;\n _rightMenuWrapper.style.top = null;\n }\n\n /**\n * 右键菜单覆盖提示\n */\n fn.menuNotic = () => {\n const NoticeRightMenu = localStorage.getItem('NoticeRightMenu') === 'true';\n if (RightMenus.messageRightMenu && !NoticeRightMenu)\n VolantisApp.message('右键菜单', '唤醒原系统菜单请使用:<kbd>Ctrl</kbd> + <kbd>右键</kbd>', {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n displayMode: 1,\n time: 9000\n }, () => {\n localStorage.setItem('NoticeRightMenu', 'true')\n });\n }\n\n fn.copyText = () => {\n VolantisApp.utilWriteClipText(globalData.selectText)\n .then(() => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.messageCopyright();\n }\n }).catch(e => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.message('系统提示', e, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n displayMode: 1,\n time: 9000\n });\n }\n })\n }\n\n fn.copyLink = () => {\n VolantisApp.utilWriteClipText(globalData.linkUrl || globalData.mediaLinkUrl)\n .then(() => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.messageCopyright();\n }\n }).catch(e => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.message('系统提示', e, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n displayMode: 1,\n time: 9000\n });\n }\n })\n }\n\n fn.copyAll = () => {\n globalData.mouseEvent.target.select();\n }\n\n fn.copyPaste = async () => {\n const result = await RightMenus.readClipboard() || '';\n if (RightMenus.messageRightMenu && window.clipboardRead === false) {\n VolantisApp.message('系统提示', '未授予剪切板读取权限!');\n } else if (RightMenus.messageRightMenu && result === '') {\n VolantisApp.message('系统提示', '仅支持复制文本内容!');\n } else {\n RightMenus.insertAtCaret(globalData.mouseEvent.target, result);\n }\n }\n\n fn.copyCut = () => {\n const statrPos = globalData.mouseEvent.target.selectionStart;\n const endPos = globalData.mouseEvent.target.selectionEnd;\n const inputStr = globalData.inputValue;\n fn.copyText(globalData.selectText);\n globalData.mouseEvent.target.value = inputStr.substring(0, statrPos) + inputStr.substring(endPos, inputStr.length);\n globalData.mouseEvent.target.selectionStart = statrPos;\n globalData.mouseEvent.target.selectionEnd = statrPos;\n globalData.mouseEvent.target.focus();\n }\n\n fn.copyImg = () => {\n if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) {\n VolantisApp.message('系统提示', '复制中,请等待。', {\n icon: rightMenuConfig.options.iconPrefix + ' fa-images'\n })\n }\n RightMenus.writeClipImg(globalData.mediaLinkUrl, e => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.hideMessage();\n VolantisApp.message('系统提示', '图片复制成功!', {\n icon: rightMenuConfig.options.iconPrefix + ' fa-images'\n });\n }\n }, (e) => {\n console.error(e);\n if (RightMenus.messageRightMenu) {\n VolantisApp.hideMessage();\n VolantisApp.message('系统提示', '复制失败:' + e, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n time: 9000\n });\n }\n })\n }\n\n fn.printMode = () => {\n if (window.location.pathname === globalData.pathName) {\n if (RightMenus.messageRightMenu) {\n const message = '是否打印当前页面?<br><em style=\"font-size: 80%\">建议打印时勾选背景图形</em><br>'\n VolantisApp.question('', message, { time: 9000 }, () => { fn.printHtml() })\n } else {\n fn.printHtml()\n }\n }\n }\n\n fn.printHtml = () => {\n if (volantis.isReadModel) fn.readMode();\n DOMController.setAttribute('details', 'open', 'true');\n DOMController.removeList([\n '.cus-article-bkg', '.iziToast-overlay', '.iziToast-wrapper', '.prev-next',\n 'footer', '#l_header', '#l_cover', '#l_side', '#comments', '#s-top', '#BKG',\n '#rightmenu-wrapper', '.nav-tabs', '.parallax-mirror', '.new-meta-item.share', 'div.footer'\n ]);\n DOMController.setStyleList([\n ['body', 'backgroundColor', 'unset'], ['#l_main', 'width', '100%'], ['#post', 'boxShadow', 'none'],\n ['#post', 'background', 'none'], ['#post', 'padding', '0'], ['h1', 'textAlign', 'center'],\n ['h1', 'fontWeight', '600'], ['h1', 'fontSize', '2rem'], ['h1', 'marginBottom', '20px'],\n ['.tab-pane', 'display', 'block'], ['.tab-content', 'borderTop', 'none'], ['.highlight>table pre', 'whiteSpace', 'pre-wrap'],\n ['.highlight>table pre', 'wordBreak', 'break-all'], ['.fancybox img', 'height', 'auto'], ['.fancybox img', 'weight', 'auto']\n ]);\n setTimeout(() => {\n window.print();\n document.body.innerHTML = '';\n window.location.reload();\n }, 50);\n }\n\n fn.readMode = () => {\n if (typeof ScrollReveal === 'function') ScrollReveal().clean('#comments');\n DOMController.fadeToggleList([ \n document.querySelector('#l_header'), document.querySelector('footer'), \n document.querySelector('#s-top'), document.querySelector('.article-meta#bottom'), \n document.querySelector('.prev-next'), document.querySelector('#l_side'), \n document.querySelector('#comments') \n ]); \n DOMController.toggleClassList([ \n [document.querySelector('#l_main'), 'common_read'], [document.querySelector('#l_main'), 'common_read_main'], \n [document.querySelector('#l_body'), 'common_read'], [document.querySelector('#safearea'), 'common_read'], \n [document.querySelector('#pjax-container'), 'common_read'], [document.querySelector('#read_bkg'), 'common_read_hide'], \n [document.querySelector('h1'), 'common_read_h1'], [document.querySelector('#post'), 'post_read'], \n [document.querySelector('#l_cover'), 'read_cover'], [document.querySelector('.widget.toc-wrapper'), 'post_read'] \n ]);\n DOMController.setStyle('.copyright.license', 'margin', '15px 0'); \n volantis.isReadModel = volantis.isReadModel === undefined ? true : !volantis.isReadModel;\n if (volantis.isReadModel) {\n if (RightMenus.messageRightMenu) VolantisApp.message('系统提示', '阅读模式已开启,您可以点击屏幕空白处退出。', {\n backgroundColor: 'var(--color-read-post)',\n icon: rightMenuConfig.options.iconPrefix + ' fa-book-reader',\n displayMode: 1,\n time: 5000\n });\n document.querySelector('#l_body').removeEventListener('click', fn.readMode);\n document.querySelector('#l_body').addEventListener('click', (event) => {\n if (DOMController.hasClass(event.target, 'common_read')) {\n fn.readMode();\n }\n });\n } else {\n document.querySelector('#l_body').removeEventListener('click', fn.readMode);\n document.querySelector('#post').removeEventListener('click', fn.readMode);\n DOMController.setStyle('.prev-next', 'display', 'flex'); \n DOMController.setStyle('.copyright.license', 'margin', '15px -40px'); \n }\n }\n\n return {\n init: fn.initEvent,\n hideMenu: fn.hideMenu,\n readMode: fn.readMode\n }\n})()\n\nObject.freeze(RightMenus);\nvolantis.requestAnimationFrame(() => {\n if (document.readyState !== 'loading') {\n RightMenus.initialMenu();\n } else {\n document.addEventListener(\"DOMContentLoaded\", function () {\n RightMenus.initialMenu();\n })\n }\n});\n"]}
1
+ {"version":3,"sources":["js/plugins/rightMenus.js"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_regeneratorRuntime","e","t","r","Object","n","hasOwnProperty","defineProperty","value","i","a","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","RightMenus","defaultEvent","defaultGroup","messageRightMenu","volantis","GLOBAL_CONFIG","plugins","message","enable","rightmenu","corsAnywhere","rightmenus","options","urlRegx","imgRegx","initialMenu","fun","init","pjax","send","hideMenu","isReadModel","readMode","readClipboard","_readClipboard","_callee","clipboardText","result","_context","navigator","permissions","query","t0","state","clipboard","readText","window","clipboardRead","writeClipText","text","writeText","err","reject","writeClipImg","_writeClipImg","_callee2","link","success","error","image","_context2","Image","crossOrigin","addEventListener","canvas","document","createElement","context","getContext","width","height","drawImage","toBlob","blob","write","ClipboardItem","src","concat","_x","_x2","_x3","insertAtCaret","elemt","startPos","selectionStart","endPos","selectionEnd","selection","focus","createRange","scrollTop","substring","rightMenuConfig","fn","_rightMenuWrapper","getElementById","_rightMenuContent","_rightMenuList","querySelectorAll","_rightMenuListWithHr","_readBkg","_menuMusic","_backward","querySelector","_toggle","_forward","globalData","mouseEvent","isInputBox","selectText","inputValue","isLink","linkUrl","isMediaLink","mediaLinkUrl","isImage","isArticle","pathName","isReadClipboard","isShowMusic","statusCheck","globalDataBackup","assign","initEvent","elementAppend","contextmenu","menuEvent","parentNode","removeChild","readBkg","className","id","body","appendChild","menuPosition","event","mouseClientX","clientX","mouseClientY","clientY","screenWidth","documentElement","clientWidth","screenHeight","clientHeight","style","display","menuControl","menuWidth","offsetWidth","menuHeight","offsetHeight","showLeft","showTop","left","top","notice","menuNotic","console","globalDataSet","item","nodeName","firstElementChild","groupName","getAttribute","itemEvent","articleShowLink","every","start","elementHrItem","hide","nextElementSibling","_volantis$GLOBAL_CONF","getSelection","toString","target","tagName","toLowerCase","href","test","currentSrc","location","pathname","aplayer","RightMenuAplayer","APlayer","player","undefined","musicAlwaysShow","status","oncontextmenu","ctrlKey","stopPropagation","preventDefault","removeEventListener","eventName","RightMenusFunction","debug","VolantisApp","icon","iconPrefix","time","onclick","aplayerBackward","aplayerToggle","aplayerForward","NoticeRightMenu","localStorage","getItem","displayMode","setItem","copyText","utilWriteClipText","messageCopyright","copyLink","copyAll","select","copyPaste","_callee3","_context3","copyCut","statrPos","inputStr","copyImg","hideMessage","printMode","question","printHtml","DOMController","setAttribute","removeList","setStyleList","setTimeout","print","innerHTML","reload","ScrollReveal","clean","fadeToggleList","toggleClassList","setStyle","backgroundColor","hasClass","freeze","requestAnimationFrame","readyState"],"mappings":"AAAA,aAEA,SAASA,QAAQC,GAAgC,OAAOD,QAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAK,cAAcA,CAAG,EAAI,SAAUA,GAAK,OAAOA,GAAK,mBAAqBC,QAAUD,EAAEG,cAAgBF,QAAUD,IAAMC,OAAOG,UAAY,gBAAkBJ,CAAG,EAAGD,QAAQC,EAAI,CAC7T,SAASK,sBAFTA,oBAAA,WAAA,OAAAC,CAAA,EAAA,IAAAC,EAAAD,EAAA,CAAA,EAAAE,EAAAC,OAAAL,UAAAM,EAAAF,EAAAG,eAAAX,EAAAS,OAAAG,gBAAA,SAAAL,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAK,KAAA,EAAAC,EAAA,mBAAAb,OAAAA,OAAA,CAAA,EAAAc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6H,cAAcY,SAAS,qBAAsB,SAAU,UACvDlO,SAASiB,YAAcjB,SAASiB,cAAgB4J,YAAoB7K,SAASiB,YACzEjB,SAASiB,aACPrB,WAAWG,kBAAkByL,YAAYrL,QAAQ,OAAQ,wBAAyB,CACpFgO,gBAAiB,yBACjB1C,KAAM3G,EAAgBtE,QAAQkL,WAAa,kBAC3CS,YAAa,EACbR,KAAM,MAERxI,SAASsC,cAAc,WAAW2F,oBAAoB,QAASrG,EAAG7D,UAClEiC,SAASsC,cAAc,WAAWxC,iBAAiB,SAAS,SAACwE,GACvD6F,cAAcc,SAAS3G,EAAMwC,OAAQ,gBACvClF,EAAG7D,UAEP,MAEAiC,SAASsC,cAAc,WAAW2F,oBAAoB,QAASrG,EAAG7D,UAClEiC,SAASsC,cAAc,SAAS2F,oBAAoB,QAASrG,EAAG7D,UAChEoM,cAAcY,SAAS,aAAc,UAAW,QAChDZ,cAAcY,SAAS,qBAAsB,SAAU,cAE3D,EAEO,CACLrN,KAAMkE,EAAG8B,UACT7F,SAAU+D,EAAG/D,SACbE,SAAU6D,EAAG7D,SAEjB,CA5ekB,GA8elB1H,OAAO6U,OAAOzO,YACdI,SAASsO,uBAAsB,WACD,YAAxBnL,SAASoL,WACX3O,WAAWe,cAEXwC,SAASF,iBAAiB,oBAAoB,WAC5CrD,WAAWe,aACb,GAEJ","file":"../../../js/plugins/rightMenus.js","sourcesContent":["\nconst RightMenus = {\n defaultEvent: ['copyText', 'copyLink', 'copyPaste', 'copyAll', 'copyCut', 'copyImg', 'printMode', 'readMode'],\n defaultGroup: ['navigation', 'inputBox', 'seletctText', 'elementCheck', 'elementImage', 'articlePage'],\n messageRightMenu: volantis.GLOBAL_CONFIG.plugins.message.enable && volantis.GLOBAL_CONFIG.plugins.message.rightmenu.enable,\n corsAnywhere: volantis.GLOBAL_CONFIG.plugins.rightmenus.options.corsAnywhere,\n urlRegx: /^((https|http)?:\\/\\/)+[A-Za-z0-9]+\\.[A-Za-z0-9]+[\\/=\\?%\\-&_~`@[\\]\\':+!]*([^<>\\\"\\\"])*$/,\n imgRegx: /\\.(jpe?g|png|webp|svg|gif|jifi)(-|_|!|\\?|\\/)?.*$/,\n\n /**\n * 加载右键菜单\n */\n initialMenu: () => {\n RightMenus.fun.init();\n volantis.pjax.send(() => {\n RightMenus.fun.hideMenu();\n if (volantis.isReadModel) RightMenus.fun.readMode();\n })\n },\n\n /**\n * 读取剪切板\n * @returns text\n */\n readClipboard: async () => {\n let clipboardText;\n const result = await navigator.permissions.query({ name: 'clipboard-read' });\n switch (result.state) {\n case 'granted':\n case 'prompt':\n clipboardText = await navigator.clipboard.readText()\n break;\n default:\n window.clipboardRead = false;\n break;\n }\n return clipboardText;\n },\n\n /**\n * 写入文本到剪切板\n * @param {String} text\n */\n writeClipText: text => {\n return navigator.clipboard\n .writeText(text)\n .then(() => {\n return Promise.resolve()\n })\n .catch(err => {\n return Promise.reject(err)\n })\n },\n\n /**\n * 写入图片到剪切板\n * @param {*} link\n * @param {*} success\n * @param {*} error\n */\n writeClipImg: async (link, success, error) => {\n const image = new Image;\n image.crossOrigin = \"Anonymous\";\n image.addEventListener('load', () => {\n let canvas = document.createElement(\"canvas\");\n let context = canvas.getContext(\"2d\");\n canvas.width = image.width;\n canvas.height = image.height;\n context.drawImage(image, 0, 0);\n canvas.toBlob(blob => {\n navigator.clipboard.write([\n new ClipboardItem({ 'image/png': blob })\n ]).then(e => {\n success(e)\n }).catch(e => {\n error(e)\n })\n }, 'image/png')\n }, false)\n image.src = `${link}?(lll¬ω¬)`;\n },\n\n /**\n * 粘贴文本到剪切板\n * @param {*} elemt\n * @param {*} value\n */\n insertAtCaret: (elemt, value) => {\n const startPos = elemt.selectionStart,\n endPos = elemt.selectionEnd;\n if (document.selection) {\n elemt.focus();\n var sel = document.selection.createRange();\n sel.text = value;\n elemt.focus();\n } else {\n if (startPos || startPos == '0') {\n var scrollTop = elemt.scrollTop;\n elemt.value = elemt.value.substring(0, startPos) + value + elemt.value.substring(endPos, elemt.value.length);\n elemt.focus();\n elemt.selectionStart = startPos + value.length;\n elemt.selectionEnd = startPos + value.length;\n elemt.scrollTop = scrollTop;\n } else {\n elemt.value += value;\n elemt.focus();\n }\n }\n }\n}\n\n/**\n * 事件处理区域\n */\nRightMenus.fun = (() => {\n const rightMenuConfig = volantis.GLOBAL_CONFIG.plugins.rightmenus;\n\n const\n fn = {},\n _rightMenuWrapper = document.getElementById('rightmenu-wrapper'),\n _rightMenuContent = document.getElementById('rightmenu-content'),\n _rightMenuList = document.querySelectorAll('#rightmenu-content li.menuLoad-Content'),\n _rightMenuListWithHr = document.querySelectorAll('#rightmenu-content li, #rightmenu-content hr, #menuMusic'),\n _readBkg = document.getElementById('read_bkg'),\n _menuMusic = document.getElementById('menuMusic'),\n _backward = document.querySelector('#menuMusic .backward'),\n _toggle = document.querySelector('#menuMusic .toggle'),\n _forward = document.querySelector('#menuMusic .forward');\n\n // 公共数据\n let globalData = {\n mouseEvent: null,\n isInputBox: false,\n selectText: '',\n inputValue: '',\n isLink: false,\n linkUrl: '',\n isMediaLink: false,\n mediaLinkUrl: '',\n isImage: false,\n isArticle: false,\n pathName: '',\n isReadClipboard: true,\n isShowMusic: false,\n statusCheck: false\n }\n const globalDataBackup = Object.assign({}, globalData);\n\n /**\n * 初始化监听事件处理\n */\n fn.initEvent = () => {\n fn.elementAppend();\n fn.contextmenu();\n fn.menuEvent();\n }\n\n /**\n * 预置元素设定\n */\n fn.elementAppend = () => {\n // 阅读模式\n if (_readBkg) _readBkg.parentNode.removeChild(_readBkg);\n const readBkg = document.createElement(\"div\");\n readBkg.className = \"common_read_bkg common_read_hide\";\n readBkg.id = \"read_bkg\";\n window.document.body.appendChild(readBkg);\n }\n\n /**\n * 右键菜单位置设定\n * @param {*} event\n */\n fn.menuPosition = (event) => {\n try {\n let mouseClientX = event.clientX;\n let mouseClientY = event.clientY;\n let screenWidth = document.documentElement.clientWidth || document.body.clientWidth;\n let screenHeight = document.documentElement.clientHeight || document.body.clientHeight;\n\n _rightMenuWrapper.style.display = 'block';\n fn.menuControl(event);\n\n let menuWidth = _rightMenuContent.offsetWidth;\n let menuHeight = _rightMenuContent.offsetHeight;\n let showLeft = mouseClientX + menuWidth > screenWidth ? mouseClientX - menuWidth + 10 : mouseClientX;\n let showTop = mouseClientY + menuHeight > screenHeight ? mouseClientY - menuHeight + 10 : mouseClientY;\n showTop = mouseClientY + menuHeight > screenHeight && showTop < menuHeight && mouseClientY < menuHeight ?\n showTop + (screenHeight - menuHeight - showTop - 10) : showTop;\n _rightMenuWrapper.style.left = `${showLeft}px`;\n _rightMenuWrapper.style.top = `${showTop}px`;\n if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) fn.menuNotic();\n } catch (error) {\n console.error(error);\n fn.hideMenu();\n return true;\n }\n return false;\n }\n\n /**\n * 菜单项控制\n * @param {*} event\n */\n fn.menuControl = (event) => {\n fn.globalDataSet(event);\n if (!!_menuMusic) _menuMusic.style.display = globalData.isShowMusic ? 'block' : 'none';\n _rightMenuList.forEach(item => {\n item.style.display = 'none';\n const nodeName = item.firstElementChild.nodeName;\n const groupName = item.firstElementChild.getAttribute('data-group');\n const itemEvent = item.firstElementChild.getAttribute('data-event');\n if (globalData.statusCheck || globalData.isArticle) {\n switch (groupName) {\n case 'inputBox':\n if (globalData.isInputBox) {\n item.style.display = 'block';\n if (itemEvent === 'copyCut' && !globalData.selectText) item.style.display = 'none';\n if (itemEvent === 'copyAll' && !globalData.inputValue) item.style.display = 'none';\n if (itemEvent === 'copyPaste' && !globalData.isReadClipboard) item.style.display = 'none';\n }\n break;\n case 'seletctText':\n if (!!globalData.selectText) item.style.display = 'block';\n break;\n case 'elementCheck':\n if (globalData.isLink || globalData.isMediaLink) item.style.display = 'block';\n break;\n case 'elementImage':\n if (globalData.isImage) item.style.display = 'block';\n break;\n case 'articlePage':\n if (globalData.isArticle) item.style.display = 'block';\n break;\n default:\n item.style.display = nodeName === 'A'\n ? globalData.isArticle && !globalData.statusCheck && rightMenuConfig.options.articleShowLink\n ? 'block'\n : 'none'\n : 'block';\n break;\n }\n } else if (nodeName === 'A' || RightMenus.defaultGroup.every(item => { return groupName !== item })) {\n item.style.display = 'block';\n }\n })\n\n // 执行外部事件\n volantis.mouseEvent = event;\n volantis.rightmenu.method.handle.start()\n\n // 过滤 HR 元素\n let elementHrItem = { item: null, hide: true };\n _rightMenuListWithHr.forEach((item) => {\n if (item.nodeName === \"HR\") {\n item.style.display = 'block';\n if (!elementHrItem.item) {\n elementHrItem.item = item;\n return;\n }\n if (elementHrItem.hide || elementHrItem.item.nextElementSibling.nodeName === \"hr\") {\n elementHrItem.item.style.display = 'none';\n }\n elementHrItem.item = item;\n elementHrItem.hide = true;\n } else {\n if (item.style.display === 'block' && elementHrItem.hide) {\n elementHrItem.hide = false;\n }\n }\n })\n if (!!elementHrItem.item && elementHrItem.hide) elementHrItem.item.style.display = 'none';\n }\n\n /**\n * 元素状态判断/全局数据设置\n * @param {*} event\n */\n fn.globalDataSet = (event) => {\n globalData = Object.assign({}, globalDataBackup);\n globalData.mouseEvent = event;\n globalData.selectText = window.getSelection().toString();\n\n // 判断是否为输入框\n if (event.target.tagName.toLowerCase() === 'input' || event.target.tagName.toLowerCase() === 'textarea') {\n globalData.isInputBox = true;\n globalData.inputValue = event.target.value;\n }\n\n // 判断是否允许读取剪切板\n if (globalData.isInputBox && window.clipboardRead === false) {\n globalData.isReadClipboard = false;\n }\n\n // 判断是否包含链接\n if (!!event.target.href && RightMenus.urlRegx.test(event.target.href)) {\n globalData.isLink = true;\n globalData.linkUrl = event.target.href;\n }\n\n // 判断是否包含媒体链接\n if (!!event.target.currentSrc && RightMenus.urlRegx.test(event.target.currentSrc)) {\n globalData.isMediaLink = true;\n globalData.mediaLinkUrl = event.target.currentSrc;\n }\n\n // 判断是否为图片地址\n if (globalData.isMediaLink && RightMenus.imgRegx.test(globalData.mediaLinkUrl)) {\n globalData.isImage = true;\n }\n\n // 判断是否为文章页面\n if (!!(document.querySelector('#post.article') || null)) {\n globalData.isArticle = true;\n globalData.pathName = window.location.pathname;\n }\n\n // 判断是否显示音乐控制器\n if (volantis.GLOBAL_CONFIG.plugins.aplayer?.enable\n && typeof RightMenuAplayer !== 'undefined'\n && RightMenuAplayer.APlayer.player !== undefined) {\n if (rightMenuConfig.options.musicAlwaysShow\n || RightMenuAplayer.APlayer.status === 'play'\n || RightMenuAplayer.APlayer.status === 'undefined') {\n globalData.isShowMusic = true;\n }\n }\n\n // 设定校验状态\n if (!!globalData.selectText || globalData.isInputBox || globalData.isLink || globalData.isMediaLink) {\n globalData.statusCheck = true;\n }\n }\n\n /**\n * 全局右键监听函数\n */\n fn.contextmenu = () => {\n window.document.oncontextmenu = (event) => {\n if (event.ctrlKey || document.body.offsetWidth <= 500) {\n fn.hideMenu();\n return true;\n }\n return fn.menuPosition(event);\n }\n\n _rightMenuWrapper.oncontextmenu = (event) => {\n event.stopPropagation();\n event.preventDefault();\n return false;\n }\n\n window.removeEventListener('blur', fn.hideMenu);\n window.addEventListener('blur', fn.hideMenu);\n document.body.removeEventListener('click', fn.hideMenu);\n document.body.addEventListener('click', fn.hideMenu);\n }\n\n /**\n * 菜单项事件处理函数\n */\n fn.menuEvent = () => {\n _rightMenuList.forEach(item => {\n let eventName = item.firstElementChild.getAttribute('data-event');\n const id = item.firstElementChild.getAttribute('id');\n const groupName = item.firstElementChild.getAttribute('data-group');\n if (item.firstElementChild.nodeName === \"A\") return;\n item.addEventListener('click', () => {\n try {\n if (RightMenus.defaultEvent.every(item => { return eventName !== item })) {\n if (groupName === 'seletctText') {\n RightMenusFunction[id](globalData.selectText)\n } else if (groupName === 'elementCheck') {\n RightMenusFunction[id](globalData.isLink ? globalData.linkUrl : globalData.mediaLinkUrl)\n } else if (groupName === 'elementImage') {\n RightMenusFunction[id](globalData.mediaLinkUrl)\n } else {\n RightMenusFunction[id]()\n }\n } else {\n fn[eventName]()\n }\n } catch (error) {\n if (volantis.GLOBAL_CONFIG.debug === \"rightMenus\") {\n console.error({\n id: id,\n error: error,\n globalData: globalData,\n groupName: groupName,\n eventName: eventName\n });\n }\n if (RightMenus.messageRightMenu) {\n VolantisApp.message('错误提示', error, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n time: '15000'\n });\n }\n }\n })\n })\n\n if (_forward && _toggle && _forward) {\n _backward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerBackward();\n }\n _toggle.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerToggle();\n }\n _forward.onclick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n RightMenuAplayer.aplayerForward();\n }\n }\n }\n\n /**\n * 隐藏菜单显示\n */\n fn.hideMenu = () => {\n _rightMenuWrapper.style.display = null;\n _rightMenuWrapper.style.left = null;\n _rightMenuWrapper.style.top = null;\n }\n\n /**\n * 右键菜单覆盖提示\n */\n fn.menuNotic = () => {\n const NoticeRightMenu = localStorage.getItem('NoticeRightMenu') === 'true';\n if (RightMenus.messageRightMenu && !NoticeRightMenu)\n VolantisApp.message('右键菜单', '唤醒原系统菜单请使用:<kbd>Ctrl</kbd> + <kbd>右键</kbd>', {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n displayMode: 1,\n time: 9000\n }, () => {\n localStorage.setItem('NoticeRightMenu', 'true')\n });\n }\n\n fn.copyText = () => {\n VolantisApp.utilWriteClipText(globalData.selectText)\n .then(() => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.messageCopyright();\n }\n }).catch(e => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.message('系统提示', e, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n displayMode: 1,\n time: 9000\n });\n }\n })\n }\n\n fn.copyLink = () => {\n VolantisApp.utilWriteClipText(globalData.linkUrl || globalData.mediaLinkUrl)\n .then(() => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.messageCopyright();\n }\n }).catch(e => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.message('系统提示', e, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n displayMode: 1,\n time: 9000\n });\n }\n })\n }\n\n fn.copyAll = () => {\n globalData.mouseEvent.target.select();\n }\n\n fn.copyPaste = async () => {\n const result = await RightMenus.readClipboard() || '';\n if (RightMenus.messageRightMenu && window.clipboardRead === false) {\n VolantisApp.message('系统提示', '未授予剪切板读取权限!');\n } else if (RightMenus.messageRightMenu && result === '') {\n VolantisApp.message('系统提示', '仅支持复制文本内容!');\n } else {\n RightMenus.insertAtCaret(globalData.mouseEvent.target, result);\n }\n }\n\n fn.copyCut = () => {\n const statrPos = globalData.mouseEvent.target.selectionStart;\n const endPos = globalData.mouseEvent.target.selectionEnd;\n const inputStr = globalData.inputValue;\n fn.copyText(globalData.selectText);\n globalData.mouseEvent.target.value = inputStr.substring(0, statrPos) + inputStr.substring(endPos, inputStr.length);\n globalData.mouseEvent.target.selectionStart = statrPos;\n globalData.mouseEvent.target.selectionEnd = statrPos;\n globalData.mouseEvent.target.focus();\n }\n\n fn.copyImg = () => {\n if (volantis.GLOBAL_CONFIG.plugins.message.rightmenu.notice) {\n VolantisApp.message('系统提示', '复制中,请等待。', {\n icon: rightMenuConfig.options.iconPrefix + ' fa-images'\n })\n }\n RightMenus.writeClipImg(globalData.mediaLinkUrl, e => {\n if (RightMenus.messageRightMenu) {\n VolantisApp.hideMessage();\n VolantisApp.message('系统提示', '图片复制成功!', {\n icon: rightMenuConfig.options.iconPrefix + ' fa-images'\n });\n }\n }, (e) => {\n console.error(e);\n if (RightMenus.messageRightMenu) {\n VolantisApp.hideMessage();\n VolantisApp.message('系统提示', '复制失败:' + e, {\n icon: rightMenuConfig.options.iconPrefix + ' fa-exclamation-square red',\n time: 9000\n });\n }\n })\n }\n\n fn.printMode = () => {\n if (window.location.pathname === globalData.pathName) {\n if (RightMenus.messageRightMenu) {\n const message = '是否打印当前页面?<br><em style=\"font-size: 80%\">建议打印时勾选背景图形</em><br>'\n VolantisApp.question('', message, { time: 9000 }, () => { fn.printHtml() })\n } else {\n fn.printHtml()\n }\n }\n }\n\n fn.printHtml = () => {\n if (volantis.isReadModel) fn.readMode();\n DOMController.setAttribute('details', 'open', 'true');\n DOMController.removeList([\n '.cus-article-bkg', '.iziToast-overlay', '.iziToast-wrapper', '.prev-next',\n 'footer', '#l_header', '#l_cover', '#l_side', '#comments', '#s-top', '#BKG',\n '#rightmenu-wrapper', '.nav-tabs', '.parallax-mirror', '.new-meta-item.share', 'div.footer'\n ]);\n DOMController.setStyleList([\n ['body', 'backgroundColor', 'unset'], ['#l_main', 'width', '100%'], ['#post', 'boxShadow', 'none'],\n ['#post', 'background', 'none'], ['#post', 'padding', '0'], ['h1', 'textAlign', 'center'],\n ['h1', 'fontWeight', '600'], ['h1', 'fontSize', '2rem'], ['h1', 'marginBottom', '20px'],\n ['.tab-pane', 'display', 'block'], ['.tab-content', 'borderTop', 'none'], ['.highlight>table pre', 'whiteSpace', 'pre-wrap'],\n ['.highlight>table pre', 'wordBreak', 'break-all'], ['.fancybox img', 'height', 'auto'], ['.fancybox img', 'weight', 'auto']\n ]);\n setTimeout(() => {\n window.print();\n document.body.innerHTML = '';\n window.location.reload();\n }, 50);\n }\n\n fn.readMode = () => {\n if (typeof ScrollReveal === 'function') ScrollReveal().clean('#comments');\n DOMController.fadeToggleList([ \n document.querySelector('#l_header'), document.querySelector('footer'), \n document.querySelector('#s-top'), document.querySelector('.article-meta#bottom'), \n document.querySelector('.prev-next'), document.querySelector('#l_side'), \n document.querySelector('#comments') \n ]); \n DOMController.toggleClassList([ \n [document.querySelector('#l_main'), 'common_read'], [document.querySelector('#l_main'), 'common_read_main'], \n [document.querySelector('#l_body'), 'common_read'], [document.querySelector('#safearea'), 'common_read'], \n [document.querySelector('#pjax-container'), 'common_read'], [document.querySelector('#read_bkg'), 'common_read_hide'], \n [document.querySelector('h1'), 'common_read_h1'], [document.querySelector('#post'), 'post_read'], \n [document.querySelector('#l_cover'), 'read_cover'], [document.querySelector('.widget.toc-wrapper'), 'post_read'] \n ]);\n DOMController.setStyle('.copyright.license', 'margin', '15px 0'); \n volantis.isReadModel = volantis.isReadModel === undefined ? true : !volantis.isReadModel;\n if (volantis.isReadModel) {\n if (RightMenus.messageRightMenu) VolantisApp.message('系统提示', '阅读模式已开启,您可以点击屏幕空白处退出。', {\n backgroundColor: 'var(--color-read-post)',\n icon: rightMenuConfig.options.iconPrefix + ' fa-book-reader',\n displayMode: 1,\n time: 5000\n });\n document.querySelector('#l_body').removeEventListener('click', fn.readMode);\n document.querySelector('#l_body').addEventListener('click', (event) => {\n if (DOMController.hasClass(event.target, 'common_read')) {\n fn.readMode();\n }\n });\n } else {\n document.querySelector('#l_body').removeEventListener('click', fn.readMode);\n document.querySelector('#post').removeEventListener('click', fn.readMode);\n DOMController.setStyle('.prev-next', 'display', 'flex'); \n DOMController.setStyle('.copyright.license', 'margin', '15px -40px'); \n }\n }\n\n return {\n init: fn.initEvent,\n hideMenu: fn.hideMenu,\n readMode: fn.readMode\n }\n})()\n\nObject.freeze(RightMenus);\nvolantis.requestAnimationFrame(() => {\n if (document.readyState !== 'loading') {\n RightMenus.initialMenu();\n } else {\n document.addEventListener(\"DOMContentLoaded\", function () {\n RightMenus.initialMenu();\n })\n }\n});\n"]}