Skip to content

Instantly share code, notes, and snippets.

@jaretburkett
Created July 28, 2022 21:21
Show Gist options
  • Save jaretburkett/ae491abd2485a2828dc3ce969c9fbdcc to your computer and use it in GitHub Desktop.
Save jaretburkett/ae491abd2485a2828dc3ce969c9fbdcc to your computer and use it in GitHub Desktop.
Taper monkey Zillow move schools
// ==UserScript==
// @name Move Schools
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.zillow.com/**
// @icon https://www.google.com/s2/favicons?sz=64&domain=zillow.com
// @grant none
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
function moveSchool(){
const $schools = $('#ds-nearby-schools-list');
if($schools.length) {
const schoolList = $schools.html();
const $buttons = $(`div[data-cft-name="contact-buttons"]`);
$buttons.prepend(`<div style="height:20px;"></div>`);
$buttons.prepend(schoolList);
$schools.attr("id","ds-nearby-schools-list-copied");
}
}
(function() {
'use strict';
setInterval(() => {
moveSchool()
}, 100);
// Your code here...
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment