Skip to content

Instantly share code, notes, and snippets.

@blineberry
blineberry / supportsWebmentionsBookmarklet.js
Last active May 3, 2024 18:24
Supports Webmentions? Bookmarklet
javascript: (() => {
// Set some strings for the common result scenarios.
const support = "Page supports webmentions!";
const noSupport = "Page does not support webmentions :(";
// Create a dialog element and insert into the DOM.
let d = document.createElement('dialog');
document.getElementsByTagName('body')[0].appendChild(d);
// Remove the dialog element when it's closed.
@blineberry
blineberry / supportsWebmentionsBookmarklet.js
Created May 3, 2024 13:55
Supports Webmentions? Bookmarklet
javascript: (() => {
// Set some strings for the common result scenarios.
const support = "Page supports webmentions!";
const noSupport = "Page does not support webmentions :(";
// Create a dialog element and insert into the DOM.
let d = document.createElement('dialog');
document.getElementsByTagName('body')[0].appendChild(d);
// Remove the dialog element when it's closed.
var $Q;
var qd;
var q;
var pmd = {
getMessagesFromEmbeddedData: function() {
try {
let messages = Qualtrics.SurveyEngine.getEmbeddedData('messages');
if (Array.isArray(messages)) {
@blineberry
blineberry / gist:3d51e6b79b278f1fedea
Created October 6, 2014 19:00
Cascade Responsive Images
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="system-index-block">
<xsl:apply-templates select="calling-page/system-page/system-data-structure"/>
</xsl:template>
<xsl:template match="system-data-structure">
<!-- apply templates for content areas -->
<div class="main">