Wikifeet(X) for EU

Re-enables Wikifeet(X) for users browsing from inside the EU.

  1. // ==UserScript==
  2. // @name Wikifeet(X) for EU
  3. // @namespace http://www.jeroendekort.nl
  4. // @version 0.1
  5. // @description Re-enables Wikifeet(X) for users browsing from inside the EU.
  6. // @author You
  7. // @match https://www.wikifeet.com/*
  8. // @match https://www.wikifeetx.com/*
  9. // @grant unsafeWindow
  10. // @require https://code.jquery.com/jquery-3.5.0.js
  11. // ==/UserScript==
  12.  
  13. var $ = window.jQuery;
  14. $(function(){
  15. messanger.eus = 0;
  16. pSkipPage(1);
  17.  
  18. $(document).ready(function() {
  19. window.setTimeout(function(){
  20. $("[id^='w_post']").each(function(){
  21. if (typeof $(this) !== 'undefined'){
  22. if ($(this).find("a")){
  23. var $ahref = $(this).find("a");
  24. var style = $ahref.children().first().attr("style");
  25. if (style){
  26. $ahref.attr("href", /https.*?jpg/.exec(style)[0].replace("thumbs","pics"));
  27. }
  28. }
  29. }
  30. });
  31. }, 1000);
  32. });
  33. });