LiveJournal Adult Content

By WCityMike Last update Sep 7, 2009 — Installed 1,194 times.

Easier Way

in
Subscribe to Easier Way 2 posts, 2 voices



Alathald Scriptwright

I only read one LiveJournal and it's an 18+ (for talesofmu) so naturally your script didn't work for me as it only clicks 14+. After taking a peek at the DOM I realised there is an easier, more generic solution.

Since the input button on the page is the only one named "adult_check" you can just use .getElementsByName to grab and click it. That way it should work for all age verify buttons unless the 14+ button has a different name...

document.getElementsByName("adult_check")[0].click()

 
WCityMike Script's Author
MozillaMacintosh

Thanks! I'll adjust accordingly.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel