Copy paste the script into the console of the submission flow of Google Looker. It's a Google Form, so might work for other Google Forms as well.
Enjoy!
Here is how it looks (most left widget):
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
const currentHour = new Date().getHours(); | |
const scheduleHour = | |
currentHour < 10 ? 10 : currentHour < 14 ? 14 : currentHour < 17 ? 17 : 10; | |
const addDays = currentHour < 17 ? 0 : 1; | |
const date = new Date(Date.now() + addDays * 24 * 60 * 60 * 1000); | |
const [month, day, year, hour, minute] = document.querySelectorAll( | |
'[role="dialog"] select' | |
); | |
month.value = date.getMonth() + 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Blacklight - API Request", | |
"uri_ins": "http://simpleanalytics.com", | |
"uri_dest": "https://simpleanalytics.com/", | |
"uri_redirects": [ | |
"http://simpleanalytics.com/" | |
], | |
"secure_connection": {}, | |
"host": "simpleanalytics.com", | |
"config": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Shared because of this Tweet: https://twitter.com/iammarcthomas/status/1308507994334822400 | |
--> | |
<div | |
data-sales-vue | |
v-bind:class="[{ finished: isFinished }, 'sales-popup', 'box']" | |
> | |
<a v-if="!isFinished" class="close" v-on:click="onClose">×</a> | |
<h2 v-if="!isFinished"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl s_client -connect simpleanalytics.io:443 -servername simpleanalytics.io </dev/null | openssl x509 -in /dev/stdin -checkend 2592000 -noout -issuer -subject -dates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Test page</title> | |
<script>window.sa_event=window.sa_event||function(){a=[].slice.call(arguments);sa_event.q?sa_event.q.push(a):sa_event.q=[a]};</script> | |
<script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script> | |
</head> | |
<body> | |
<a href="https://example.com" onClick="sa_event('click_to_example_com')" target="_blank">Link to example.com</a> | |
</body> |
I hereby claim:
- I am adriaanvanrossum on github.
- I am adriaanvanrossum (https://keybase.io/adriaanvanrossum) on keybase.
- I have a public key ASDJvK_YT2ajkrwxwEBQGj_L6OBx3ctZ7Rpzc3bp2JFfzgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specify a custom format to anonymize your logs | |
$template anonymize,"%$year%-%$month%-%$day% %timegenerated:12:19:date-rfc3339% %app-name% %$!new%\n" | |
# This makes the anonymize template the default for all file actions | |
$ActionFileDefaultTemplate anonymize | |
set $!new = $msg; | |
# Replace credit cards | |
if re_match($msg,'([0-9]{13,16})') |
NewerOlder