This file contains hidden or 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(w, g){ | |
if(!g){ | |
alert("Error: no saved scroll position"); | |
return; | |
} | |
w.scrollX = g.pos[0]; | |
w.scrollY = g.pos[1]; | |
}(window, window.save_scroll_globals)) |
This file contains hidden or 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
#! /usr/bin/env python3 | |
""" Analyze a css stylesheet to find the highest z index possible | |
Usage: ./max_z_index.py [filename] | |
To run on every file with .css in a directory, use `for f in $(ls); do echo $f | grep .css | xargs ./max_z_index.py; done` | |
""" | |
import fileinput | |
import re | |
def find_max_z(css_text): | |
matches = re.findall(r"z-index:([0-9]+)", css_text) |
This file contains hidden or 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 b, b$$; | |
let s = document.createElement("script"); | |
s.src = "https://cdnjs.cloudflare.com/ajax/libs/blissfuljs/1.0.2/bliss.shy.min.js"; | |
document.head.appendChild(s); | |
s.addEventListener("load", function(){ | |
b$ = Bliss; | |
b$$ = Bliss.$; | |
console.log("Bliss Shy loaded, use b$ and b$$"); | |
}); |
This file contains hidden or 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
location.href=location.href.replace("www.jstor.org", "faculty.college-prep.org:2120") |
NewerOlder