Skip to content

Instantly share code, notes, and snippets.

View plaidpizazz's full-sized avatar

Marcellus Spears plaidpizazz

View GitHub Profile
@plaidpizazz
plaidpizazz / obfuscate.php
Created May 5, 2023 12:33 — forked from levelsio/obfuscate.php
WordPress plugin to progressively obfuscate text like MAKEbook.io
/*
--PIETZ OBFUSCATE CODE--
2019-06-01
from MAKEbook.io
Instructions:
1) put this in your functions.php file
2) add this to the post you want to obfuscate, on top
3) [obfuscate]
4) to start obfuscating, add a HTML code or HTML block with <start></start>
[14] pry(#<Post>):1> nesting
Nesting status:>):1>
--
0. main (Pry top level)
[18] pry(#<Post>):1> self.to_s
[19] pry(#<Post>):1> self.title = 'some new title'
[20] pry(#<Post>):1> self.body = 'some new body'
[21] pry(#<Post>):1> self.changes
{"title"=>["First Post", "some new title"], "body"=>["This is the first post in our system", "some new body"]}
[22] pry(#<Post>):1> self.save!