Skip to content

Commit a692c51

Browse files
committed
Support new Libby design
1 parent 34886fd commit a692c51

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

goodreads-libby.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ window.addEventListener(
3232
const createLibbyButton = () => {
3333
let builderDiv = document.createElement("div")
3434
builderDiv.innerHTML = `
35-
<div class="menu-library-buttons">
36-
<button class="menu-library-buttons-add-library halo" role="button" type="button">
35+
<div class="summary-list-action">
36+
<button class="summary-list-action-add-library halo" role="button" type="button">
3737
<span role="text">Save Libraries (userscript)</span>
3838
</button>
3939
</div>
@@ -154,7 +154,7 @@ window.addEventListener(
154154
* so keep retrying until the container is ready
155155
*/
156156
const addLibbyButton = () => {
157-
let container = document.getElementsByClassName("menu-library-buttons")
157+
let container = document.getElementsByClassName("summary-list-section-actions")
158158
if (container && container[0]) {
159159
container[0].parentNode.insertBefore(
160160
createLibbyButton(),

0 commit comments

Comments
 (0)