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
[ | |
{ | |
"date_from_gmt": "2024-02-14 00:00", | |
"date_to_gmt": "2025-05-01 00:00", | |
"format": "notice", | |
"style": "info", | |
"pages": [ | |
{ "page": "wc-admin", "path": "/extensions", "tab": "" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "themes" } | |
], |
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
[] |
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
[ | |
{ | |
"date_from_gmt": "2024-02-14 00:00", | |
"date_to_gmt": "2024-03-17 22:59", | |
"format": "notice", | |
"style": "info", | |
"pages": [ | |
{ "page": "wc-admin", "path": "/extensions" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "themes" } |
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
[ | |
{ | |
"date_from_gmt": "2024-02-14 00:00", | |
"date_to_gmt": "2024-05-13 22:59", | |
"format": "notice", | |
"style": "info", | |
"pages": [ | |
{ "page": "wc-admin", "path": "/extensions", "tab": "" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }, | |
{ "page": "wc-admin", "path": "/extensions", "tab": "themes" } |
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
// One-line version: create a bookmark with this content | |
// javascript:( function() { const jsIssueTitle = document.querySelector( '.js-issue-title' ); const title = jsIssueTitle ? jsIssueTitle.textContent : document.title; const blob = new Blob( [ `<a href="${ document.location.href }">${ title }</a>` ], { type: "text/html" } ); const clipboardItem = new ClipboardItem( { [ "text/html" ]: blob } ); navigator.clipboard.write( [ clipboardItem ] ); } )(); | |
// Long version - only included here for legibility use the one-line version prefixed with `javascript:` | |
( function() { | |
// Get GitHub issue/PR title | |
const jsIssueTitle = document.querySelector( '.js-issue-title' ); | |
const title = jsIssueTitle ? jsIssueTitle.textContent : document.title; | |
const blob = new Blob( [ `<a href="${ document.location.href }">${ title }</a>` ], { type: "text/html" } ); |
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 Make $ and $$ aliases for document.querySelector and document.querySelectorAll | |
// @version 1 | |
// @description Creates aliases for document.querySelector and document.querySelectorAll | |
// @author andfinally | |
// @match https://github.com/* | |
// @match https://woocommerce.test/* | |
// @match https://*.woocommerce.com/* | |
// @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
// ==UserScript== | |
// @name GitHub PR – click to copy link | |
// @version 0.1 | |
// @description Adds a "copy" link to the title of GitHub PR or issue. On clicking on it, copies link with title in text form to clipboard. | |
// @author andfinally | |
// @match https://github.com/*/pull/* | |
// @match https://github.com/*/issues/* | |
// @icon https://www.google.com/s2/favicons?domain=github.com | |
// @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
#!/bin/bash | |
PORT="${PORT:-1738}" | |
DONE_COLOR="${DONE_COLOR:-"green"}" | |
PROGRESS_COLOR="${PROGRESS_COLOR:-"orange"}" | |
INITIAL_COLOR="${INITIAL_COLOR:-"white"}" | |
BUILD_ERROR_COLOR="${BUILD_ERROR_COLOR:-"red"}" | |
TEST_ERROR_COLOR="${TEST_ERROR_COLOR:-"purple"}" | |
HAS_ERROR=0 |
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
import gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
import babel from 'gulp-babel'; | |
import sourcemaps from 'gulp-sourcemaps'; | |
import es from 'event-stream'; | |
import rename from 'gulp-rename'; | |
import uglify from 'gulp-uglify'; | |
const sassOpts = {outputStyle: 'compressed', errLogToConsole: true}; |
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
// Add action | |
wpdk_add_action( 'test_action', test_action ); | |
// Action function | |
function test_action() | |
{ | |
console.log( 'Fires test_action' ); | |
} | |
wpdk_do_action( 'test_action' ); |
NewerOlder