Created
July 28, 2022 21:21
-
-
Save jaretburkett/ae491abd2485a2828dc3ce969c9fbdcc to your computer and use it in GitHub Desktop.
Taper monkey Zillow move schools
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 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