Skip to content

Commit

Permalink
fixed #14 - transform urls into clickable links on the page
Browse files Browse the repository at this point in the history
Case:

- visit page where URLs are in plain text instead of clickable url
- select url and copy paste into address bar

Solution:

- new setting automakelinks transforms pages automatically
- new command makeLinks transforms them on command

New settings:

- set automakelinks

New Command:

- map ml makeLinks
  • Loading branch information
hbt committed Jan 11, 2017
1 parent 5bd7b38 commit ba34618
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions background_scripts/options.js
Expand Up @@ -6,6 +6,7 @@ var defaultSettings = {
experimental: false,
searchlimit: 25,
scrollstep: 70,
automakelinks: false,
fullpagescrollpercent: 0,
typelinkhintsdelay: 300,
qmarks: {},
Expand Down
3 changes: 3 additions & 0 deletions content_scripts/keys.js
Expand Up @@ -924,5 +924,8 @@ window.addEventListener('DOMContentLoaded', function() {
alert(message);
}
});
if(settings.automakelinks) {
document.body.innerHTML = document.body.innerHTML.transformURL()
}
}
});
3 changes: 3 additions & 0 deletions content_scripts/mappings.js
Expand Up @@ -797,6 +797,9 @@ Mappings.actions = {
RUNTIME('copyURLDownloads', function(o) {
console.log(o)
})
},
makeLinks: () => {
document.body.innerHTML = document.body.innerHTML.transformURL()
}

};
Expand Down

0 comments on commit ba34618

Please sign in to comment.