Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GeekNews 기사 링크를 새탭열기로 바꿔주는 Greasemonkey script 입니다.
// ==UserScript==
// @name GeekNews Helper
// @namespace https://news.hada.io/
// @version 0.2
// @description GeekNews helper
// @author nezz
// @include https://news.hada.io/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
Array.from(document.getElementsByClassName('topictitle')).forEach((el) => {el.getElementsByTagName('a')[0].setAttribute('target', '_blank');});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment