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-01 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
[] |
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
// 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
# html5 pushstate (history) support: | |
<ifModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !index | |
RewriteRule (.*) index.html [L,QSA] | |
</ifModule> |
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
/** | |
* Adapted from https://gist.github.com/hdragomir/8f00ce2581795fd7b1b7 | |
* This version tries to load the font from localStorage. If it's not there it simply adds a link to the stylesheet | |
* and ajaxes the contents in on load. This makes an extra request. But adding the stylesheet link renders quicker than | |
* waiting for a response to the ajax request and then injecting the contents into a style tag, hopefully minimising the | |
* FOUT you get when you view http://www.theguardian.com/ and http://www.smashingmagazine.com. | |
*/ | |
(function () { | |
"use strict"; | |
// Once cached the css file is stored on the client forever. To invalidate the cache change this URL. |
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}; |
NewerOlder