• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

A Rep-Identifying Bookmarklet

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #41
    Originally posted by NickFitz View Post
    Most of the ones I've got signed "MF" were actually by AtW
    Same here. The weasely little man hasn't even got the balls to sign his own -ive repping.

    The vegetarian option.

    Comment


      #42
      Originally posted by OwlHoot View Post
      I've had that, for some post of either scintillating wit or exceptional stupidity/offensiveness.

      Each rep has it's own entry, with a unique post ID and user ID.
      I see that now. I had just never posted anything that more than one person thought worthwhile repping before.

      Comment


        #43
        Originally posted by Gonzo View Post
        I had just never posted anything that more than one person thought worthwhile repping before.
        You could always try a "My Lunch" thread. If you don't mind multiple negs!
        “The period of the disintegration of the European Union has begun. And the first vessel to have departed is Britain”

        Comment


          #44
          I just tried this in Chrome and it thought I was doing a search for that long expression. I'm sure it worked before, is this a change to CUK or to Chrome?

          Originally posted by NickFitz View Post
          1. Copy the following (very long) line of code (a triple-click anywhere in the code box ought to select it all):

            (N.B. This is the new, more efficient version; the old version is left below for completeness.)

            Code:
            javascript:(function(){var memberURL, i, limit, reputationItem, userId, reputationList = document.getElementById("latest_reputation"),reputationItems = reputationList.getElementsByTagName("li"),connections = [],insertUsernameForId = function(element, id) {var connection;if (id in connections) { connection = connections[id];connection.elements[connection.elements.length] = element;} else {connection = connections[id] = {"http": new XMLHttpRequest(),"elements": [element]};memberURL = self.location.protocol + "//" + self.location.host + "/member.php/" + id;connection.http.open("GET", memberURL, true);connection.http.onreadystatechange = function(connection) {return function() {if (connection.http.readyState == 4) {var i, limit, elements, text = connection.http.responseText,username = /<title>View Profile: (.*) - Contractor UK Bulletin Board<\/title>/.exec(text)[1];for (i = 0, elements = connection.elements, limit = elements.length; i < limit; i++) {elements[i].appendChild(document.createElement("p")).appendChild(document.createElement("b")).appendChild(document.createTextNode("Repped by: " + username));}}};}(connection);connection.http.send("");}};for (i = 0; reputationItem = reputationItems[i]; i++) {userId = /[^_]\d*$/.exec(reputationItem.id)[0];insertUsernameForId(reputationItem, userId);}})()
            (N.B. This is the old version; use the one above instead, as it's more efficient, and also makes cooler use of closures, lambda calculus, partially applied functions, and stuff like that.)

            Code:
            javascript:(function() {var http, memberURL;var reputationList = document.getElementById("latest_reputation");var reputationItems = reputationList.getElementsByTagName("li");var t = [];var readystatechangeFactory = function(http, element, id) {return function() {if (http.readyState == 4) {var text = http.responseText;var userId = /<title>View Profile: (.*) - Contractor UK Bulletin Board<\/title>/.exec(text)[1];element.appendChild(document.createElement("p")).appendChild(document.createElement("b")).appendChild(document.createTextNode("Repped by: " + userId));}}};for (var i = 0, l = reputationItems.length, userId; i < l; i++) {http = new XMLHttpRequest();userId = /[^_]\d*$/.exec(reputationItems[i].id)[0];memberURL = self.location.protocol + "//" + self.location.host + "/member.php/" + userId;http.open("GET", memberURL, true);http.onreadystatechange = readystatechangeFactory(http, reputationItems[i], userId);http.send("");}})()
          2. Go to your settings page;

          3. Paste the code you just copied into your location bar;

          4. Hit Enter.


          Wait a few seconds for the code to fetch the data, and each of your reps will acquire an additional line giving the username of the person who awarded it

          You can turn that code into a bookmark on your bookmarks bar, for easy use in future, but the steps vary depending on browser; try having a look at the info in Wikipedia: Bookmarklet - Wikipedia, the free encyclopedia

          I'll post a neatly-formatted version of the code below for those who want to check out how it works - it's pretty trivial
          Originally posted by MaryPoppins
          I'd still not breastfeed a nazi
          Originally posted by vetran
          Urine is quite nourishing

          Comment


            #45
            Originally posted by d000hg View Post
            I just tried this in Chrome and it thought I was doing a search for that long expression. I'm sure it worked before, is this a change to CUK or to Chrome?
            Did it find this thread?

            Comment


              #46
              Originally posted by d000hg View Post
              I just tried this in Chrome and it thought I was doing a search for that long expression. I'm sure it worked before, is this a change to CUK or to Chrome?
              I think it must be Chrome, it works fine in Firefox.
              The vegetarian option.

              Comment


                #47
                Originally posted by k2p2 View Post
                Did it find this thread?
                Yes
                Originally posted by MaryPoppins
                I'd still not breastfeed a nazi
                Originally posted by vetran
                Urine is quite nourishing

                Comment


                  #48
                  I tried it in all my browsers and no joy.

                  Comment


                    #49
                    Originally posted by TimberWolf View Post
                    I tried it in all my browsers and no joy.
                    I've found that the leading bit of the snippet gets cut off when copying and pasting.

                    Edit just tried it again in IE and it worked fine!
                    Coffee's for closers

                    Comment


                      #50
                      Originally posted by Spacecadet View Post
                      I've found that the leading bit of the snippet gets cut off when copying and pasting.

                      Edit just tried it again in IE and it worked fine!
                      I found the only way to get it working on chrome was to add it as a tampermonkey script and then set it to only run on the appropriate page.

                      Code:
                      // ==UserScript==
                      // @name       Contractor UK crap
                      // @namespace  http://forums.contractoruk.com/
                      // @version    0.1
                      // @description  enter something useful
                      // @include    http://forums.contractoruk.com/usercp.php
                      // @copyright  2011+, NickFitz
                      // ==/UserScript==
                      
                      javascript:(function(){var memberURL, i, limit, reputationItem, userId, reputationList = document.getElementById("latest_reputation"),reputationItems = reputationList.getElementsByTagName("li"),connections = [],insertUsernameForId = function(element, id) {var connection;if (id in connections) { connection = connections[id];connection.elements[connection.elements.length] = element;} else {connection = connections[id] = {"http": new XMLHttpRequest(),"elements": [element]};memberURL = self.location.protocol + "//" + self.location.host + "/member.php/" + id;connection.http.open("GET", memberURL, true);connection.http.onreadystatechange = function(connection) {return function() {if (connection.http.readyState == 4) {var i, limit, elements, text = connection.http.responseText,username = /<title>View Profile: (.*) - Contractor UK Bulletin Board<\/title>/.exec(text)[1];for (i = 0, elements = connection.elements, limit = elements.length; i < limit; i++) {elements[i].appendChild(document.createElement("p")).appendChild(document.createElement("b")).appendChild(document.createTextNode("Repped by: " + username));}}};}(connection);connection.http.send("");}};for (i = 0; reputationItem = reputationItems[i]; i++) {userId = /[^_]\d*$/.exec(reputationItem.id)[0];insertUsernameForId(reputationItem, userId);}})()
                      Last edited by eek; 12 September 2011, 12:53. Reason: To add my tampermonkey script
                      merely at clientco for the entertainment

                      Comment

                      Working...
                      X