Skip to content

Instantly share code, notes, and snippets.

View normanzb's full-sized avatar
🛵
stay safe

Norm X normanzb

🛵
stay safe
  • Somewhere decentralised
  • London
View GitHub Profile
window.allUrls = ["https://www.topcashback.co.uk/0044/","https://www.topcashback.co.uk/08-direct/","https://www.topcashback.co.uk/1-like-no-other/","https://www.topcashback.co.uk/1_and_1_internet/","https://www.topcashback.co.uk/121-car-hire/","https://www.topcashback.co.uk/121doc/","https://www.topcashback.co.uk/123_ink_cartridges/","https://www.topcashback.co.uk/123_reg/","https://www.topcashback.co.uk/123bestdeal/","https://www.topcashback.co.uk/123spareparts/","https://www.topcashback.co.uk/188bet/","https://www.topcashback.co.uk/192/","https://www.topcashback.co.uk/1st-central/","https://www.topcashback.co.uk/1st-quote-topcashback-compare/","https://www.topcashback.co.uk/21nova/","https://www.topcashback.co.uk/23-and-me/","https://www.topcashback.co.uk/24_studio/","https://www.topcashback.co.uk/24%7C7-home-rescue/","https://www.topcashback.co.uk/24ace/","https://www.topcashback.co.uk/2fore1/","https://www.topcashback.co.uk/31dover/","https://www.topcashback.co.uk/32red-bingo/","https://www.topcashback.co
javascript:void require('kernel/blocker/document').resume()
javascript:$('input[name=OnSuccessUrl]').val('../../ty/thankyou-game/?opentag_debug_tool=true')
@normanzb
normanzb / js
Last active October 28, 2015 14:42
javascript:void (require('shared/util/validate/validators/creditCard').debug=true)
// Apply path matching
var path = d.location.pathname,
refMatch = document.referrer.match(/.{8}[^/]*(\/[^?]+)/),
ref = refMatch ? refMatch[1] : null,
isPathMatch = function(pattern) {
var p = new RegExp((pattern[0] == "/" ? "^" : "") + pattern, "i");
return p.test(path);
},
toArray = function(v){ return _.isArray(v) ? v : [v] };
if (criteria.path && !_.any(toArray(criteria.path), isPathMatch)) {
javascript:void (require('shared/util/validate/validators/creditCard').debug=true)
$(function() {
var $firstNameField = $("#first_name");
var $target = $(".txt-parabens");
var $message = $("<p class='lead-name' style='text-align: center;'></p>");
$firstNameField.on('change', function() {
var inputValue = $firstNameField.val();
if (inputValue == null || inputValue == false) {
// hide the text
$message.detach();
<%
if(isValidConfig && (wcmMode != WCMMode.EDIT)) {
String[] mappings = resourceConfig.get("cq:mappings", new String[0]);
String[] isProfile = resourceConfig.get("cq:isprofile", new String[0]);
if ("d".equals(mboxType)) {
mboxType = wcmMode == WCMMode.DISABLED ? "s" : "a";
}
if (framework != null || mappings.length > 0) {
mboxType = "a";
}
@normanzb
normanzb / retrieve.js
Last active August 29, 2015 14:20
Get value from state object
!function(){
// make sure there is et object
window.et = window.et || {};
// make sure there is et.state array
window.et.state = window.et.state || [];
var state = window.et.state;
// push a callback function into the array, once state object is instantiated,
// here goes what englishtown does:
window._satellite_ready = window._satellite_ready || [];
window._satellite_ready.push(function(satellite){
// ... setup state object and everything else ...
satellite.track();
});