Can't edit page. Need to temporarily disable JavaScript

Permalink
Hi,

I have a page which uses JavaScript to redirect to one of two pages based on whether it is currently winter or summer. The JavaScript is located in the content of the page and not a physical file.

I am trying edit the page so I go to the site map, click visit page, and.... I get redirected :(

Will I need to figure out which DB table and specific record holds this content or is there an easier way?

Thanks!

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
If you have added the script in an HTML block, see
https://c5magic.co.uk/addons/safe-html...
and in particular
https://c5magic.co.uk/addons/safe-html/fixing-broken-sites...
NotionCommotion replied on at Permalink Reply
Thanks John, Ended up finding the table (btContentLocal) and row using the following. Fortunately, I had some unique text to search on. Your way is the better way.

mysqldump -pPASSWORD database --extended=FALSE | grep pattern | less -S

On a related topic, where would you recommend placing such JS so one doesn't run into these issues? Guess I also could have included some script which detects if in editor mode maybe.