Skip to content

Commit

Permalink
Fix extension for firefox, update extension polyfil, drop opera. (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
travispaul committed Dec 13, 2022
1 parent 75ff92a commit c18489c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 91 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/mirror.yml

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.1] - 2022-12-11

### Fixed

- [Extension no longer works with latest builds of Firefox #26](https://github.com/HarmlessSystems/security.txt/issues/26)

### Deprecated

- Removed Opera support.

## [1.1.0] - 2020-06-19

### Added
Expand Down
14 changes: 1 addition & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const browsers = ['firefox', 'chrome', 'opera', 'edge'];
const browsers = ['firefox', 'chrome', 'edge'];

module.exports = function(grunt) {

Expand Down Expand Up @@ -108,17 +108,6 @@ module.exports = function(grunt) {
dest: '/'
}]
},
opera: {
options: {
archive: `build/release/${packageJSON.name}-${packageJSON.version}-opera.zip`
},
files: [{
expand: true,
cwd: 'build/opera',
src: ['**'],
dest: '/'
}]
},
edge: {
options: {
archive: `build/release/${packageJSON.name}-${packageJSON.version}-edge.zip`
Expand Down Expand Up @@ -228,7 +217,6 @@ module.exports = function(grunt) {
'default',
'compress:firefox',
'compress:chrome',
'compress:opera',
'compress:edge'
]);
};
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ will be displayed which you can click to view the files.
- [Firefox Add-ons](https://addons.mozilla.org/addon/security-txt/)
- [Chrome Web Store](https://chrome.google.com/webstore/detail/securitytxt/enhcidlgmnmolephljjhbgfnjlfjnimd)
- [Edge Addons](https://microsoftedge.microsoft.com/addons/detail/hfhegbhdofjdepaelheapbihjlhkaofj)
- [Opera Addons (⏳ pending moderation approval)](https://addons.opera.com/en/extensions/details/securitytxt/)

## Building

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "security.txt",
"version": "1.1.0",
"version": "1.1.1",
"description": "Cross-platform browser extension for security.txt and humans.txt files.",
"homepage": "https://www.harmless.systems/products/security-txt.html",
"main": "Gruntfile.js",
Expand All @@ -25,6 +25,6 @@
"load-grunt-tasks": "^5.1.0",
"lodash": "^4.17.21",
"minimatch": "^3.0.4",
"webextension-polyfill": "^0.6.0"
"webextension-polyfill": "^0.10.0"
}
}
6 changes: 3 additions & 3 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function setBadge(tabId, title, icon, action, popup) {

browser.pageAction.setPopup({
tabId,
popup: popup
popup
});

browser.pageAction.setIcon({
Expand Down Expand Up @@ -101,7 +101,7 @@ function fetchFilesFromHost(context, next) {
}
// XXX I've encountered at least one site (netflix.com) where a HEAD
// doesn't work on a humans.txt file (403 response). While odd, in all
// fairness, the "humans.txt" files is intedned for "humans" who wouldn't
// fairness, the "humans.txt" files is intended for "humans" who wouldn't
// be making HEAD requests but rather navigating to the URL manually.
const url = `${protocol}//${host}/humans.txt`;
fetch(url).then((result) => {
Expand Down Expand Up @@ -227,7 +227,7 @@ function runtimeOnInstalled(details) {
try {
browser.tabs.onUpdated.addListener(tabsOnUpdated, {
urls: ['http://*/*', 'https://*/*'],
properties: ['status']
properties: ['url']
});
} catch (e) {
// Chrome/Opera/Edge do not support filters on tabs.onUpdated
Expand Down
33 changes: 0 additions & 33 deletions src/manifest.opera.json

This file was deleted.

22 changes: 4 additions & 18 deletions src/release-v1.1.0.html → src/release-v1.1.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,15 @@ <h3><span data-i18n="release_intro"> </span><span class="current-version"></span

<h3 data-i18n="feature_headline"></h3>
<ul>
<li>You can now exclude the searching of specific domains. See the extension <a href="options.html">preferences</a>.</li>
<li>Automatically switch UI between light and dark modes.</li>
<li>Better handling of concurrent HTTP requests.</li>
<li>Added German translation.</li>
<li>Fix bug preventing extension from working on latest Firefox releases <a href="https://github.com/HarmlessSystems/security.txt/issues/26">#26</a></li>
<li>Several dependency updates since last release.</li>
<li>Opera dropped from official support list.</li>
</ul>

<h3 data-i18n="thanks_headline"></h3>
<ul>
<li><a href="https://github.com/geeknik">Geeknik</a> for reporting <a href="https://github.com/HarmlessSystems/security.txt/issues/6">issue #6</a>.</li>
<li><a href="https://www.fiverr.com/thomashorton799">Mirabellabertrands Thomas</a> for creating German translations. <em>Vielen Dank!</em></li>
<li><a href="https://www.fiverr.com/dawnrflores">Dawn Flores</a> for updated Tagalog translations. <em>Salamat!</em></li>
<li><a href="https://www.fiverr.com/regina_william">regina_william</a> for updated French translations. <em>Merci!</em></li>
<li><a href="https://www.fiverr.com/sangyoonkim">Sangyoon 'Yunisito' Kim</a> for updated Korean translations. <em>감사합니다!</em></li>
<li><a href="https://github.com/geeknik">Geeknik</a> for reporting <a href="https://github.com/HarmlessSystems/security.txt/issues/26">issue #26</a>.</li>
</ul>

<h3 data-i18n="deprecations_headline"></h3>
<ul>
<li>
As of 2020-06-12 our original submission to the Opera store has been pending review for 6 months. As such, this will be the last release to support Opera unless the extension review process is drastically improved.
Opera users will still be able to manually install either the Chrome or Edge releases but support will be limited.
</li>
</ul>

<hr>
<h3 data-i18n="more_info"></h3>
<p>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2793,10 +2793,10 @@ watchify@^4.0.0:
through2 "^4.0.2"
xtend "^4.0.2"

webextension-polyfill@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.6.0.tgz#1afd925f3274a0d4848083579b9c0b649a5c6763"
integrity sha512-PlYwiX8e4bNZrEeBFxbFFsLtm0SMPxJliLTGdNCA0Bq2XkWrAn2ejUd+89vZm+8BnfFB1BclJyCz3iKsm2atNg==
webextension-polyfill@^0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz#ccb28101c910ba8cf955f7e6a263e662d744dbb8"
integrity sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==

which-boxed-primitive@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit c18489c

Please sign in to comment.