and_cesbo

Astra. CSS Injection

Nov 3rd, 2017
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. -- Instead "css" write your own css code
  2. -- Save script to /etc/astra/mod/css.lua
  3. -- Restart Astra
  4. -- Press Ctrl + Shift + R in your browser to reset cache
  5.  
  6. astra_storage["/mod.css"] = [[
  7. css
  8. ]]
  9.  
  10. astra_storage["/mod.js"] = astra_storage["/mod.js"] .. [[
  11. (function() {
  12.     $.head.addChild($.element("link")
  13.         .addAttr("rel", "stylesheet")
  14.         .addAttr("type", "text/css")
  15.         .addAttr("href", "/mod.css")
  16.         .addAttr("media", "all"));
  17. })();
  18. ]]
Advertisement
Add Comment
Please, Sign In to add comment