Skip to content

Instantly share code, notes, and snippets.


Toby tobybot

View GitHub Profile
tobybot / supper.js
Created Feb 28, 2020
Automatically superscript special marks
View supper.js
// superscript all reg, copy, and dagger symbols and add "regmark" class
jQuery(document).ready(function ($) {
// Find symbols & replace if they aren't inside a sup tag or a .nosup classed element
$('body :not(script,sup,.nosup)').contents().filter(function () {
return this.nodeType === 3;
}).replaceWith(function () {
return this.nodeValue.replace(/([®©†™])/gi, '<sup class="regmark">$&</sup>');
View ssb-interop.js
* The preload script needs to stay in regular ole JavaScript, because it is
* the point of entry for electron-compile.
const allowedChildWindowEventMethod = [
You can’t perform that action at this time.