Compare commits
No commits in common. "6136bd5c1fd80078c6780bd0e847cfb5cf99e43c" and "0b6c3a2722314661c32e70402149ab5270e342a0" have entirely different histories.
6136bd5c1f
...
0b6c3a2722
5 changed files with 18 additions and 18 deletions
|
|
@ -1,14 +1,14 @@
|
|||
# Datenstrom Yellow extension settings
|
||||
|
||||
Extension: Externallinks
|
||||
Version: 0.9.2
|
||||
Description: Opens external links in a new tab.
|
||||
Version: 0.9.1
|
||||
Description: Open 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 09:20:00
|
||||
Status: available
|
||||
Published: 2026-05-28 08:45:00
|
||||
Status: experimental
|
||||
system/workers/externallinks.php: externallinks.php, create, update
|
||||
system/workers/externallinks.js: externallinks.js, create, update
|
||||
system/workers/externallinks.js: externallinks.js, create, update, careful
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
var links = document.querySelectorAll('a[href^="https://"], a[href^="http://"]');
|
||||
links.forEach(function(link) {
|
||||
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)) {
|
||||
link.setAttribute('target', '_blank');
|
||||
link.setAttribute('rel', 'noopener noreferrer');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
// Opens external links in a new tab, https://codeberg.org/simonpipe/yellow-externallinks
|
||||
// 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.2
|
||||
# Externallinks 0.9.1
|
||||
|
||||
Öffnet externe Links in einem neuen Tab.
|
||||
|
||||
|
|
@ -15,4 +15,3 @@ 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
|
||||
|
||||
Opens external links in a new tab.
|
||||
Open external links in a new tab.
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
@ -15,4 +15,3 @@ 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