This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
/** | |
* Renders a button that when clicked copies the NodeList passed to the constructor to the clipboard | |
* | |
* @param [NodeList] content - a NodeList of selected elements | |
*/ | |
const CopyToClipBoardBtn = (content) => { | |
const btn = document.createElement('button'); | |
btn.innerText = 'Copy to clipboard'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name WordPress Developer Docs - In-Page Navigation Anchors | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adds a sticky table of contents to the sidebar that contains anchor links to in-page sections when on developer.wordpress.org | |
// @author Gabriel Rose (@roseg43) | |
// @match https://developer.wordpress.org/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=wordpress.org | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row { | |
--column-count: 12; | |
--grid-gap-width: 16px; | |
--column-base-min-width: calc((var(--width-grid) - (var(--column-count) - 1) * var(--grid-gap-width)) / var(--column-count)); | |
display: flex; | |
flex-flow: column; | |
gap: var(--grid-gap-width); | |
@media (--bp-medium) { | |
display: grid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
var page = 1, | |
loading = true, | |
$window = $(window), | |
$content = $('body.page-template-page-browse-php #content'); | |
var load_posts = function() { | |
console.log('load_posts():: INIT'); | |
$.ajax({ | |
type : "GET", |
OlderNewer