Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Rezka
- // @version 1
- // @include https://rezka.ag/*
- // @grant GM_getValue
- // @grant GM_setValue
- // @grant GM_deleteValue
- // @grant GM_listValues
- // @grant GM_addValueChangeListener
- // @grant GM_openInTab
- // @grant GM_xmlhttpRequest
- // @grant GM.getValue
- // @grant GM.setValue
- // @grant GM.deleteValue
- // @grant GM.listValues
- // @grant GM.openInTab
- // @grant GM.xmlHttpRequest
- // @run-at document-end
- // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
- // ==/UserScript==
- run();
- function run() {
- console.log("-------- Greasing Rezka -------------");
- var all = $(document).find('.b-content__inline_item');
- $.each(all, function(index, element){
- var id = element.getAttribute('data-id');
- setTimeout(function() {
- try {
- $.ajax({
- url: '/engine/ajax/quick_content.php',
- data: {
- id: id,
- is_touch: 1
- },
- type: 'POST',
- cache: !1,
- dataType: 'html'
- }).always(function (response) {
- var html = $('<div id="bubble-content-' + id + '" class="b-content__bubble"><div class="b-content__bubble_content">' + response + '</div>' + '<i class="arrow"><i></i></i></div>');
- if (html.length == 0)
- return;
- var rates_div = $(html[0]).find('.b-content__bubble_rates');
- if (rates_div.length == 0)
- return;
- element.append(rates_div[0]);
- })
- } catch (e) {
- console.error(e);
- }
- }, index * 150 + index * 10);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement