Skip to content

Instantly share code, notes, and snippets.

@anekos

anekos/tobu.js

Created Apr 4, 2021
Embed
What would you like to do?
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