Firefox Linux saves web pages with invalid characters
Hello! Faced such a problem. At work Ubuntu, at home - Win7, and there and there is the last Firefox 53.0.3 When you save a web page to a disk, Firefox in Win7 automatically removes invalid characters for Win, basically this ":" and "|" Firefox in Ubuntu does not do this, it saves along with such symbols, as a result files saved in Ubuntu, in Win, not that you can not open, Nor to delete, it is impossible to rename, because of such characters. Tell me, please, how to make Firefox in Ubuntu save web pages, just as it does in Win? Maybe what setting is in about: config or extension (addition)? Thank you very much in advance.
すべての返信 (1)
You would have to make sure to check the file name and remove invalid characters when you notice them.
Possible bookmarklet that you can use as a start to experiment:
javascript:/*set-title_cor-el*/(function(){ var test=1,d=document,title; function cu(t){var s={d:'_',f:'\"<>',r:'\'()'};return(t.replace(/.+/g,(function(r){var i,o='',p=0,t;for(i=0;t=r.charAt(i);i++){if(/[0-9a-z]/gi.test(t)){o+=t;p=0}else{z=s.f.indexOf(t);if(z>=0){o+=s.r.substr(z,1);p=0}else{if(!p){o+=s.d;p=1}}}}return(o)})))} function tr(t){return(t.replace(/^\s+|\s+$/g,""))} title=tr(cu(d.title)); if(test){title=prompt(d.title,title)} if(title){d.title=title} })()