Compare commits

...

10 commits

Author SHA1 Message Date
simonpipe
6136bd5c1f formating 2026-05-28 11:38:25 +02:00
simonpipe
fdfbddddad Update extension.ini 2026-05-28 09:29:36 +02:00
simonpipe
b9ff816465 Update readme.md 2026-05-28 09:28:26 +02:00
simonpipe
a957ae0ecc Update extension.ini 2026-05-28 09:28:16 +02:00
simonpipe
b0e056806f Update externallinks.php 2026-05-28 09:28:05 +02:00
simonpipe
f40553800d Update externallinks.php 2026-05-28 09:26:15 +02:00
simonpipe
39c03d4eb6 Update externallinks.js 2026-05-28 09:24:49 +02:00
simonpipe
abd0a2d89e Update extension.ini 2026-05-28 09:21:22 +02:00
simonpipe
1f5bdb31e6 Update extension.ini 2026-05-28 09:20:48 +02:00
simonpipe
6a89fc7e25 Update readme-de.md 2026-05-28 09:20:34 +02:00
5 changed files with 18 additions and 18 deletions

View file

@ -1,14 +1,14 @@
# Datenstrom Yellow extension settings
Extension: Externallinks
Version: 0.9.1
Description: Open external links in a new tab.
Version: 0.9.2
Description: Opens external links in a new tab.
Developer: Simon Rohr
Tag: feature
DownloadUrl: https://codeberg.org/simonpipe/yellow-externallinks/archive/main.zip
DocumentationUrl: https://codeberg.org/simonpipe/yellow-externallinks
DocumentationLanguage: en, de
Published: 2026-05-28 08:45:00
Status: experimental
Published: 2026-05-28 09:20:00
Status: available
system/workers/externallinks.php: externallinks.php, create, update
system/workers/externallinks.js: externallinks.js, create, update, careful
system/workers/externallinks.js: externallinks.js, create, update

View file

@ -1,4 +1,3 @@
document.addEventListener('DOMContentLoaded', function() {
var links = document.querySelectorAll('a[href^="https://"], a[href^="http://"]');
links.forEach(function(link) {
if (!link.href.includes(window.location.hostname)) {
@ -6,4 +5,3 @@ document.addEventListener('DOMContentLoaded', function() {
link.setAttribute('rel', 'noopener noreferrer');
}
});
});

View file

@ -1,5 +1,5 @@
<?php
// External links in a new tab, https://codeberg.org/simonpipe/yellow-externallinks
// Opens external links in a new tab, https://codeberg.org/simonpipe/yellow-externallinks
class YellowExternallinks {
const VERSION = "0.9.2";

View file

@ -1,6 +1,6 @@
<p align="right"><a href="https://codeberg.org/simonpipe/yellow-externallinks/src/branch/main/readme-de.md">Deutsch</a> &nbsp; <a href="https://codeberg.org/simonpipe/yellow-externallinks/src/branch/main/readme.md">English</a></p>
# Externallinks 0.9.1
# Externallinks 0.9.2
Öffnet externe Links in einem neuen Tab.
@ -15,3 +15,4 @@ Das Plugin funktioniert vollautomatisch. Links zu externen Websites werden in ei
## Entwickler
Simon Rohr
*Fediverse: <a href="https://snac.thepipes.ch/simon">@simon@snac.thepipes.ch</a>*

View file

@ -2,7 +2,7 @@
# Externallinks 0.9.2
Open external links in a new tab.
Opens external links in a new tab.
## Installation
@ -15,3 +15,4 @@ The plugin works fully automatically. Links to an external website are opened in
## Developer
Simon Rohr
*Fediverse: <a href="https://snac.thepipes.ch/simon">@simon@snac.thepipes.ch</a>*