diff --git a/client/common-client-plugin.js b/client/common-client-plugin.js index 2c1d6eb..cc5e55a 100644 --- a/client/common-client-plugin.js +++ b/client/common-client-plugin.js @@ -10,33 +10,6 @@ async function register({ /** * Add link admin page */ - registerHook({ - target: "action:router.navigation-end", - handler: async (params) => { - if (params.path.startsWith("/my-account")) { - if (document.getElementById("ncd-subscription-link")) return; - - let href = "/p/ncd-my-subscription"; - - // Get menu container - const menuContainer = document.getElementsByClassName("sub-menu")[0]; - - // Create link - const content = ` - - ${await peertubeHelpers.translate("NCTV Storage")} - - `; - - // Create node for it - const nodeLink = document.createElement("div"); - nodeLink.innerHTML = content.trim(); - - // Insert to menu container - menuContainer.appendChild(nodeLink.firstChild); - } - }, - }); registerHook({ target: "filter:left-menu.links.create.result",