Removed rel="noopener" attrib from local links

This commit is contained in:
Bobby Wibowo 2020-04-07 01:50:15 +07:00
parent 091f386a3b
commit 589bf00dd9
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
8 changed files with 12 additions and 12 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -613,9 +613,9 @@ page.getUploads = (params = {}) => {
div.dataset.id = upload.id
if (upload.thumb !== undefined)
div.innerHTML = `<a class="image" href="${upload.file}" target="_blank" rel="noopener"><img alt="${upload.name}" data-src="${upload.thumb}"/></a>`
div.innerHTML = `<a class="image" href="${upload.file}" target="_blank"><img alt="${upload.name}" data-src="${upload.thumb}"/></a>`
else
div.innerHTML = `<a class="image" href="${upload.file}" target="_blank" rel="noopener"><h1 class="title">${upload.extname || 'N/A'}</h1></a>`
div.innerHTML = `<a class="image" href="${upload.file}" target="_blank"><h1 class="title">${upload.extname || 'N/A'}</h1></a>`
div.innerHTML += `
<input type="checkbox" class="checkbox" title="Select" data-index="${i}" data-action="select"${upload.selected ? ' checked' : ''}>
@ -687,7 +687,7 @@ page.getUploads = (params = {}) => {
tr.dataset.id = upload.id
tr.innerHTML = `
<td class="controls"><input type="checkbox" class="checkbox" title="Select" data-index="${i}" data-action="select"${upload.selected ? ' checked' : ''}></td>
<th><a href="${upload.file}" target="_blank" rel="noopener" title="${upload.file}">${upload.name}</a></th>
<th><a href="${upload.file}" target="_blank" title="${upload.file}">${upload.name}</a></th>
${params.album === undefined ? `<th>${upload.appendix}</th>` : ''}
<td>${upload.prettyBytes}</td>
${params.all ? `<td>${upload.ip || ''}</td>` : ''}
@ -1390,7 +1390,7 @@ page.getAlbums = (params = {}) => {
<th>${album.name}</th>
<th>${album.files}</th>
<td>${album.prettyDate}</td>
<td><a ${album.public ? `href="${albumUrl}"` : 'class="is-linethrough"'} target="_blank" rel="noopener">${albumUrl}</a></td>
<td><a ${album.public ? `href="${albumUrl}"` : 'class="is-linethrough"'} target="_blank">${albumUrl}</a></td>
<td class="has-text-right" data-id="${album.id}">
<a class="button is-small is-primary is-outlined" title="Edit album" data-action="edit-album">
<span class="icon is-small">

View File

@ -1,5 +1,5 @@
{
"1": "1586018964",
"1": "1586199007",
"2": "1581416390",
"3": "1581416390",
"4": "1581416390",

View File

@ -86,7 +86,7 @@
<div id="table" class="columns is-multiline is-mobile is-centered has-text-centered">
{% for file in files %}
<div class="image-container column">
<a class="image" href="{{ fileRoot }}/{{ file.name }}" target="_blank" rel="noopener">
<a class="image" href="{{ fileRoot }}/{{ file.name }}" target="_blank">
{% if file.thumb -%}
{% if nojs -%}
<img alt="{{ file.name }}" src="{{ fileRoot }}/{{ file.thumb }}" width="200" height="200" loading="lazy">

View File

@ -24,7 +24,7 @@
<article class="message">
<div class="message-body">
Unless I receive a copyright complain, or some other bullshit, I will.<br>
Logs of taken down files can be found <a href="https://safe.fiery.me/takedowns" target="_blank" rel="noopener">here</a>.<br>
Logs of taken down files can be found <a href="https://safe.fiery.me/takedowns" target="_blank">here</a>.<br>
<br>
However, we also have temporary uploads feature which will automatically delete your files after a certain period of time.<br>
You can configure this feature through our homepage's Config tab.
@ -105,7 +105,7 @@
<h2 class='subtitle'>Do you have a No-JS uploader form?</h2>
<article class="message">
<div class="message-body">
Yes, check out <a href="nojs" target="_blank" rel="noopener">this page</a>.
Yes, check out <a href="nojs" target="_blank">this page</a>.
</div>
</article>

View File

@ -143,7 +143,7 @@
<p class="descriptive-progress"></p>
<p class="error is-hidden"></p>
<p class="link is-hidden">
<a target="_blank" rel="noopener"></a>
<a target="_blank"></a>
</p>
<p class="help expiry-date is-hidden"></p>
<p class="clipboard-mobile is-hidden">

View File

@ -68,7 +68,7 @@
{%- endif %}
{% if file.url -%}
<p class="link">
<a href="{{ file.url }}" target="_blank" rel="noopener">{{ file.url }}</a>
<a href="{{ file.url }}" target="_blank">{{ file.url }}</a>
</p>
{%- endif %}
</div>