Skip to content

Instantly share code, notes, and snippets.

@N0taN3rd
N0taN3rd / body.html
Last active January 18, 2017 00:09
test
<body class="pg pg-hidden pg-homepage pg-section domestic t-light">
</body>
@N0taN3rd
N0taN3rd / bodyInlineScript.20161101150131.js
Last active January 20, 2017 22:21
Lets Make The CNN Archive Great Again
var CNN = CNN || {};
CNN.contentModel = {
registryURL: "/web/20161101150131/http://z.cdn.turner.com/ads/cnn/cnn_homepage.js",
entitlementSingletons: [/* five cdn delievered js files*/],
loadAllZonesLazy: true,
lazyLoad: true,
enableIntelligentLoad: true,
feedback: {
"apiEndpoint": "/web/20161101150131/https://mailcar.cnn.com/api/v1/"
},
@N0taN3rd
N0taN3rd / cnn_js.unmangled.20160902230242.js
Created January 17, 2017 05:20
Lets Make The CNN Archive Great Again: Unmangled Mins
/*
const <name> = min file unmangled
properties
'Global CNN varible w/ property chain': [
{
prop: 'lhs' // CNN w/ property chain assignee
to: 'rhs' // Assigned to
}
]
*/
<div id="scriptParent">
<!--Test 2a, Script, local --><img src="pixel.png" title="test2a">
<!--Test 2b, Script, remote --><img src="pixel.png" title="test2b">
<script type="text/javascript">
//Test 2c, Script inline, DOM Manipution
document.addEventListener('DOMContentLoaded', function () {
var inlineScriptImage = new Image();
inlineScriptImage.src = "pixel.png";
inlineScriptImage.title = "test2c";
@N0taN3rd
N0taN3rd / archiveIt.index.js
Last active March 2, 2017 23:40
The case of helen-palmer
function (t, e, n) {
"use strict";
function i () {
this.attributes({
nextLink: void 0,
initialPath: WB_wombat_self_location.pathname.replace("network/", "") +
"co-authors/"
}), this.getNextCoAuthors = r, this.after("initialize", function () {
this.on(document, "ui:co-authors:view-more", r), this.getNextCoAuthors()
This file has been truncated, but you can view the full file.
!function (t) {
function e (i) {
if (n[i]) return n[i].exports;
var r = n[i] = {
exports: {},
id: i,
loaded: !1
};
return t[i].call(r.exports, r, r.exports, e), r.loaded = !0, r.exports
}
@N0taN3rd
N0taN3rd / urls.txt
Last active March 3, 2017 20:27
test
www.mendeley.com/sign-in/?routeTo=https%3A%2F%2Fwww.mendeley.com%2Fprofiles%2Fhelen-palmer
@N0taN3rd
N0taN3rd / detect.js
Created March 17, 2017 16:44
detecting window.document.domain
const cheerio = require('cheerio')
const fs = require('fs-extra')
const Promise = require('bluebird')
const path = require('path')
const generate = require('babel-generator')
const traverse = require('babel-traverse')
const {parse} = require('babylon')
const util = require('util')
const bTypes = require('babel-types')
const inlineCss = require('inline-css')
body {
margin: 0;
text-align: center;
min-width:940px; /* changed; value was 660px */
font-size: small;
}
#header-wrapper {
width:940px; /* changed; value was 660px */
margin:0 auto 10px;
@N0taN3rd
N0taN3rd / html_rewriter.py
Created April 22, 2017 03:32
pywb proxy mods
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from six.moves.html_parser import HTMLParser
from six.moves.urllib.parse import urljoin, urlsplit, urlunsplit