Posted By

cerxx on 08/26/18


Tagged

chrome


Versions (?)

Clear modification cache by kyeabord combination


 / Published in: JavaScript
 

URL: https://chrome.google.com/webstore/detail/shortkeys-custom-keyboard/logpjaacgmcbpdkdchjiaagddngobkck

Clear modification cache by kyeabord combination

  1. javascript:
  2. (function () {
  3. var params = window
  4. .location
  5. .search
  6. .replace('?','')
  7. .split('&')
  8. .reduce(
  9. function(p,e){
  10. var a = e.split('=');
  11. p[ decodeURIComponent(a[0])] = decodeURIComponent(a[1]);
  12. return p;
  13. },
  14. {}
  15. ),
  16. token = params.token,
  17. url = "/admin/index.php?route=extension/modification/refresh&token=",
  18. h = window.location.hostname,
  19. p = window.location.protocol,
  20. refresh = p + "//" + h + url + token;
  21. window.location = refresh;
  22. }());

Report this snippet  

You need to login to post a comment.