Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
samolukadjo committed Sep 23, 2024
1 parent d81ccb7 commit 6680551
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions userscript/Wungle Text For Tumblr.user.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// ==UserScript==
// @name Wungle Text For Tumblr
// @namespace lukadjo
// @version 2.0.1
// @version 2.1.0
// @description Hide text in plain sight, and find the text hidden by others.
// @author Lukadjo
// @match *://*.tumblr.com/*
// @icon https://raw.githubusercontent.com/samolukadjo/wungle-text-for-tumblr/main/icons/favicon.ico
// @homepage https://samolukadjo.github.io/wungle-text-for-tumblr/
// @resource https://raw.githubusercontent.com/samolukadjo/wungle-text-for-tumblr/refs/heads/main/wungle-extension/lib/3y3.js
// @grant none
// ==/UserScript==

Expand Down Expand Up @@ -148,6 +147,13 @@ function proccessPost(postToProccess) {
if (postHasSomethingThatCouldBeWungled(postToProccess)) {
const header = postToProccess.querySelector("header");
const wungleTextButton = createAWungleTextButtonAndReturnIt();
if (detect(postToProccess.innerHTML)) {
if (wungleTextButton.style.backgroundColor == "white") {
wungleTextButton.style.backgroundColor = "#1FEE1F";
} else {
wungleTextButton.style.backgroundColor = "green";
}
}

// Add the button to the header
header.appendChild(wungleTextButton);
Expand Down Expand Up @@ -175,7 +181,7 @@ function postHasSomethingThatCouldBeWungled(postToProccess) {

if (development) {
console.log(
"[Wungle Text]: The lengtht of the array of wunglable content is ",
"[Wungle Text]: The length of the array of wunglable content is ",
wunglablePostContentArray.length
);
}
Expand Down

0 comments on commit 6680551

Please sign in to comment.