Switched from geckodriver to chrome
This commit is contained in:
16
chrome/change_configuration.sh
Normal file
16
chrome/change_configuration.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
if [ -d "/user_data/news_fetch.profile" ]
|
||||
then
|
||||
echo "Profile already exists, skipping creation"
|
||||
else
|
||||
google-chrome &
|
||||
sleep 5
|
||||
cp -r /home/seluser/.config/google-chrome/Default /user_data/news_fetch.profile
|
||||
PID=$(pidof chrome)
|
||||
echo "Now killing processes with pid:" $PID
|
||||
kill $PID
|
||||
cd /user_data/news_fetch.profile
|
||||
wget https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip
|
||||
unzip master
|
||||
fi
|
||||
|
||||
google-chrome --user-data-dir=/user_data/news_fetch.profile
|
Reference in New Issue
Block a user