Clear browsing history in Firefox with iMacros

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
alduin_blood
Posts: 4
Joined: Mon Jul 15, 2019 9:43 am

Clear browsing history in Firefox with iMacros

Post by alduin_blood » Mon Jul 15, 2019 9:52 am

I want to clear browsing history using iMacros but iMacros's clear command doesn't do enough.

There is the URL: [url]chrome://browser/content/sanitize.xul[/url] when entered in firefox address bar opens up a page to clear everything on the press of clear now button. I used iMacros to record it but iMacros is not recording the clicking of Clear Now button.

Code: Select all

VERSION BUILD=10021450
TAB OPEN
TAB T=2
URL GOTO=chrome://browser/content/sanitize.xul
TAG POS=1 TYPE=BUTTON ATTR=TXT:Clear<SP>Now
The TAG line in the code is self written (Not recorded by iMacros) and I don't know if this works because on playing the macros is getting stuck on 4th line, it is not able to open the URL. Please help me out
chivracq
Posts: 8436
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Clear browsing history in Firefox with iMacros

Post by chivracq » Mon Jul 15, 2019 10:01 am

alduin_blood wrote:
Mon Jul 15, 2019 9:52 am
I want to clear browsing history using iMacros but iMacros's clear command doesn't do enough.

There is the URL: [url]chrome://browser/content/sanitize.xul[/url] when entered in firefox address bar opens up a page to clear everything on the press of clear now button. I used iMacros to record it but iMacros is not recording the clicking of Clear Now button.

Code: Select all

VERSION BUILD=10021450
TAB OPEN
TAB T=2
URL GOTO=chrome://browser/content/sanitize.xul
TAG POS=1 TYPE=BUTTON ATTR=TXT:Clear<SP>Now
The TAG line in the code is self written (Not recorded by iMacros) and I don't know if this works because on playing the macros is getting stuck on 4th line, it is not able to open the URL. Please help me out
Oh...!, good-good... (for opening a Thread on "our" Forum), but hum, you still haven't found the meaning of "(F)CIM", ah-ah...! :(
=> FCIM...! :mrgreen: (Read my Sig...)
=> iMacros for FF v10.0.2, 'Free'/'PE'...?, FF v...?, OS...?
(From SOF)

There is a similar query on iMacros forum but it hasn't been answered so I preferred to post it here. – [Aman Singhal 26 mins ago]
=> Link to that Thread...?

>>>

+ Parallel Thread on SOF:
- Clear browsing history in Firefox with iMacros
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
alduin_blood
Posts: 4
Joined: Mon Jul 15, 2019 9:43 am

Re: Clear browsing history in Firefox with iMacros

Post by alduin_blood » Mon Jul 15, 2019 10:43 am

Sorry for that I didn't know CIM
iMacros for FF v10.0.2, Free, Firefox Ver. 68.0 (64-bit), OS: Windows 10

Thread link you asked for
viewtopic.php?f=2&t=15629&p=44468&hilit ... ory#p44468
chivracq
Posts: 8436
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Clear browsing history in Firefox with iMacros

Post by chivracq » Mon Jul 15, 2019 6:43 pm

alduin_blood wrote:
Mon Jul 15, 2019 10:43 am
Sorry for that I didn't know CIM
iMacros for FF v10.0.2, Free, Firefox Ver. 68.0 (64-bit), OS: Windows 10

Thread link you asked for
viewtopic.php?f=2&t=15629&p=44468&hilit ... ory#p44468
TEMP Saving my Post as I am afraid my "whole" Browser might crash while doing some Testing (in some other Profile)... :wink:

Code: Select all

<?xml version="1.0"?>


<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/skin/sanitizeDialog.css"?>


<?xml-stylesheet href="chrome://browser/content/sanitizeDialog.css"?>

<!DOCTYPE prefwindow [
  <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  <!ENTITY % sanitizeDTD SYSTEM "chrome://browser/locale/sanitize.dtd">
  %brandDTD;
  %sanitizeDTD;
]>

<prefwindow id="SanitizeDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            dlgbuttons="accept,cancel"
            title="&sanitizeDialog2.title;"
            noneverythingtitle="&sanitizeDialog2.title;"
            style="width: &dialog.width2;;"
            ondialogaccept="return gSanitizePromptDialog.sanitize();">

  <prefpane id="SanitizeDialogPane" onpaneload="gSanitizePromptDialog.init();">
    <stringbundle id="bundleBrowser"
                  src="chrome://browser/locale/browser.properties"/>

    <script type="application/javascript"
            src="chrome://browser/content/sanitize.js"/>


    <script type="application/javascript"
            src="chrome://browser/content/sanitizeDialog.js"/>

    <preferences id="sanitizePreferences">
      <preference id="privacy.cpd.history"               name="privacy.cpd.history"               type="bool"/>
      <preference id="privacy.cpd.formdata"              name="privacy.cpd.formdata"              type="bool"/>
      <preference id="privacy.cpd.downloads"             name="privacy.cpd.downloads"             type="bool" disabled="true"/>
      <preference id="privacy.cpd.cookies"               name="privacy.cpd.cookies"               type="bool"/>
      <preference id="privacy.cpd.cache"                 name="privacy.cpd.cache"                 type="bool"/>
      <preference id="privacy.cpd.sessions"              name="privacy.cpd.sessions"              type="bool"/>
      <preference id="privacy.cpd.offlineApps"           name="privacy.cpd.offlineApps"           type="bool"/>
      <preference id="privacy.cpd.siteSettings"          name="privacy.cpd.siteSettings"          type="bool"/>
    </preferences>
    
    <preferences id="nonItemPreferences">
      <preference id="privacy.sanitize.timeSpan"
                  name="privacy.sanitize.timeSpan"
                  type="int"/>
    </preferences>

    <hbox id="SanitizeDurationBox" align="center">
      <label value="&clearTimeDuration.label;"
             accesskey="&clearTimeDuration.accesskey;"
             control="sanitizeDurationChoice"
             id="sanitizeDurationLabel"/>
      <menulist id="sanitizeDurationChoice"
                preference="privacy.sanitize.timeSpan"
                onselect="gSanitizePromptDialog.selectByTimespan();"
                flex="1">
        <menupopup id="sanitizeDurationPopup">
          <menuitem label="&clearTimeDuration.lastHour;" value="1"/>
          <menuitem label="&clearTimeDuration.last2Hours;" value="2"/>
          <menuitem label="&clearTimeDuration.last4Hours;" value="3"/>
          <menuitem label="&clearTimeDuration.today;" value="4"/>
          <menuseparator/>
          <menuitem label="&clearTimeDuration.everything;" value="0"/>
        </menupopup>
      </menulist>
      <label id="sanitizeDurationSuffixLabel"
             value="&clearTimeDuration.suffix;"/>
    </hbox>

    <separator class="thin"/>


      <vbox id="sanitizeEverythingWarningBox">
        <spacer flex="1"/>
        <hbox align="center">
          <image id="sanitizeEverythingWarningIcon"/>
          <vbox id="sanitizeEverythingWarningDescBox" flex="1">
            <description id="sanitizeEverythingWarning"/>
            <description id="sanitizeEverythingUndoWarning">&sanitizeEverythingUndoWarning;</description>
          </vbox>
        </hbox>
        <spacer flex="1"/>
      </vbox>


    <separator class="thin"/>

    <hbox id="detailsExpanderWrapper" align="center">
      <button type="image"
              id="detailsExpander"
              class="expander-down"
              persist="class"
              oncommand="gSanitizePromptDialog.toggleItemList();"/>
      <label id="detailsExpanderLabel"
             value="&detailsProgressiveDisclosure.label;"
             accesskey="&detailsProgressiveDisclosure.accesskey;"
             control="detailsExpander"/>
    </hbox>
    <listbox id="itemList" rows="7" collapsed="true" persist="collapsed">
      <listitem label="&itemHistoryAndDownloads.label;"
                type="checkbox"
                accesskey="&itemHistoryAndDownloads.accesskey;"
                preference="privacy.cpd.history"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
      <listitem label="&itemFormSearchHistory.label;"
                type="checkbox"
                accesskey="&itemFormSearchHistory.accesskey;"
                preference="privacy.cpd.formdata"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
      <listitem label="&itemCookies.label;"
                type="checkbox"
                accesskey="&itemCookies.accesskey;"
                preference="privacy.cpd.cookies"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
      <listitem label="&itemCache.label;"
                type="checkbox"
                accesskey="&itemCache.accesskey;"
                preference="privacy.cpd.cache"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
      <listitem label="&itemActiveLogins.label;"
                type="checkbox"
                accesskey="&itemActiveLogins.accesskey;"
                preference="privacy.cpd.sessions"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
      <listitem label="&itemOfflineApps.label;"
                type="checkbox"
                accesskey="&itemOfflineApps.accesskey;"
                preference="privacy.cpd.offlineApps"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
      <listitem label="&itemSitePreferences.label;"
                type="checkbox"
                accesskey="&itemSitePreferences.accesskey;"
                preference="privacy.cpd.siteSettings"
                noduration="true"
                onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
    </listbox>

  </prefpane>
</prefwindow>

Code: Select all

VERSION BUILD=8820413 RECORDER=FX
TAB T=1
URL GOTO=chrome://browser/content/sanitize.xul
'TAB T=2

'TAG POS=1 TYPE=* ATTR=* EXTRACT=HTM

'=> Extracted:
'<prefwindow id="SanitizeDialog" type="child" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
' dlgbuttons="accept,cancel" title="Clear All History"
' noneverythingtitle="Clear Recent History" style="width: 34em; outline: 1px solid blue;"
' ondialogaccept="return gSanitizePromptDialog.sanitize();" screenX="54" screenY="190"
' persist="lastSelected screenX screenY"
' closebuttonlabel="Close" closebuttonaccesskey="C" role="dialog" defaultButton="accept" animated="false">

'<prefpane id="SanitizeDialogPane" onpaneload="gSanitizePromptDialog.init();">
'<stringbundle id="bundleBrowser" src="chrome://browser/locale/browser.properties"/>
'<script type="application/javascript" src="chrome://browser/content/sanitize.js"/>
'<script type="application/javascript" src="chrome://browser/content/sanitizeDialog.js"/>

'<preferences id="sanitizePreferences">
'<preference id="privacy.cpd.history" name="privacy.cpd.history" type="bool"/>
'<preference id="privacy.cpd.formdata" name="privacy.cpd.formdata" type="bool"/>
'<preference id="privacy.cpd.downloads" name="privacy.cpd.downloads" type="bool" disabled="true"/>
'<preference id="privacy.cpd.cookies" name="privacy.cpd.cookies" type="bool"/>
'<preference id="privacy.cpd.cache" name="privacy.cpd.cache" type="bool"/>
'<preference id="privacy.cpd.sessions" name="privacy.cpd.sessions" type="bool"/>
'<preference id="privacy.cpd.offlineApps" name="privacy.cpd.offlineApps" type="bool"/>
'<preference id="privacy.cpd.siteSettings" name="privacy.cpd.siteSettings" type="bool"/>
'</preferences>

'<preferences id="nonItemPreferences">
'<preference id="privacy.sanitize.timeSpan" name="privacy.sanitize.timeSpan" type="int"/></preferences>

'<hbox id="SanitizeDurationBox" align="center">
'<label value="Time range to clear: " accesskey="T" control="sanitizeDurationChoice" id="sanitizeDurationLabel"/>
'<menulist id="sanitizeDurationChoice" preference="privacy.sanitize.timeSpan"
' onselect="gSanitizePromptDialog.selectByTimespan();" flex="1" sizetopopup="pref" value="0" label="Everything">
'<menupopup id="sanitizeDurationPopup">
'<menuitem label="Last Hour" value="1"/>
'<menuitem label="Last Two Hours" value="2"/>
'<menuitem label="Last Four Hours" value="3"/>
'<menuitem label="Today" value="4"/><menuseparator/>
'<menuitem label="Everything" value="0" selected="true"/>'</menupopup></menulist>
'<label id="sanitizeDurationSuffixLabel" value=""/></hbox>

'<separator class="thin"/><vbox id="sanitizeEverythingWarningBox">
'<spacer flex="1"/><hbox align="center"><image id="sanitizeEverythingWarningIcon"/>

'<vbox id="sanitizeEverythingWarningDescBox" flex="1">
'<description id="sanitizeEverythingWarning">All selected items will be cleared.</description>
'<description id="sanitizeEverythingUndoWarning">This action cannot be undone.</description></vbox></hbox>
'<spacer flex="1"/></vbox><separator class="thin"/>

'<hbox id="detailsExpanderWrapper" align="center">
'<button type="image" id="detailsExpander" class="expander-up" persist="class"
' oncommand="gSanitizePromptDialog.toggleItemList();"/>
'<label id="detailsExpanderLabel" value="Details" accesskey="e" control="detailsExpander"/></hbox>

'<listbox id="itemList" rows="7" collapsed="false" persist="collapsed">
'<listitem label="Browsing &amp; Download History" type="checkbox" accesskey="B"
' preference="privacy.cpd.history" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
'<listitem label="Form &amp; Search History" type="checkbox" accesskey="F"
' preference="privacy.cpd.formdata" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
'<listitem label="Cookies" type="checkbox" accesskey="C"
' preference="privacy.cpd.cookies" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
'<listitem label="Cache" type="checkbox" accesskey="A"
' preference="privacy.cpd.cache" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();" checked="true"/>
'<listitem label="Active Logins" type="checkbox" accesskey="L"
' preference="privacy.cpd.sessions" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
'<listitem label="Offline Website Data" type="checkbox" accesskey="O"
' preference="privacy.cpd.offlineApps" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
'<listitem label="Site Preferences" type="checkbox" accesskey="S"
' preference="privacy.cpd.siteSettings" noduration="true" onsyncfrompreference="return gSanitizePromptDialog.onReadGeneric();"/>
'</listbox></prefpane></prefwindow>

'TAG POS=R1 TYPE=* ATTR=* EXTRACT=HTM
'=> Nothing after the 'prefwindow' Element...!


'Using 'TAG' Mode:
'******************
'Not working:
'TAG POS=1 TYPE=INPUT:CHECKBOX ATTR=* CONTENT=YES
'TAG POS=4 TYPE=INPUT:CHECKBOX ATTR=* CONTENT=NO
'PAUSE


'Using 'EVENT' Mode:
'********************
'Syntax:
'EVENT TYPE=CLICK SELECTOR="#post_content82802>DIV>BLOCKQUOTE>DIV" BUTTON=0
'EVENT TYPE=KEYPRESS SELECTOR="#phpbb" CHAR="b"
'EVENTS TYPE=KEYPRESS SELECTOR="#phpbb" KEYS="[40,40,40]"
'EVENT TYPE=KEYPRESS SELECTOR="#phpbb" KEY=9

'Not working:
'EVENT TYPE=KEYPRESS SELECTOR="#itemHistoryAndDownloads" CHAR=" "
'WAIT SECONDS=1
'EVENT TYPE=KEYPRESS SELECTOR="#itemCache" CHAR=" "
'PAUSE

'Not working:
'EVENT TYPE=KEYPRESS SELECTOR="#Browsing &amp; Download History" CHAR=" "
'WAIT SECONDS=1
'EVENT TYPE=KEYPRESS SELECTOR="#itemCache" CHAR=" "
'PAUSE

'Working "sometimes" but not very reliably, sometimes the 'Active Logins' gets checked (also), insteadd of unchecking the 'Cache'...!!?:
'Check 'Browsing $ Download History':
'EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR="b"
'EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR=" "
'WAIT SECONDS=1
'>
'Uncheck 'Cache' (which is checked by Default):
'EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR="a"
'EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR=" "
'PAUSE

'Working...!!:
'Check 'Browsing $ Download History':
EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR="b"
EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR=" "
WAIT SECONDS=1
'>
'Uncheck 'Cache' (which is checked by Default):
'=> Using the 'Down' Arrow (3x):
EVENTS TYPE=KEYPRESS SELECTOR="#itemList" KEYS="[40,40,40]"
EVENT TYPE=KEYPRESS SELECTOR="#itemList" CHAR=" "
WAIT SECONDS=1
PAUSE


'Tab away from the 'itemList' Form:
EVENT TYPE=KEYPRESS SELECTOR="#itemList" KEY=9
WAIT SECONDS=1
'>
'Hit the 'Enter' Key:
EVENT TYPE=KEYPRESS SELECTOR="#SanitizeDialog" KEY=13
WAIT SECONDS=1
'PAUSE
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
alduin_blood
Posts: 4
Joined: Mon Jul 15, 2019 9:43 am

Re: Clear browsing history in Firefox with iMacros

Post by alduin_blood » Mon Jul 15, 2019 7:36 pm

Hey, thanks a lot
looks like the code might work but... :roll:
it's giving an error
UnsupportedCommand: command EVENT is not supported in the current version
Looks like in your code the "VERSION BUILD=8820413"
So, I'll have to get this version or... :?:
chivracq
Posts: 8436
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Clear browsing history in Firefox with iMacros

Post by chivracq » Mon Jul 15, 2019 9:03 pm

alduin_blood wrote:
Mon Jul 15, 2019 7:36 pm
Hey, thanks a lot
looks like the code might work but... :roll:
it's giving an error
UnsupportedCommand: command EVENT is not supported in the current version
Looks like in your code the "VERSION BUILD=8820413"
So, I'll have to get this version or... :?:
Yeah, well, I had not "completely" finished with my previous Post and I was still doing some "Testing" in one FF-Profile..., well I actually use Pale Moon for my Testing as it is my Default Browser, (PM v26.3.3 + iMacros for FF v8.8.2 + Win10_x64), with 3 Profiles open at that time, and the Profile I was using for my Testing still had about 3.5 years of Browsing History, so it took about 13 Min for the Clear 'Browsing @ Download History' to "process", oops... :shock: , and the Instance seems to crash afterwards if I try to check/open the 'History' Menu, I first waited for 25 Min before killing that Instance, and it keeps crashing again afterwards even if I only have a few Pages of Browsing History...

And I use that Profile "mostly" for about 30,000 Lines of Code running daily with about 500 or 600 different 'URL GOTO' + internal Navigation Statements, and all that for about 3.5 years, and I had never "cleaned" it, so there was a lot of "Data" to clean/clear, ah-ah...!

What I noticed as well is that PM seems to be remembering which Item(s) was/were selected from the previous Click on the 'Clear Now', so the Script I used the first time is now reverse toggling the 2 Items I had to check/uncheck, so now once the 'Browsing & Download History' has been selected and processed once, I would then need to use the following Script for the "next" times I want to run the Script again..., simply loading the Page and directly hitting the 'Clear Now' is enough to do the Job...!: 8)

Code: Select all

URL GOTO=chrome://browser/content/sanitize.xul
'Hit the 'Enter' Key:
EVENT TYPE=KEYPRESS SELECTOR="#SanitizeDialog" KEY=13
So this one works... But hum, I can definitely reproduce and force the Crash each time after running the Script, as soon I try to hover over or to click on the 'History' Menu, even after some Navigation or opening any other Menu Items ('File', 'Edit' etc...)

But then, yep indeed, the 'EVENT' Mode is not supported in v10.0.2 ('Free' nor 'PE') that you are using, ah-ah...! :oops:

The Version I use(d) myself, v8.8.2 for FF is pretty old, and only because I use PM v26.3.3 as my Default and "Prod" Browser for Performance Reason and several Commands that got broken or were not supported anymore in "later" Versions, but I'm probably the only one using such an "old" Environment.

I had a look at FF v55.0.3, for which iMacros for FF v8.9.7 works, and which supports the 'EVENT' Mode, and I didn't "really" want to clear my Browsing History in that Browser/Profile, but I think the same Script should work in that FCI. Or v8.9.7 also works on PM28, and all "current" Versions of 'Cyberfox', 'WaterFox', 'Basilisk' etc which are forked on FF but didn't follow the WebExtensions path like Mozilla did with FF from FF57, so that would give you a few Options... :idea:

Hum, and stg else I need to test, I also had a look at the 3 Scripts called from the Source Code of the 'sanitize.xul' Page, and I think that a 'Clear Now' on the 'Browsing & Download History' Selection calls the 'PlacesUtils.history.removeAllPages();' from the 'sanitize.js' Script (chrome://browser/content/sanitize.js), and I think the following Statement might do the Job also:

Code: Select all

URL GOTO=javascript:PlacesUtils.history.removeAllPages();
... which would also work in v8.9.7, and might even also work in your v10.0.2 Version, even if I think the 'URL GOTO=javascript' Command was a bit limited or buggy in that Version (that i don't use myself)...
If it works in your Version, the Advantage would be that you could keep using your current FF68, and that Command can also be "fired" from any "Standard" URL, because I remember that the 'URL GOTO' Command (+ an URL) only accepted a very limited Set of "allowed" URL's, and I wouldn't be surprised if "URL GOTO=chrome://browser/content/sanitize.xul" is simply not accepted by the Browser and iMacros...

Hum, it doesn't work, (again, on PM v26.3.3 + iMacros for FF v8.8.2), it does "nothing", no Error though... :P
But I guess it is actually calling a 'history.removeAllPages()' Function which is defined in 'resource://gre/modules/PlacesUtils.jsm', and hum, nope, there is no 'removeAllPages()' defined there but that Script is in return calling again a few other Scripts as "Resources", so I guess you would need to "play a bit Detective" and "follow" the Path until you manage to locate the Statement that actually does the Operation... :idea:

I'm not very knowledgeable in pure JS, you might want to search the SOF Forum where that Qt will have probably already been asked and answered, or you might ask it yourself... :idea:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
alduin_blood
Posts: 4
Joined: Mon Jul 15, 2019 9:43 am

Re: Clear browsing history in Firefox with iMacros

Post by alduin_blood » Mon Jul 15, 2019 9:49 pm

Thanks a lot for going to that much trouble and I am sorry if in clearing your 3.5 years of browsing history something important got deleted too.
check uncheck box is not of concern main thing is to GOTO the URL and making the clear now button click.

Code: Select all

URL GOTO=chrome://browser/content/sanitize.xul
'Hit the 'Enter' Key:
EVENT TYPE=KEYPRESS SELECTOR="#SanitizeDialog" KEY=13
I can go for PM if this code works, no problems there.
I'll try somethings and get back to you.
Thanks again though
chivracq
Posts: 8436
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Clear browsing history in Firefox with iMacros

Post by chivracq » Tue Jul 16, 2019 1:47 am

alduin_blood wrote:
Mon Jul 15, 2019 9:49 pm
Thanks a lot for going to that much trouble and I am sorry if in clearing your 3.5 years of browsing history something important got deleted too.
check uncheck box is not of concern main thing is to GOTO the URL and making the clear now button click.

Code: Select all

URL GOTO=chrome://browser/content/sanitize.xul
'Hit the 'Enter' Key:
EVENT TYPE=KEYPRESS SELECTOR="#SanitizeDialog" KEY=13
I can go for PM if this code works, no problems there.
I'll try somethings and get back to you.
Thanks again though
Yeah, don't worry about the 3.5 years of Browsing History, was probably a good thing actually to clean it, my Script always goes to the same Site, it's for some "stupid" Tamagotchi Game, ah-ah, no big deal... And the amount of Code and URL's visited is actually at least double than what I previously mentioned..., because my Script decides by itself how many times it needs to run, and must run on average twice for each of the 6 Runs per day... And that was an interesting "Case"... :D

Then if you go for PM, then go for the current/latest PM28 for which iMacros for FF v8.9.7 works... (and which can be downloaded from the 'iMacros for FF Legacy Version History' Wiki-Page...), which is the stable and most functional Version to use anyway... You'll only have to check by yourself if PM28 also crashes after running the Script and/or clearing the History, if you try to check the 'History' Menu manually...

Once you'll have checked with PM28, I will post the Solution on SOF then... :wink:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Post Reply