Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bookmarklet #8

Closed
wants to merge 1 commit into from
Closed

Added bookmarklet #8

wants to merge 1 commit into from

Conversation

Eunoia
Copy link

@Eunoia Eunoia commented Sep 12, 2017

Hey Victor!

Added a bookmarklet for your readers.

This is the experience, it's like your website, but for the New York Times!
dyslexia_bookmarklet

I passed your code at the bottom of the page though this minifier, and created the bookmarklet with MrColes.

The delay to initialize the bookmarklet is <1 second, from loading jQuery 2.0.3. No easy way around that, but otherwise it works great!

-Evan

@heggy231
Copy link

heggy231 commented Mar 1, 2018

Is there a step-by-step video on how to add this bookmarklet to my webpage?

@geon
Copy link
Owner

geon commented Mar 1, 2018

Presumably, you can just add this text as a bookmarked link in your browser. Check the documentation of your browser on how to do that. I can take no responsibillity for the safety of the code, though, as I have not verified it.

javascript:(function()%7Bfunction callback()%7Bfunction n()%7Bfor(var n%3D0%3Bn<r.length%3Bn%2B%2B)for(var t%3Dr%5Bn%5D%2Co%3D0%3Bo<l%5Bn%5D.length%3Bo%2B%2B)if(!(Math.random()>.1))%7Bvar i%3Dl%5Bn%5D%5Bo%5D%2Ca%3Dt.nodeValue.slice(i.position%2Ci.position%2Bi.length)%2Cu%3Dt.nodeValue.slice(0%2Ci.position)%2Cc%3Dt.nodeValue.slice(i.position%2Bi.length)%3Bt.nodeValue%3Du%2Be(a)%2Bc%7D%7Dfunction e(n)%7Breturn n.length<3%3Fn%3An%5B0%5D%2Bt(n.slice(1%2C-1))%2Bn%5Bn.length-1%5D%7Dfunction t(n)%7Bif(n.length<2)return n%3Bfor(var e%2Ct%3B!(t>e)%3B)e%3Do(0%2Cn.length-1)%2Ct%3Do(0%2Cn.length-1)%3Breturn n.slice(0%2Ce)%2Bn%5Bt%5D%2Bn.slice(e%2B1%2Ct)%2Bn%5Be%5D%2Bn.slice(t%2B1)%7Dfunction o(n%2Ce)%7Breturn Math.floor(Math.random()(e-n%2B1)%2Bn)%7Dfor(var i%3Dfunction(n)%7Breturn %24(n).find("%3Anot(iframe%2Cscript)").addBack().contents().filter(function()%7Breturn 3%3D%3Dthis.nodeType%7D)%7D%2Cr%3Di(%24(""))%2Cl%3D%5B%5D%2Ca%3D0%3Ba<r.length%3Ba%2B%2B)%7Bfor(var u%2Cc%3Dr%5Ba%5D%2Cf%3D%5B%5D%2Ch%3D%2F%5Cw%2B%2Fg%3Bnull!%3D(u%3Dh.exec(c.nodeValue))%3B)%7Bvar s%3Du%5B0%5D%2Cg%3Du.index%3Bf.push(%7Blength%3As.length%2Cposition%3Ag%7D)%7Dl%5Ba%5D%3Df%7DsetInterval(n%2C50)%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fjquery%2F2.0.3%2Fjquery.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()

@geon geon force-pushed the master branch 4 times, most recently from 738b680 to e6bf070 Compare January 5, 2025 14:25
@geon geon closed this Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants