Class FixItDecryptor API

FixIt decryptor for encrypted pages

New FixItDecryptor(options)

NameTypeDescription
optionsObjectThe options of FixItDecryptor(Options

Options

NameTypeAttributesDefaultDescription
decryptedFunction<optional>[Lifecycle Hooks] handler after decrypting
partialDecryptedFunction<optional>[Lifecycle Hooks] handler after partially decrypting
resetFunction<optional>[Lifecycle Hooks] handler after encrypting again
durationNumber<optional>86400number of seconds to cache decryption statistics. unit: s

Methods

Init()

initialize FixIt decryptor

InitShortcodes()

initialize fixit-encryptor shortcodes

ValidateCache()

validate the cached decryption statistics in localStorage

AddEventListener(event, Listener)

add event listener for FixIt Decryptor

NameTypeDescription
eventStringevent name
listenerFunctionevent handler

RemoveEventListener(event, Listener)

remove event listener for FixIt Decryptor

NameTypeDescription
eventStringevent name
listenerFunctionevent handler

Events

Decrypted

after decrypting

Partial-Decrypted

after partially decrypting

Reset

after encrypting again


Related Content

0%