create account

#Linux Set as random the Firefox browser homepage. by oneshot

View this thread on: hive.blogpeakd.comecency.com
· @oneshot · (edited)
$0.06
#Linux Set as random the Firefox browser homepage.
First of all put a list of selected urls (one per line) in a file called **`urls.txt`** and save it in **`~/.mozilla/firefox/*.default/urls.txt`**. Then put the follow code at the very begin of **`/usr/lib/firefox/firefox.sh`** (just below of the _"shabang"_ `#!/bin/sh`):
`ddrs=$(shuf-n1~/.mozilla/firefox/*.default/urls.txt)`
`nwli="user_pref(\"browser.startup.homepage\","$ddrs");"`
`sed-i"/browser.startup.homepage/c\\$nwli"~/.mozilla/firefox/*.default/prefs.js`
<center>[Related Thread](https://unix.stackexchange.com/questions/249885/help­on­edit­a­sed­statement)</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authoroneshot
permlinklinux-set-as-random-the-firefox-browser-homepage
categorybrowser
json_metadata{"tags":["browser","internet"],"app":"steemit/0.1","format":"markdown","links":["https://unix.stackexchange.com/questions/249885/help­on­edit­a­sed­statement"]}
created2017-04-13 17:57:39
last_update2017-04-13 18:01:24
depth0
children0
last_payout2017-04-20 17:57:39
cashout_time1969-12-31 23:59:59
total_payout_value0.054 HBD
curator_payout_value0.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length578
author_reputation2,618,161,935,301
root_title"#Linux Set as random the Firefox browser homepage."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,007,227
net_rshares489,327,755,439
author_curate_reward""
vote details (49)