Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TextFugu Navigation Visitation Fixer
// ==UserScript==
// @name TextFugu Navigation Visitation Fixer
// @namespace https://kyriasis.com/
// @version 0.1
// @description Remove #top from the end of navigation URLs so that they're listed as visited on the Lessons page.
// @author You
// @match http://www.textfugu.com/season-*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$('article>section>p>a[href]').each(function () {
this.href = this.href.replace(/#top/g, '');
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.