Skip to content

Instantly share code, notes, and snippets.

var evnts = ["click", "focus", "blur", "keyup", "keydown", "keypressed"];
// You can also Use mouseup/down, mousemove, resize and scroll
for (var i = 0; i < evnts.length; i++) {
window.addEventListener("" + evnts[i] + "", function (e) {
myFunction(e);
}, false);
}
function myFunction(e) {
var evt = e || window.event;
@varlog23
varlog23 / cookiebanner-go-away.user.js
Created December 16, 2019 16:20 — forked from BlaM/cookiebanner-go-away.user.js
Get rid of EU Cookie Banners (Tampermonkey)
// ==UserScript==
// @name Get rid of EU Cookie Banners
// @namespace http://blog.deobald.org/
// @description Get rid of EU Cookie Banners
// @license http://creativecommons.org/licenses/by-nc-sa/3.0/
// @downloadURL https://gist.githubusercontent.com/BlaM/6d826d6e9d77d2d77bf9a92fdad55788/raw/cookiebanner-go-away.user.js
// @homepage https://gist.github.com/BlaM/6d826d6e9d77d2d77bf9a92fdad55788
// @version 0.3.4
// @author Dominik Deobald
// @match http*://*/*
@varlog23
varlog23 / batchCodeExporter.js
Last active December 12, 2019 10:05
To run Selenium IDE's code export for all SIDE files within a folder to generate Java for JUnit files
import fs from 'fs'
var path = require('path');
const FileHound = require('filehound');
import { project as projectProcessor } from '@seleniumhq/side-utils'
import { emitTest, emitSuite } from '@seleniumhq/code-export-java-junit'
const filesPath = '.' // path to the folder containing SIDE files
const downloadPath = path.join(filesPath,'Junit') // Will by default create a JUnit folder in {filesPath}
const filesType = 'side'
function readFile(file) {