entomb / dragonchan

A prototype script to transform any /b/ thread into a dragon slaying match.
24 stars 17 forks source link

Bookmarklet doesn't work on HTTPS version of the thread #9

Open entomb opened 11 years ago

entomb commented 11 years ago

This part of the code needs to be tweaked so it admits https. It would be cool to add a better verification method, since this split is not very elegant.

 var s = window.location.toString().split('http://boards.4chan.org/b/res/')
    if(s.length!=2){
        alert("this is not a valid 4chan thread.");
        return;
    }