Skip to content

Instantly share code, notes, and snippets.

@imtaehyun
Last active December 13, 2019 10:58
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 imtaehyun/2fccd89bcbcd950eca54019afc1eac03 to your computer and use it in GitHub Desktop.
Save imtaehyun/2fccd89bcbcd950eca54019afc1eac03 to your computer and use it in GitHub Desktop.
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