Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name ESR AJAX Plus
- // @namespace http://www.esreality.com/
- // @include http://www.esreality.com/*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
- // ==/UserScript==
- $('a[title^="Click [+]"]').each(function(i, item) {
- $(this).click(function() {
- var href = $(this).attr('href')
- var post_id = parseInt(href.match(/post_id=(\d+)/)[1])
- $.ajax({url: href, dataType: 'html'}).success(function(html) {
- var selector = 'a[class="judgementvalue"][href$="post_id=' + post_id + '"]'
- $(selector).html($(selector, html).html())
- }).error(function() {
- alert('Something went wrong, sorry :/')
- })
- return false
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement