Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to WebExtension (WIP) #176

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c106258
Un-obfuscate code
Cimbali Apr 6, 2018
4b17f6e
Change XUL to WebExt: keep the magic, drop the logic
Cimbali Apr 26, 2018
1522a7f
Move l10n to webext setup
Cimbali Apr 20, 2018
bf15e40
Add a background script to re-write URIs of requests
Cimbali Apr 25, 2018
c421bca
Add content script to re-write URIs in pages/on click
Cimbali Apr 25, 2018
0ca773a
Update count of, and notify about cleaned links
Cimbali Apr 26, 2018
da86103
Add options page, populate values & i18n strings
Cimbali Apr 26, 2018
23abe8c
Add options saving/loading/modifying
Cimbali Apr 29, 2018
201c976
Factorize option object->string serialization
Cimbali May 1, 2018
0551c96
Add configuration reset functionality
Cimbali May 1, 2018
840c5ba
Add names for icon variants
Cimbali May 1, 2018
74a6265
Fix on-click listener by forcing high handler priority
Cimbali May 1, 2018
e2fd85f
Implement tracking of whitelisted links in backend
Cimbali May 1, 2018
843767a
Respect event-mode option: do not always clean whole doc
Cimbali May 1, 2018
3b59089
Implement popup with whitelisting and on/off toggling
Cimbali May 1, 2018
9f35b4e
WebExtension: Pre-alpha -> Alpha
Cimbali May 1, 2018
b3a5868
Add support for clean-link to clipboard copying
Cimbali May 2, 2018
e89cd51
Make sure handleMessage returns a Promise
Cimbali May 6, 2018
d64d1d4
Update CleanLink context menu item when options change
Cimbali May 6, 2018
da48a19
Open cleaned links in new tabs/windows when requested
Cimbali May 6, 2018
bfacefb
Add a preference to know whether we switch to new tabs
Cimbali May 6, 2018
8159600
Updating options in injected scripts in tabs
Cimbali May 6, 2018
d36e3d5
Do not whitelist facebook by default
Cimbali May 13, 2018
689adcd
Clean redirects using "Location:" headers
Cimbali May 7, 2018
0c16959
Only enable modifying requests when OMR is enabled
Cimbali May 7, 2018
dc8f353
Honor the "enabled" setting and when it changes
Cimbali May 13, 2018
9e38a74
Add cleaning notifications to background cleaning
Cimbali May 13, 2018
d5379f9
Add rudimentary debug logging system
Cimbali May 13, 2018
282fb2f
Adjust default options
Cimbali May 13, 2018
098c08e
Update some messages
Cimbali May 13, 2018
ba0965c
Officially fork, bump alpha->beta1
Cimbali May 13, 2018
61ee3b5
Correct icon size in manifest
Cimbali May 13, 2018
294fa3e
Update regex-stripping of javacript: in links
Cimbali May 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 178 additions & 0 deletions _locales/de_DE/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"addon_description": {
"message": "Ersetzt verschachtelte/verschleierte Links zu authentischen sauberen Links",
"description": ""
},
"browser_status": {
"message": "Status:\u0020",
"description": ""
},
"browser_enabled": {
"message": "aktiviert",
"description": ""
},
"browser_disabled": {
"message": "deaktiviert",
"description": ""
},
"browser_enable": {
"message": "aktivieren",
"description": ""
},
"browser_disable": {
"message": "deaktivieren",
"description": ""
},
"browser_cleanedlinks": {
"message": "Gesäuberte Links:\u0020",
"description": ""
},
"browser_clicktheicon": {
"message": "Klicke das Symbol um\u0020",
"description": ""
},
"browser_regexerr": {
"message": "Fehler beim abarbeiten der CleanLinks Ausdrücke\u0020",
"description": ""
},
"browser_touch": {
"message": "CleanLinks Touch!",
"description": ""
},
"browser_hashtag": {
"message": "#",
"description": ""
},
"bootstrap_listheader_original": {
"message": "Original Link",
"description": ""
},
"bootstrap_listheader_cleaned": {
"message": "Gesäuberter Link",
"description": ""
},
"bootstrap_whitelist_button": {
"message": "Ausnahmeliste",
"description": ""
},
"bootstrap_whitelist_description": {
"message": "Dies ist eine aktuelle Sitzungsliste für die gereinigten Links und der Originale von denen sie kamen, für eine einfache Aufnahme in die Ausnahmeliste. Bitte beachten Sie, manchmal ist es besser teile der URL in den regulären Ausdruck hinzuzufügen.",
"description": ""
},
"skipwhen_title": {
"message": "Links mit folgendem Muster ausschließen:",
"description": ""
},
"skipwhen_tooltip": {
"message": "Dieser reguläre Ausdruck wird gegen die Links angewendet um beschädigte Links zu verhindern (case-sensitive)",
"description": ""
},
"remove_title": {
"message": "Aus Links entfernen:",
"description": ""
},
"remove_tooltip": {
"message": "Dieser reguläre Ausdruck wird genutzt um tracking Tags und ähnliches aus Links zu entfernen. (case-insensitive)",
"description": ""
},
"skipdoms_title": {
"message": "Domains überspringen:",
"description": ""
},
"skipdoms_tooltip": {
"message": "Kommaseparierte Liste der Domains deren Links nicht gesäubert werden.",
"description": ""
},
"highlight_title": {
"message": "Gesäuberte Links hervorheben?",
"description": ""
},
"hlstyle_emptytext": {
"message": "z.B. background:rgba(252,252,0,0.7); color: #000",
"description": ""
},
"hlstyle_title": {
"message": "Highlight Style",
"description": ""
},
"hlstyle_content": {
"message": "Wende diesen CSS Style auf gesäuberte Links an.",
"description": ""
},
"repdelay_title": {
"message": "Verzögerte Neuanwendung",
"description": ""
},
"repdelay_tooltip": {
"message": "Säuberung nach einstellten Sekunden erneut anwenden. Dies funktioniert nur im nicht-Delegationsmodus. Auf 0 setzen zum deaktivieren.",
"description": ""
},
"evdm_title": {
"message": "Event Delegations Modus",
"description": ""
},
"evdm_tooltip": {
"message": "Dies ist eine weniger aufwändige Methode, die auf click events wartet. Echtzeit Hervorhebung und Zähler funktionieren in diesem Modus nicht, dafür sollte die Performace viel besser sein.",
"description": ""
},
"cbc_title": {
"message": "CopyLink Controller?",
"description": ""
},
"cbc_tooltip": {
"message": "Dies installiert einen cmd_copyLink Controller um bei Menüaufrufen zum Link kopieren den Link zu säubern bevor er in die Zwischenablage kopiert wird.",
"description": ""
},
"progltr_title": {
"message": "Umleitungswächter nutzen?",
"description": ""
},
"progltr_tooltip": {
"message": "Aktiviere einen HTTP Wächter um 3xx Umleitungen zu erkennen. Dies sollte zum Beispiel erlauben Links zu säubern die hinter gekürzten URLs stehen.",
"description": ""
},
"gotarget_title": {
"message": "Folge Target Attribut?",
"description": ""
},
"gotarget_tooltip": {
"message": "Soll das target Attribut von Links geprüft und beachtet werden.",
"description": ""
},
"reset_tooltip": {
"message": "Auf Standardeinstellungen zurücksetzen.",
"description": ""
},
"reset_label": {
"message": "Einstellungen zurücksetzen",
"description": ""
},
"cltrack_title": {
"message": "Links Verfolgen",
"description": ""
},
"cltrackOLD_content": {
"message": "Diese Option verfolgt gesäuberte Links um ihre Domains durch Rechtsklick des Menübuttons einfach in die Ausnahmeliste einfügen zu können.",
"description": ""
},
"cltrack_content": {
"message": "Das Aktivieren dieser Option erlaubt die Nachverfolgung von gesäuberten Links um ihre Domains leichter mit einem Rechtsklick auf den Toolbar Button in die Ausnahmeliste aufnehmen zu können.",
"description": ""
},
"ignhttp_title": {
"message": "Nicht-http/s Links ignorieren",
"description": ""
},
"ignhttp_tooltip": {
"message": "Diese Option aktiviert, dass nicht-http/s Links bei der Prüfung nach verschachtelten Links ignoriert werden.",
"description": ""
},
"textcl_title": {
"message": "Erfasse Text Links",
"description": ""
},
"textcl_tooltip": {
"message": "Erlaubt klicken auf nicht verlinkte Text Links um die wie normale Links zu öffnen - Benötigt den Event Delegations Modus.",
"description": ""
}
}
190 changes: 190 additions & 0 deletions _locales/en_US/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
{
"addon_description": {
"message": "Converts obfuscated/nested links to genuine clean links",
"description": ""
},
"browser_status": {
"message": "Status:\u0020",
"description": ""
},
"browser_enabled": {
"message": "Enabled",
"description": ""
},
"browser_disabled": {
"message": "Disabled",
"description": ""
},
"browser_enable": {
"message": "enable",
"description": ""
},
"browser_disable": {
"message": "disable",
"description": ""
},
"browser_cleanedlinks": {
"message": "Cleaned Links:\u0020",
"description": ""
},
"browser_clicktheicon": {
"message": "Click the icon to\u0020",
"description": ""
},
"browser_regexerr": {
"message": "Error Processing CleanLinks Pattern\u0020",
"description": ""
},
"browser_touch": {
"message": "CleanLinks Touch!",
"description": ""
},
"browser_hashtag": {
"message": "#",
"description": ""
},
"bootstrap_listheader_original": {
"message": "Original Link",
"description": ""
},
"bootstrap_listheader_cleaned": {
"message": "Cleaned Link",
"description": ""
},
"bootstrap_whitelist_button": {
"message": "Whitelist Selection",
"description": ""
},
"bootstrap_whitelist_description": {
"message": "This is a current-session list for the cleaned links and the original they came from, for ease whitelisting. Please note you will be whitelisting whole websites, while sometimes it is good just picking a tag of the URL to add it to the \"matching\" option.",
"description": ""
},
"skipwhen_title": {
"message": "Skip Links matching with:",
"description": ""
},
"skipwhen_tooltip": {
"message": "This is a REGEXP Pattern urls will be checked against so that links to sharing platforms and such will not get broken. case-sensitive.",
"description": ""
},
"remove_title": {
"message": "Remove From Links:",
"description": ""
},
"remove_tooltip": {
"message": "This is a regexp pattern which will be applied over links to remove tracking tags and such. case-insensitive.",
"description": ""
},
"skipdoms_title": {
"message": "Skip Domains:",
"description": ""
},
"skipdoms_tooltip": {
"message": "Comma-separated list of domains whose links won't be cleared.",
"description": ""
},
"highlight_title": {
"message": "Highlight Cleaned Links?",
"description": ""
},
"hlstyle_emptytext": {
"message": "E.g. background:rgba(252,252,0,0.7); color: #000",
"description": ""
},
"hlstyle_title": {
"message": "Highlight Style",
"description": ""
},
"hlstyle_content": {
"message": "Apply this CSS Style to cleaned links.",
"description": ""
},
"repdelay_title": {
"message": "Replay Delay",
"description": ""
},
"repdelay_tooltip": {
"message": "Reapply cleaning of links after the specified number of seconds. This is for non-Delegation Mode only, set it to 0 to disable it.",
"description": ""
},
"evdm_title": {
"message": "Event Delegation Mode?",
"description": ""
},
"evdm_tooltip": {
"message": "This is a less intrusive mode by just listening to click events. Note that real-time highlighting and counters will not work then, even though the performance should be much better.",
"description": ""
},
"cbc_title": {
"message": "Copy clean links from the context menu",
"description": ""
},
"cbc_tooltip": {
"message": "This extendes the context-menu with a Copy Clean Link entry to clear links before being copied to the clipboard.",
"description": ""
},
"progltr_title": {
"message": "Use Redirect Watcher?",
"description": ""
},
"progltr_tooltip": {
"message": "Set up a HTTP Observer to catch 3xx redirections. For example, this should make possible to clear links hidden behind shortened URLs.",
"description": ""
},
"gotarget_title": {
"message": "Follow Target Attribute?",
"description": ""
},
"gotarget_tooltip": {
"message": "Whether the target attribute on links should be checked and respected.",
"description": ""
},
"reset_tooltip": {
"message": "Reset options to their default values.",
"description": ""
},
"reset_label": {
"message": "Reset Options",
"description": ""
},
"ignhttp_title": {
"message": "Ignore non-http/s links",
"description": ""
},
"ignhttp_tooltip": {
"message": "This options causes non-http/s links to be ignored when checking for nested urls on them.",
"description": ""
},
"textcl_title": {
"message": "Catch Text Links",
"description": ""
},
"textcl_tooltip": {
"message": "Allows clicking on non-clickable text-links to open them as normal links - Requires Event Delegation Mode.",
"description": ""
},
"cltrack_title": {
"message": "Link Tracking",
"description": ""
},
"cltrack_content": {
"message": "Enabling this option will perform tracking of cleaned links to easily whitelist their domains by right-clicking the toolbar button.",
"description": ""
},
"httpomr_title": {
"message": "Clean outgoing HTTP requests",
"description": ""
},
"httpomr_tootltip": {
"message": "Setup an http request listener that can clean links from outside firefox, or initiated automatically by a page such as refreshes.",
"description": ""
},
"switchToTab_title": {
"message": "Switch to tabs opened by clicking links?",
"description": ""
},
"switchToTab_tooltip": {
"message": "When you open a link in a new tab, switch to it immediately. This copies the same-named browser preference, that can not be accessed at present.",
"description": ""
}
}
Loading