🏠 Home 

JVC 2.0.1

JVC qui go muscu


Install this script?
  1. // ==UserScript==
  2. // @name JVC 2.0.1
  3. // @namespace http://zizi/
  4. // @version 0.2
  5. // @description JVC qui go muscu
  6. // @author Singles
  7. // @include http://*.jeuxvideo.com/*
  8. // @include http://*.forumjv.com/*
  9. // @include https://*.jeuxvideo.com/*
  10. // @include https://*.forumjv.com/*
  11. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  12. // @grant none
  13. // ==/UserScript==
  14. $('.header-top').css('height',"2.5rem");
  15. $('.global-menu').css('height',"2.5rem");
  16. $('.global-web').css('height',"2.5rem");
  17. $('.global-user').css('height',"2.5rem");
  18. $('.global-menu').css('line-height',"2.5rem");
  19. $('.global-web').css('line-height',"2.5rem");
  20. $('.global-user').css('line-height',"2.5rem");
  21. $('.nav-primary .nav-lvl1-item > .nav-link').css('line-height',"2.5rem");
  22. $('.nav-primary .nav-lvl1-item > .nav-link').css('height',"2.5rem");
  23. $('.nav-primary').css('height',"2.5rem");
  24. $('.nav-primary').css('top',"-2.5rem");
  25. $('.container').css('max-width',"none");
  26. $('.nav-lvl1 li:last-child').hide();
  27. $('.forum-right-col').find('iframe').hide();
  28. $('.forum-right-col').find('body').hide();
  29. $('.header-top').css('height',"2.5rem");
  30. $('.nav-platform .nav-lvl1').css('height',"2rem");
  31. $('.nav-container').css('line-height',"2rem");
  32. $('.nav-toggler').css('height',"0.7rem");
  33. $('.nav-lvl2').css('margin-top', "-15px");
  34. $('.header-sticky, .header-bottom').css('height',"2rem");
  35. $('.header-sticky').css('line-height',"2rem");
  36. var $mouseX = 0, $mouseY = 0;
  37. var $xp = 0, $yp =0;
  38. $(document).mousemove(function(e){
  39. $mouseX = e.pageX;
  40. $mouseY = e.pageY;
  41. });
  42. var $loop = setInterval(function(){
  43. // change 12 to alter damping higher is slower
  44. $xp += (($mouseX - $xp)/12);
  45. $yp += (($mouseY - $yp)/12);
  46. $("#preview").css('position',"absolute");
  47. $("#preview").css({left:$xp+20 +'px', top:$yp +'px'});
  48. }, 30);
  49. $("body").append("<div id=\"preview\"> </div>")
  50. var currentRequest = null;
  51. $('#page-topics #forum-main-col a').mouseenter(function (){
  52. $("#preview").show();
  53. $("#preview").html('<img src="http://image.noelshack.com/fichiers/2016/26/1466991982-squares-1.gif" />');
  54. currentRequest = $.ajax({
  55. url:$(this).attr("href"),
  56. beforeSend : function() {
  57. if(currentRequest != null) {
  58. currentRequest.abort();
  59. }
  60. },
  61. success: function(response) {
  62. $('#preview').html($(response).find(".bloc-message-forum:first"));
  63. $(this).removeAttr('title');
  64. }
  65. }
  66. );
  67. }).mouseleave(function(){
  68. $("#preview").hide();
  69. });
  70. $('[title]').mouseover(function () {
  71. $this = $(this);
  72. $this.data('title', $this.attr('title'));
  73. $this.attr('title', '');
  74. }).mouseout(function () {
  75. $this = $(this);
  76. $this.attr('title', $this.data('title'));
  77. });