Last active
December 31, 2020 20:36
-
-
Save gogvale/3a81b2d439fe3be83ae83802178fe27c to your computer and use it in GitHub Desktop.
Fix HumbleBundle Blog "Buy Now" Link
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 Fix HumbleBundle Blog "Buy Now" Link | |
// @namespace Violentmonkey Scripts | |
// @match http://blog.humblebundle.com/* | |
// @match https://blog.humblebundle.com/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 12/31/2020, 2:08:32 PM | |
// ==/UserScript== | |
button = document.querySelector('a.wp-block-button__link.has-background'); | |
button.href = button.href === '' ? button.rel : button.href; | |
button.rel = "nofollow"; | |
button.target = "_blank"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment