Skip to content

Instantly share code, notes, and snippets.

@anekos
Created April 4, 2021 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anekos/38978f8335f5959d0ab25a23bde96bf6 to your computer and use it in GitHub Desktop.
Save anekos/38978f8335f5959d0ab25a23bde96bf6 to your computer and use it in GitHub Desktop.
getpocket でオリジナルのページに勝手に飛ぶ
// ==UserScript==
// @name Auto jump to origin - getpocket
// @namespace Violentmonkey Scripts
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://getpocket.com/read/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
let handle = setInterval(() => {
let externalLink = document.getElementById('reader.external-link.view-original')
if (externalLink) {
location.href = externalLink.href
clearInterval(handle)
}
}, 200)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment