Last active
December 13, 2019 10:58
-
-
Save imtaehyun/2fccd89bcbcd950eca54019afc1eac03 to your computer and use it in GitHub Desktop.
GeekNews 기사 링크를 새탭열기로 바꿔주는 Greasemonkey script 입니다.
This file contains hidden or 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 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