NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name DA notes button // @namespace // @version 0.3.5 // @description Put a notes button up on the bar since DA was stupid enough to remove it // @author Felina // @match https://www.deviantart.com/* // @grant none // @license MIT // @updateURL https://openuserjs.org/meta/Felina/DA_notes_button.meta.js // @downloadURL https://openuserjs.org/install/Felina/DA_notes_button.user.js // @copyright 2020, Felina (https://openuserjs.org/users/Felina) // @exclude https://www.deviantart.com/notifications/header* // @exclude https://www.deviantart.com/_adslot/* //With great thanks to the guys over at Stack Overflow https://stackoverflow.com/questions/62764859/greasemonkey-tempermonkey-script-for-deviantart // ==/UserScript== window.addEventListener("load", () => { addButton("Notes"); }); function addButton(text, onclick, cssObj) { cssObj = cssObj || { position: "fixed", top: "1%", right: "19%", "z-index": 20, fontWeight: "600", fontSize: "14px", backgroundColor: "#00b37a", color: "white", border: "none", height: "4%", padding: "0.5%", "text-align": "center" }; let button = document.createElement("button"); Object.assign(button.style, cssObj); button.addEventListener("click", function () { window.location.href = "https://www.deviantart.com/notifications/notes"; return false; }); button.innerHTML = text; document.body.appendChild(button); }