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
1. Install Tempermonkey https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo | |
2. CLick the Tampermonkey icon | |
3. Click Create New Script | |
4. Paste in the below code | |
4.5 Hit CMD+S to save it | |
5. Go to https://www.realestate.com.au/buy or https://www.realestate.com.au/sold | |
6. Click Filters, select "Only show properties with a sold price" | |
7. Search and click the Map view | |
It'll have issues when the results have 2 apartments in the same building - I was looking for houses so didn't add support for that at the second |
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.realestate.com.au/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=realestate.com.au | |
// @grant none | |
// @run-at document-start |
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
(function (factory) { | |
if (typeof module === "object" && typeof module.exports === "object") { | |
var v = factory(require, exports); | |
if (v !== undefined) module.exports = v; | |
} | |
else if (typeof define === "function" && define.amd) { | |
define("test.spec.js", ["require", "exports", "tslib", "@angular/core/testing", "@angular/platform-browser-dynamic/testing", "@angular/core", "zone.js/dist/zone-node", "zone.js/dist/zone-testing", "core-js/es/reflect"], factory); | |
} | |
})(function (require, exports) { | |
"use strict"; |
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
import * as querystring from 'querystring'; | |
function isObject(arg: any) { | |
return typeof(arg) === 'object' && arg !== null; | |
} | |
const slashedProtocol = { | |
http: true, | |
https: true, | |
ftp: true, |
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
import 'zone.js/dist/zone-node'; | |
import 'reflect-metadata'; | |
import * as http from 'http'; | |
import * as fs from 'fs'; | |
import * as util from 'util'; | |
import * as path from 'path'; | |
import * as url from 'url'; | |
import * as mime from 'mime-types'; | |
import * as os from 'os'; | |
import { ɵCommonEngine as CommonEngine } from '@nguniversal/common/engine'; |
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
const fs = require('fs'); | |
const path = require('path'); | |
const JasmineRunner = require('jasmine/lib/jasmine'); | |
const {createInterface} = require('readline'); | |
const UTF8 = { | |
encoding: 'utf-8' | |
}; | |
// These exit codes are handled specially by Bazel: |
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
{"lastUpload":"2018-08-09T03:53:20.393Z","extensionVersion":"v3.0.0"} |
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
import { ChildProcess, spawn } from 'child_process'; | |
import * as execa from 'execa'; | |
const nodeCleanup = require('node-cleanup'); | |
const terminate = require('terminate'); | |
process.env.NODE_ENV = 'e2e'; | |
let childProcesses: ChildProcess[] = []; | |
function start(cmd: string) { | |
const proc = execa.shell(cmd); |
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
let [root] = getAllAngularRootElements(); | |
let appRoot = ng.probe(root); | |
let [rootComponent] = appRoot.injector.get(ng.coreTokens.ApplicationRef).components; | |
let ChangeDetectorRef = rootComponent.changeDetectorRef.constructor.prototype; | |
ChangeDetectorRef.constructor.prototype.detectChanges = (function () { | |
let oldDC = ChangeDetectorRef.constructor.prototype.detectChanges; | |
let map = new WeakMap(); | |
return function () { | |
Zone.root.run(() => showChangeDetection(this)); | |
return oldDC.apply(this, arguments); |
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
export function validate(module: any, bootstrapComponent: any, selector = 'app-root', timeout = 5000) { | |
@NgModule({ | |
imports: [ | |
BrowserModule.withServerTransition({ appId: selector }), | |
module | |
], | |
declarations: [bootstrapComponent], | |
bootstrap: [bootstrapComponent], | |
}) | |
class AppModule { } |
NewerOlder