-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwidget--latest-newsletter-GcnSRFDE.html
More file actions
35 lines (35 loc) · 1.09 KB
/
Copy pathwidget--latest-newsletter-GcnSRFDE.html
File metadata and controls
35 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<style>
#s-lg-rss-71118539 .s-lg-rss-list {
margin-block-end: 30px;
padding: 0
}
#s-lg-rss-71118539 .s-lg-rss-list-item { list-style-type: none }
#s-lg-rss-71118539 .s-lg-title {
background-color: #19747d;
color: #fff;
padding: 0.3em 0.6em;
border-radius: 0.25em;
}
#s-lg-rss-71118539 .s-lg-title::before {
content: "\f1ea";
font-family: "FontAwesome";
padding: 0 10px 0 0;
}
#s-lg-rss-71118539 .s-lg-title a { color: #fff }
#s-lg-rss-71118539 .s-lg-rss-date { display: none }
#s-lg-rss-71118539 .s-lg-rss-links { display: none }
</style>
<script>
const targetNode = document.getElementById("s-lg-rss-71118539");
const observerOptions = { childList: true };
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
observer.disconnect();
const link = targetNode.querySelector(".s-lg-title a");
link.removeAttribute("target");
link.innerText = "Read All Library News";
link.href = "/blog";
});
});
observer.observe(targetNode, observerOptions);
</script>