Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==UserScript==
// @name gunosy redirect
// @namespace gifnksm.hatenablog.jp
// @include https://gunosy.com/articles/*
// @version 1.0.2
// @grant none
// @downloadURL https://gist.github.com/gifnksm/cc0ae271dab4b31036d1/raw/gunosy_redirect.user.js
// @author NAKASHIMA, Makoto <makoto.nksm+github@gmail.com>
// ==/UserScript==
let links = Array.filter(document.querySelectorAll(".article_main > .article_media a"),
elem => elem.textContent === "元記事を読む");
for (let link of links) {
location.href = link.href;
}
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.