Skip to content

Instantly share code, notes, and snippets.

@meGAmeS1
meGAmeS1 / django-bootstrap3-datetimepicker Moment Locale Workaround
Last active November 25, 2015 13:34
Because I couldn't get the user locale working with django-bootstrap3-datetimepicker, I created this little workaround (that I put in the <head></head> of my main template).
{% get_current_language as LANGUAGE_CODE %}
<script type="text/javascript">
$(function () {
$.fn.datetimepicker.defaults.locale = moment.locale('{{ LANGUAGE_CODE }}');
});
</script>
@meGAmeS1
meGAmeS1 / google_search_maps_addon.js
Last active June 19, 2024 14:32 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button when searching on google
// ==UserScript==
// @name Google Search Maps Fix
// @namespace http://tampermonkey.net/
// @version 2024-06-19
// @description Bring Google maps button back
// @author Daan Grashoff / Delivator / meGAmeS1
// @match https://www.google.com/search*
// @match https://www.google.fr/search*
// @include https://www.google.tld/search*
// @grant none