Skip to content

Commit

Permalink
1.7.5
Browse files Browse the repository at this point in the history
fix handling URLs with quotes (") (v2)
  • Loading branch information
Kaligula0 committed Mar 6, 2024
1 parent 41e3903 commit 497a71c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Bookmark Iconizer",
"short_name": "Bookmark Iconizer",
"version": "1.7.4",
"version": "1.7.5",
"author": "Kaligula",

"description": "Set your icons for bookmarks which came without it!",
Expand Down
2 changes: 1 addition & 1 deletion options.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function editBookmarks(){
for(var i=0;i<rows.length;i++){
var name=rows[i].querySelector('td.name a, td.name span').innerText;
if(name=='(bookmark without name)')name='';
var url=rows[i].querySelector('td.name a, td.name span').getAttribute('title').replace(/"/g,'&quot;').replace(/%22/g,'%2522').replace(/#/g,'%23');
var url=rows[i].querySelector('td.name a, td.name span').getAttribute('title').replace(/("|%22)/g,'%2522').replace(/#/g,'%23');
var dateadded=rows[i].querySelector('td.name a, td.name span').getAttribute('dateadded').substring(0,10);
var icon=rows[i].querySelector('td.base64 textarea').value;
text+='%09<DT><A HREF="'+url+'" ADD_DATE="'+dateadded+'" ICON="'+icon+'">'+name+'</A>%0D%0A';
Expand Down

0 comments on commit 497a71c

Please sign in to comment.