Skip to content

Instantly share code, notes, and snippets.

@sutnistj
Last active July 26, 2021 00:52
Show Gist options
  • Save sutnistj/05eaaae2f2427d6e5da3512f185e0e03 to your computer and use it in GitHub Desktop.
Save sutnistj/05eaaae2f2427d6e5da3512f185e0e03 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name fix-CDBstyle-AniDBstyle3-menu
// @author Jurid
// @description Fix logo area for theme CDBstyle-AniDBstyle3-menu
// @include https://anidb.net/*
// @version 25-Jul-2021
// ==/UserScript==
const falseLink = document.querySelector('ul#menu-main li.main')
falseLink.style.display = 'none'
const mainLink = document.createElement('a')
mainLink.style.display = 'block'
mainLink.style.width = '1100px'
mainLink.style.height = '70px'
mainLink.href = '/'
mainLink.title = 'Main Page'
const place = document.querySelector('#layout-search > div.search')
place.insertAdjacentElement('afterbegin', mainLink)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment