Skip to content

Commit

Permalink
remove isRedesign and try again
Browse files Browse the repository at this point in the history
  • Loading branch information
holyspiritomb committed Nov 30, 2023
1 parent 86612da commit 4cc82ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions goodreads-libby-adguard.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Goodreads Libby Results (forked)
// @namespace https://github.com/holyspiritomb
// @version 1.2.0
// @version 1.2.1
// @description Searches for the book you are looking at on Goodreads across all your libby libraries. Forked from Dylancyclone's script.
// @author holyspiritomb
// @updateURL https://raw.githubusercontent.com/holyspiritomb/goodreads-libby-userscript/main/goodreads-libby-adguard.user.js
Expand Down Expand Up @@ -88,8 +88,8 @@
}
let libbyContainer = document.createElement("div");
libbyContainer.id = "grLibbyBoxforked";
let libbyResultsHeader = isRedesign ? document.createElement("h4") : document.createElement("h2");
libbyResultsHeader.className = isRedesign ? "Text__title4" : "buyButtonContainer__title";
let libbyResultsHeader = document.createElement("h4");
libbyResultsHeader.className = "Text__title4";
libbyResultsHeader.innerHTML = "Libby Results";
libbyContainer.appendChild(libbyResultsHeader);
let libbyResultsContainer = document.createElement("div");
Expand Down
6 changes: 3 additions & 3 deletions goodreads-libby.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Goodreads Libby Results (forked)
// @namespace https://github.com/holyspiritomb
// @version 1.2.0
// @version 1.2.1
// @description Searches for the book you are looking at on Goodreads across all your libby libraries. Forked from Dylancyclone's script.
// @author holyspiritomb
// @updateURL https://raw.githubusercontent.com/holyspiritomb/goodreads-libby-userscript/main/goodreads-libby.user.js
Expand Down Expand Up @@ -87,8 +87,8 @@
}
let libbyContainer = document.createElement("div");
libbyContainer.id = "grLibbyBoxforked";
let libbyResultsHeader = isRedesign ? document.createElement("h4") : document.createElement("h2");
libbyResultsHeader.className = isRedesign ? "Text__title4" : "buyButtonContainer__title";
let libbyResultsHeader = document.createElement("h4");
libbyResultsHeader.className = "Text__title4";
libbyResultsHeader.innerHTML = "Libby Results";
libbyContainer.appendChild(libbyResultsHeader);
let libbyResultsContainer = document.createElement("div");
Expand Down

0 comments on commit 4cc82ed

Please sign in to comment.