parent
9d62ddf1b0
commit
3f707bfd3a
|
@ -3,7 +3,7 @@ image: debian:latest
|
||||||
before_script:
|
before_script:
|
||||||
- export DEBIAN_FRONTEND= noninteractive
|
- export DEBIAN_FRONTEND= noninteractive
|
||||||
- apt-get update -y
|
- apt-get update -y
|
||||||
- apt-get install -y zip unzip jq nodejs
|
- apt-get install -y zip unzip nodejs
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
@ -23,30 +23,17 @@ hash rules:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
build firefox:
|
bundle addon:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- zip ClearUrls_firefox -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
|
- zip ClearUrls -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ClearUrls_firefox.zip
|
- ClearUrls.zip
|
||||||
|
|
||||||
build chrome:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- jq 'del(.applications)' manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
|
||||||
- zip ClearUrls_chrome -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
|
|
||||||
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- ClearUrls_chrome.zip
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
28
CHANGELOG.md
28
CHANGELOG.md
|
@ -4,6 +4,34 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.17.0] - 2020-04-14
|
||||||
|
|
||||||
|
### Compatibility note
|
||||||
|
- Require Firefox >= 55
|
||||||
|
- Require Chrome >= 22
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Updated some strings of Spanish translation
|
||||||
|
- Updated some strings of French translation
|
||||||
|
- Updated some strings of Italian translation
|
||||||
|
- Updated some strings of Russian translation
|
||||||
|
- Updated some strings of Swedish translation
|
||||||
|
- Updated some strings of Turkish translation
|
||||||
|
- Updated some strings of Ukrainian translation
|
||||||
|
- Updated some strings of Chinese Simple translation
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed a typo in the path to the Datatables JavaScript file
|
||||||
|
- Fixed [#445](https://gitlab.com/KevinRoebert/ClearUrls/issues/445)
|
||||||
|
- Fixed [#462](https://gitlab.com/KevinRoebert/ClearUrls/issues/462)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Added check for setBadgeTextColor function (only supported in Firefox)
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- Removed browser-polyfill content script import (seems no longer needed)
|
||||||
|
- Removed old `applications` value
|
||||||
|
|
||||||
## [1.16.0] - 2020-03-20
|
## [1.16.0] - 2020-03-20
|
||||||
|
|
||||||
### Compatibility note
|
### Compatibility note
|
||||||
|
|
|
@ -43,9 +43,7 @@ Reasoning for needed permissions can be found under [here](https://gitlab.com/Ke
|
||||||
## CI/CD Artifacts Download (for Firefox- and Chrome-Dev only)
|
## CI/CD Artifacts Download (for Firefox- and Chrome-Dev only)
|
||||||
Here you can download the packed files for the Firefox- and Chrome-Dev:
|
Here you can download the packed files for the Firefox- and Chrome-Dev:
|
||||||
|
|
||||||
[Firefox](https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/ClearUrls_firefox.zip?job=build%20firefox)
|
[<img src="promotion/download-128.png"/>](https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/ClearUrls.zip?job=bundle%20addon)
|
||||||
|
|
||||||
[Chrome](https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/ClearUrls_chrome.zip?job=build%20chrome)
|
|
||||||
|
|
||||||
## Test
|
## Test
|
||||||
If you want to test whether ClearURLs works correctly on your system, you can go to this test page: [https://kevinroebert.gitlab.io/ClearUrls/](https://kevinroebert.gitlab.io/ClearUrls/)
|
If you want to test whether ClearURLs works correctly on your system, you can go to this test page: [https://kevinroebert.gitlab.io/ClearUrls/](https://kevinroebert.gitlab.io/ClearUrls/)
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
* Filters eTag headers from web requests.
|
* Filters eTag headers from web requests.
|
||||||
*/
|
*/
|
||||||
function eTagFilter(requestDetails) {
|
function eTagFilter(requestDetails) {
|
||||||
if(!requestDetails.responseHeaders || !storage.eTagFiltering) return {};
|
if(!requestDetails.responseHeaders || !storage.eTagFiltering
|
||||||
|
|| storage.localHostsSkipping && checkLocalURL(requestDetails.url)) return {};
|
||||||
const responseHeaders = requestDetails.responseHeaders;
|
const responseHeaders = requestDetails.responseHeaders;
|
||||||
|
|
||||||
const filteredHeaders = responseHeaders.filter(header => {
|
const filteredHeaders = responseHeaders.filter(header => {
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
ele.type = 'text/javascript';
|
ele.type = 'text/javascript';
|
||||||
ele.textContent = "Object.defineProperty(window, 'rwt', {" +
|
ele.textContent = "Object.defineProperty(window, 'rwt', {" +
|
||||||
" value: function() { return false; }," +
|
" value: function() { return true; }," +
|
||||||
" writable: false," +
|
" writable: false," +
|
||||||
" configurable: false" +
|
" configurable: false" +
|
||||||
"});";
|
"});";
|
||||||
|
|
|
@ -233,10 +233,14 @@ function setBadgedStatus() {
|
||||||
browser.browserAction.setBadgeBackgroundColor({
|
browser.browserAction.setBadgeBackgroundColor({
|
||||||
'color': color
|
'color': color
|
||||||
}).catch(handleError);
|
}).catch(handleError);
|
||||||
|
|
||||||
|
// Works only in Firefox: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserAction/setBadgeTextColor#Browser_compatibility
|
||||||
|
if (getBrowser() === "Firefox") {
|
||||||
browser.browserAction.setBadgeTextColor({
|
browser.browserAction.setBadgeTextColor({
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
}).catch(handleError);
|
}).catch(handleError);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,7 +287,7 @@ Object.prototype.getOrDefault = function (key, defaultValue) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleError(error) {
|
function handleError(error) {
|
||||||
console.log(translate('core_error') + ":" + error);
|
console.log("[ClearURLs ERROR]:" + error);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1603,8 +1603,8 @@
|
||||||
"redirections": [],
|
"redirections": [],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
},
|
},
|
||||||
"tb.com": {
|
"tb.cn": {
|
||||||
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(tb)(\\.com).*",
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(tb)(\\.cn).*",
|
||||||
"completeProvider": false,
|
"completeProvider": false,
|
||||||
"rules": [
|
"rules": [
|
||||||
"sm"
|
"sm"
|
||||||
|
@ -1627,7 +1627,9 @@
|
||||||
],
|
],
|
||||||
"referralMarketing": [],
|
"referralMarketing": [],
|
||||||
"rawRules": [],
|
"rawRules": [],
|
||||||
"exceptions": [],
|
"exceptions": [
|
||||||
|
".*(api\\.bilibili\\.com)\\/.*"
|
||||||
|
],
|
||||||
"redirections": [],
|
"redirections": [],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ClearURLs",
|
"name": "ClearURLs",
|
||||||
"version": "1.16.0",
|
"version": "1.17.0",
|
||||||
"author": "Kevin Röbert",
|
"author": "Kevin Röbert",
|
||||||
"description": "__MSG_extension_description__",
|
"description": "__MSG_extension_description__",
|
||||||
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"applications": {
|
|
||||||
"gecko": {
|
|
||||||
"id": "{74145f27-f039-47ce-a470-a662b129930a}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "img/clearurls_16x16.png",
|
"16": "img/clearurls_16x16.png",
|
||||||
"19": "img/clearurls_19x19.png",
|
"19": "img/clearurls_19x19.png",
|
||||||
|
@ -74,14 +69,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
|
||||||
"matches": [
|
|
||||||
"<all_urls>"
|
|
||||||
],
|
|
||||||
"js": [
|
|
||||||
"browser-polyfill.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"all_frames": true,
|
"all_frames": true,
|
||||||
"matches": [
|
"matches": [
|
||||||
|
|
BIN
promotion/download-128.png
Normal file
BIN
promotion/download-128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user