# (Spam, i am) Can't Delete Post on new Forum \<\<\<\<

**URL:** <https://discourse.mozilla.org/t/spam-i-am-cant-delete-post-on-new-forum/3361>\
**Category:** Development\
**Created:** [August 19, 2015, 4:27pm UTC](https://discourse.mozilla.org/t/spam-i-am-cant-delete-post-on-new-forum/3361 "2015-08-19T16:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnull](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jnull/32/2999_2.png) [@jnull](https://discourse.mozilla.org/u/jnull)\
**Post date:** [August 19, 2015, 4:27pm UTC](https://discourse.mozilla.org/t/spam-i-am-cant-delete-post-on-new-forum/3361/1 "2015-08-19T16:27:21Z")

</div>

Using the ‘new Date()’ constructor or modifying Firefox in some other way (Firefox programming wise), would anyone know if there’s a way to momentarily modify the current Date/Time refreshed value from the operating system? I’m experiment against artificial web timers and know this could inherently break things. I plan to turn this into an add-on, but any pointers in to how Time is dealt with in Firefox would be awesome.

I’m currently searching for the string ‘function Date()’ in the code base: [http://mxr.mozilla.org/mozilla-central/search?string=function%2BDate](http://mxr.mozilla.org/mozilla-central/search?string=function%2BDate)

Thanks!  
Null

Edit: This doesn’t matter because I’m moving to another browser.

---

<div class="post-metadata">

**Author:** ![noitidart](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@noitidart](https://discourse.mozilla.org/u/noitidart)\
**Post date:** [August 20, 2015, 2:07am UTC](https://discourse.mozilla.org/t/spam-i-am-cant-delete-post-on-new-forum/3361/2 "2015-08-20T02:07:23Z")

</div>

Wow this sounds very low level. I never reached that far. But i heard its possible to override javascript things, I saw someone do it with the navigation object: [http://stackoverflow.com/a/1307088/1828637](http://stackoverflow.com/a/1307088/1828637)

---

<div class="post-metadata">

**Author:** ![jnull](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/jnull/32/2999_2.png) [@jnull](https://discourse.mozilla.org/u/jnull)\
**Post date:** [August 20, 2015, 8:46am UTC](https://discourse.mozilla.org/t/spam-i-am-cant-delete-post-on-new-forum/3361/3 "2015-08-20T08:46:36Z")

</div>

I wish it was that easy, because most normal functions would be. The problem with Date(), is that its a constructor and its built-in, i ran into this with the webrtc api constructors like mozRTCpeerconnection.

What i think i need to do is Monkey Patch the Date, so i found some stackoverflows:

> <https://stackoverflow.com/questions/21591078/monkeypatch-the-javasscript-date-object>

> <https://stackoverflow.com/questions/22400161/date-constructor-monkey-patch>

I wasn’t able to fix the answers for a PageMod content-script though.  
I tried overwriting them with unsafeWindow, and with the new api’s that are to replace unsafeWindow.

i was closer with 22400161, the site was calling Date.getTime() and the count down number on sourceforge was changed from an integer to NaN, but it still didn’t work.
