ニュートピ!の「記事を読む」リンクを同じタブで開くリンク設置
// ==UserScript== // @name newtopi_link_open_same // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://newstopics.jp/url/* // @grant none // ==/UserScript== var result = document.evaluate('//div[@class="article_link"]/a[1]', document, null, 7, null); result.snapshotItem(0).insertAdjacentHTML('afterend', '<a href="' + result.snapshotItem(0).href + '">同じタブで開く</a>'); result.snapshotItem(1).insertAdjacentHTML('afterend', '<a href="' + result.snapshotItem(1).href + '">同じタブで開く</a>');
.article_link { display: flex; justify-content: space-around; }