Library Helper

A userscript that display links between different libraries and book stores.

< Feedback on Library Helper

Review: Good - script works

§
Posted: 2023-01-08
Edited: 2023-01-08

It seems their is a change for Bobigny's library site...
Example:
Recherche simple

I have added :
// @match https://bibliotheque-bobigny.siib.fr/detail-d-une-notice/notice/*

But that's not sufficient.

Xpath seems to need a change too.
I try to find the good xpath, but i am not enough good for that:
my test fails too with Firefox Quantum when trying to use a tool for testing xpath,
an error message said that's not possible select by xpath because the element is in shadow DOM...

Can you drop an eye on that?

Note:
If you add a way to use CSS selector too, it should be more easy for me to test tweaks...

Tested with:
- Geasemonkey 3.16 + Waterfox Classic
- Tampermonkey + Waterfox Classic
- Tampermonkey + Firefox Quantum

§
Posted: 2023-02-02

I notice i need add // @include too to can use it with Waterfox Classic + Greasemonkey 3.17 (the last old one)

After update v.1.14, testing with Firefox Quantum + Tampermonkey,
This code work for Library / Bibliothèque de Bobigny

In section:
var metadata_yaml =

bibliotheque.ville-bobigny.fr:
matches:
- "https://bibliotheque-bobigny.siib.fr/detail-d-une-notice/notice*"
type: 'XPATH'
metadata:
title: "//title"
authros: "//a[contains(@class, 'ntc-link-auteur')]"


In section:
var search_yaml =

Bobigny:
url: "https://bibliotheque-bobigny.siib.fr/recherche-catalogue/recherche-simple/simple/Mots%252BNotice/0/"
languages:
- "fr"
- "fr-ca"
- "fr-fr"
`;

Post reply

Sign in to post a reply.