Compare commits
10 commits
0b6c3a2722
...
6136bd5c1f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6136bd5c1f | ||
|
|
fdfbddddad | ||
|
|
b9ff816465 | ||
|
|
a957ae0ecc | ||
|
|
b0e056806f | ||
|
|
f40553800d | ||
|
|
39c03d4eb6 | ||
|
|
abd0a2d89e | ||
|
|
1f5bdb31e6 | ||
|
|
6a89fc7e25 |
5 changed files with 18 additions and 18 deletions
|
|
@ -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
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var links = document.querySelectorAll('a[href^="https://"], a[href^="http://"]');
|
||||
links.forEach(function(link) {
|
||||
var links = document.querySelectorAll('a[href^="https://"], a[href^="http://"]');
|
||||
links.forEach(function(link) {
|
||||
if (!link.href.includes(window.location.hostname)) {
|
||||
link.setAttribute('target', '_blank');
|
||||
link.setAttribute('rel', 'noopener noreferrer');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<p align="right"><a href="https://codeberg.org/simonpipe/yellow-externallinks/src/branch/main/readme-de.md">Deutsch</a> <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>*
|
||||
|
|
|
|||
|
|
@ -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>*
|
||||
Loading…
Reference in a new issue