- Joined
- Aug 15, 2012
- Messages
- 5,498
- Trophies
- 2
- Location
- netti netti.
- Website
- www.youtube.com
- XP
- 7,018
- Country
yes.
Now with a Tampermonkey Userscript you can help GBAtemp grow as a community better, and support the website you love.
Now with a Tampermonkey Userscript you can help GBAtemp grow as a community better, and support the website you love.
Code:
// ==UserScript==
// @name Please donate
// @version 1.0
// @description Donate
// @icon https://www.google.com/s2/favicons?sz=64&domain=gbatemp.net
// @match *gbatemp.net/threads/*
// @grant none
// ==/UserScript==
var posts = document.getElementsByClassName("bbWrapper");
for (let index = 0; index < posts.length; index++) {
const post = posts[index];
const original = post.innerHTML;
post.innerHTML = "<a href='https://gbatemp.net/account/upgrades' style='font-weight: normal; text-decoration: underline; text-decoration-style: dotted;'>" + original + "<span style='visibility: hidden; width: 120px; background-color: black; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 100%; left: 50%; margin-left: -60px;'>Browse GBAtemp ad-free and unlock other exclusive features</span></a>";
post.addEventListener("mouseover", function () {
post.innerHTML = "<a href='https://gbatemp.net/account/upgrades' style='font-weight: normal; text-decoration: underline; text-decoration-style: dotted;>" + original + "<span style='visibility: visible; width: 120px; background-color: black; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 100%; left: 50%; margin-left: -60px;'>Browse GBAtemp ad-free and unlock other exclusive features</span></a>";
});
post.addEventListener("mouseleave", function () {
post.innerHTML = "<a href='https://gbatemp.net/account/upgrades' style='font-weight: normal; text-decoration: underline; text-decoration-style: dotted;>" + original + "<span style='visibility: hidden; width: 120px; background-color: black; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 100%; left: 50%; margin-left: -60px;'>Browse GBAtemp ad-free and unlock other exclusive features</span></a>";
});
}