From 480bf91811a4cdd39f8011f964c830d6052a3920 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 9 Aug 2019 15:15:42 +0200 Subject: [PATCH] mastodon_cw_toggle: Convert a to button. --- fediverse/mastodon_cw_toggle.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediverse/mastodon_cw_toggle.user.js b/fediverse/mastodon_cw_toggle.user.js index 69c7c36..fe37371 100644 --- a/fediverse/mastodon_cw_toggle.user.js +++ b/fediverse/mastodon_cw_toggle.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Mastodon CW toggle // @description Adds a button to toggle the visibility of all statuses with content warnings on status-pages and profile-pages. -// @version 2019.06.06.3 +// @version 2019.08.09.1 // @author tastytea // @copyright 2019, tastytea (https://tastytea.de/) // @license GPL-3.0-only @@ -65,7 +65,7 @@ function add_button() div.setAttribute("style", "margin-bottom: 0.5em;"); // Create the button. - const button = document.createElement("a"); + const button = document.createElement("button"); button.setAttribute("class", "status__content__spoiler-link"); button.appendChild(document.createTextNode("Toggle all CWs"));