Created
April 4, 2021 11:41
-
-
Save anekos/38978f8335f5959d0ab25a23bde96bf6 to your computer and use it in GitHub Desktop.
getpocket でオリジナルのページに勝手に飛ぶ
This file contains 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 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