Skip to content

Instantly share code, notes, and snippets.

View pdcmoreira's full-sized avatar

Pedro Moreira pdcmoreira

  • Kenbi
  • Vila Nova de Gaia, Portugal
View GitHub Profile
@pdcmoreira
pdcmoreira / html_header_injection.html
Created February 21, 2025 15:03
Wiki.js arbitrary menu levels (experiment)
<script>
window.boot.register("page-ready", () => {
const pathSeparator = "/";
const maxGroupsSafeGuard = 100;
const getNodeTitleElement = (node) =>
node.querySelector(".v-list-item__title");
const getNodeTitle = (node) => getNodeTitleElement(node).textContent;
@pdcmoreira
pdcmoreira / bringBackGoogleMapsButton.user.js
Last active April 23, 2024 21:41 — forked from Daan-Grashoff/README.md
Bring back the google maps button when searching on google
// ==UserScript==
// @name Google Search Results Map Link
// @namespace http://tampermonkey.net/
// @version 2024-03-20
// @description Bring google maps button back
// @author pdcmoreira
// @match https://www.google.com/*
// @match https://google.com/*
// @icon https://www.google.com/
// @grant none
@pdcmoreira
pdcmoreira / style.less
Created November 5, 2019 18:43
Toggle underline style on action icon
.action {
position: relative;
height: 30px;
&.toggled {
&::after {
content: '';
position: absolute;
bottom: -4px;
left: 50%;