JVC 2.0.1

JVC qui go muscu

  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.  
  15.  
  16. $('.header-top').css('height',"2.5rem");
  17. $('.global-menu').css('height',"2.5rem");
  18. $('.global-web').css('height',"2.5rem");
  19. $('.global-user').css('height',"2.5rem");
  20.  
  21.  
  22. $('.global-menu').css('line-height',"2.5rem");
  23. $('.global-web').css('line-height',"2.5rem");
  24. $('.global-user').css('line-height',"2.5rem");
  25.  
  26. $('.nav-primary .nav-lvl1-item > .nav-link').css('line-height',"2.5rem");
  27. $('.nav-primary .nav-lvl1-item > .nav-link').css('height',"2.5rem");
  28.  
  29. $('.nav-primary').css('height',"2.5rem");
  30. $('.nav-primary').css('top',"-2.5rem");
  31.  
  32. $('.container').css('max-width',"none");
  33. $('.nav-lvl1 li:last-child').hide();
  34. $('.forum-right-col').find('iframe').hide();
  35. $('.forum-right-col').find('body').hide();
  36. $('.header-top').css('height',"2.5rem");
  37.  
  38.  
  39. $('.nav-platform .nav-lvl1').css('height',"2rem");
  40. $('.nav-container').css('line-height',"2rem");
  41.  
  42. $('.nav-toggler').css('height',"0.7rem");
  43. $('.nav-lvl2').css('margin-top', "-15px");
  44.  
  45. $('.header-sticky, .header-bottom').css('height',"2rem");
  46. $('.header-sticky').css('line-height',"2rem");
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. var $mouseX = 0, $mouseY = 0;
  54. var $xp = 0, $yp =0;
  55.  
  56. $(document).mousemove(function(e){
  57. $mouseX = e.pageX;
  58. $mouseY = e.pageY;
  59. });
  60.  
  61. var $loop = setInterval(function(){
  62. // change 12 to alter damping higher is slower
  63. $xp += (($mouseX - $xp)/12);
  64. $yp += (($mouseY - $yp)/12);
  65.  
  66. $("#preview").css('position',"absolute");
  67. $("#preview").css({left:$xp+20 +'px', top:$yp +'px'});
  68. }, 30);
  69. $("body").append("<div id=\"preview\"> </div>")
  70. var currentRequest = null;
  71.  
  72. $('#page-topics #forum-main-col a').mouseenter(function (){
  73. $("#preview").show();
  74. $("#preview").html('<img src="http://image.noelshack.com/fichiers/2016/26/1466991982-squares-1.gif" />');
  75. currentRequest = $.ajax({
  76. url:$(this).attr("href"),
  77. beforeSend : function() {
  78. if(currentRequest != null) {
  79. currentRequest.abort();
  80. }
  81. },
  82. success: function(response) {
  83. $('#preview').html($(response).find(".bloc-message-forum:first"));
  84. $(this).removeAttr('title');
  85. }
  86. }
  87. );
  88.  
  89. }).mouseleave(function(){
  90. $("#preview").hide();
  91. });
  92.  
  93.  
  94. $('[title]').mouseover(function () {
  95. $this = $(this);
  96. $this.data('title', $this.attr('title'));
  97. $this.attr('title', '');
  98. }).mouseout(function () {
  99. $this = $(this);
  100. $this.attr('title', $this.data('title'));
  101. });