Skip to content

Instantly share code, notes, and snippets.

@gifnksm
Last active November 28, 2015 03:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gifnksm/cc0ae271dab4b31036d1 to your computer and use it in GitHub Desktop.
Save gifnksm/cc0ae271dab4b31036d1 to your computer and use it in GitHub Desktop.
// ==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