This file contains hidden or 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 canonical-link | |
// @namespace http://www.hatena.ne.jp/hitode909 | |
// @include * | |
// ==/UserScript== | |
(function() { | |
if (window != window.parent) { | |
return; | |
} |
This file contains hidden or 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
// ============================================================ // | |
// Inside of PRESERVE area. | |
// ============================================================ // | |
function transposeSubString(input, beg, end, to) { | |
let txt = input.value; | |
let head = txt.slice(0, beg); | |
let left = txt.slice(beg, end); | |
let right = txt.slice(end, to); |
This file contains hidden or 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 mltag | |
// @namespace http://jarp.does.notwork.org/userscripts | |
// @description Looks for things in the page that look like ML-tags but aren't hyperlinked, and converts them to clickable links. | |
// @include * | |
// ==/UserScript== | |
(function () { | |
const urlRegex = /\[(ruby[\w\-]+):0*(\d+)\]/ig; | |