dixtdf

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

dixtdf's Achievements

Noob

Noob (1/14)

0

Reputation

  1. @Squid I am an independent developer and can't prove that there are security issues with the plugins I write, but I feel that some plugins are not better implemented, so I write my own plugins. I want to share my best experience with all 'unraid' users, regardless of whether the plugin's launch has little impact on me. Thank you for taking time out of your busy schedule to reply me
  2. Thank you very much for your reply. I have tried this path and it still cannot be used. I have checked the open source code for ‘community. applications‘ and the path you provided is fine, but it is indeed unable to load private files. My version is currently the latest. Believe me, I've done it.
  3. 私有插件显示不正常,我想正式启动我的插件,但也没有收到您的回复@Squid 塔格利布.xml
  4. https://github.com/dixtdf/taglib/blob/master/plugins/taglib.plg https://github.com/dixtdf/templates/blob/main/dixtdf/Taglib.xml This plugin is still in the testing stage and will optimize some new features in the future
  5. I have done everything for a better experience, and I hope not to be held accountable for using the following methods I hope the author of 'Custom Tab' can see this code, which implements adaptive window size The current form can only be set to a fixed size and is not friendly for devices with different resolutions I hope to add an adaptive window size option, and I can only temporarily resolve it this way until further updates arrive // ==UserScript== // @name Unraid Custom Tab自适应窗体大小 // @namespace https://github.com/dixtdf/Unraid-Custom-Tab-Adaptive-Window-Size // @version 1.0 // @description 窗体宽高随意设置即可 // @author dixtdf // @match http*://*/* // @icon https://upload.forums.unraid.net/live/monthly_2017_05/customlarge.png.e0cb690d73cea725de6927fc0abce6a7.png // @grant none // @license MIT // ==/UserScript== (function() { function onWindowResize() { let elementsByClassName = window.document.getElementsByClassName("content shift"); if (elementsByClassName.length>0){ let computedStyle = window.getComputedStyle(elementsByClassName[0].querySelector(".title")); if (computedStyle){ let height = window.innerHeight-( window.document.getElementById("header").offsetHeight +window.document.getElementById("menu").offsetHeight +(window.document.getElementById("footer")!=null?window.document.getElementById("footer").offsetHeight:26) +parseInt(computedStyle.getPropertyValue("height").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-top").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-bottom").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("margin-top").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("margin-bottom").replace("px",""), 10) +30 ) let width=parseInt(computedStyle.getPropertyValue("width").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-left").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-right").replace("px",""), 10) let iframeElement = window.document.querySelector(".content.shift iframe"); iframeElement.style.width = width+"px"; iframeElement.style.height = height+"px"; iframeElement.style.border = "0px"; } } } window.addEventListener("resize", function() { clearTimeout(window.resizedFinished); window.resizedFinished = setTimeout(onWindowResize, 200); }); onWindowResize(); })(); Of course, you can manually edit/usr/local/emhttp/plugins/customtabtemp/View *. page to insert the following code into the last line, which can achieve the same effect <script> function onWindowResize() { let elementsByClassName = window.document.getElementsByClassName("content shift"); if (elementsByClassName.length>0){ let computedStyle = window.getComputedStyle(elementsByClassName[0].querySelector(".title")); if (computedStyle){ let height = window.innerHeight-( window.document.getElementById("header").offsetHeight +window.document.getElementById("menu").offsetHeight +(window.document.getElementById("footer")!=null?window.document.getElementById("footer").offsetHeight:26) +parseInt(computedStyle.getPropertyValue("height").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-top").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-bottom").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("margin-top").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("margin-bottom").replace("px",""), 10) +30 ) let width=parseInt(computedStyle.getPropertyValue("width").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-left").replace("px",""), 10) +parseInt(computedStyle.getPropertyValue("padding-right").replace("px",""), 10) let iframeElement = window.document.querySelector(".content.shift iframe"); iframeElement.style.width = width+"px"; iframeElement.style.height = height+"px"; iframeElement.style.border = "0px"; } } } window.addEventListener("resize", function() { clearTimeout(window.resizedFinished); window.resizedFinished = setTimeout(onWindowResize, 200); }); onWindowResize(); </script>
  6. 我的问题已经解决,但是不知道为什么能自动启动了,非常诡异