We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81bfc25 commit 753d50bCopy full SHA for 753d50b
1 file changed
plugins/domains/documentcloud.org.js
@@ -41,12 +41,8 @@ export default {
41
42
try {
43
var iframe = oembed.getIframe();
44
- var href = !hideTitle ? iframe.replaceQuerystring({ title: 1 }) : iframe.src;
45
-
46
- // Remove title attribute from HTML if hiding
47
- if (hideTitle) {
48
- html = html.replace(/\s+title="[^"]*"/g, '');
49
- }
+ // title=1 shows title (default since Jan 2025), title=0 hides it explicitly
+ var href = iframe.replaceQuerystring({ title: hideTitle ? 0 : 1 });
50
51
if (page && page !== '1') {
52
if (href) {
0 commit comments