Created
July 2, 2020 06:14
-
-
Save dance2die/b49d0f8f9e8319ff36dd745c4bd4bcab to your computer and use it in GitHub Desktop.
To view all dev.to article links easily without hovering over each one
This file contains 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 dev.to | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://dev.to/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
document.querySelectorAll('#article-body a').forEach(a => a.insertAdjacentHTML('beforeEnd', `➡<strong style="color: red">${a.href}</strong>`)) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment