Results 1 to 7 of 7
Threaded View
-
5th Jun 2010, 03:18 AM #1OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comhelp with Google PR, In JS
heya guys.
im working on a PR Checker plugin for jQuery but i cant seem to get the hashing to work.
The hashing it returns is invalid and im unsure why exactly.
Take a look at the code
Code:( $.fn.PageRank = function(callback) { var _library = new Object(); //Creat the system library var HASH_SEED = "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer." _library.parseUrl = function(a) { var b = {}; /* * parse the url to extract its parts */ if (a = a.match(/((s?ftp|https?):\/\/){1}([^\/:]+)?(:([0-9]+))?([^\?#]+)?(\?([^#]+))?(#(.+))?/)) { b.scheme = a[2] ? a[2] : "http"; b.host = a[3] ? a[3] : null; b.port = a[5] ? a[5] : null; b.path = a[6] ? a[6] : null; b.args = a[8] ? a[8] : null; b.anchor = a[10] ? a[10] : null } return b } _library.toHex = function(a){ return (a < 16 ? "0" : "") + a.toString(16) } _library.hexEncodeU32 = function(a) { var b = _library.toHex(a >>> 24); b += _library.toHex(a >>> 16 & 255); b += _library.toHex(a >>> 8 & 255); return b + _library.toHex(a & 255) } _library.generateHash = function(a) { for (var b = 16909125, c = 0; c < a.length; c++) { b ^= HASH_SEED.charCodeAt(c % 87) ^ a.charCodeAt(c); b = b >>> 23 | b << 9; } return _library.hexEncodeU32(b) } var CheckPageRank = function(url) { urlSegments = _library.parseUrl(url); if(urlSegments && urlSegments.host) { checkLocation = "http://www.google.com/search?client=navclient-auto&ch=8" + _library.generateHash(urlSegments.host) + "&features=Rank&q=info:" + urlSegments.host; return checkLocation } return false; } //Return the callback $(this).each(function(){ page_rank = CheckPageRank(this.href); callback(page_rank); }) } )(jQuery);
Code:$(document).ready(function() { $('a').PageRank(function(pr){ $(this).append('Pr: ' pr); }) })
Heres the code i have studied
http://www.v7n.com/forums/coding-for...cript-php.htmllitewarez Reviewed by litewarez on . help with Google PR, In JS heya guys. im working on a PR Checker plugin for jQuery but i cant seem to get the hashing to work. The hashing it returns is invalid and im unsure why exactly. Take a look at the code ( Rating: 5Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Google Shutdowns Continue: iGoogle, Google Video, Google Mini & Others Are Killed
By Bretteo in forum News & Current EventsReplies: 16Last Post: 9th Jul 2012, 07:22 AM -
Google Chrome browser taking your search to bing instead of Google?
By happyvalentine in forum Tutorials and GuidesReplies: 3Last Post: 19th Jun 2012, 05:56 PM -
[Selling] Beat Google Panda And Penguin - Boost Your Rank On Google Now! Read more @ bestblack
By alexjer12 in forum ServicesReplies: 1Last Post: 14th Jun 2012, 07:59 AM -
Google is Evil: Google?s removal of parked domains was planned all along
By Phozon in forum News & Current EventsReplies: 3Last Post: 2nd Dec 2011, 03:27 PM -
Google Scores a Big Victory for BitTorrent Sites Google has won its court case again
By Daniel in forum News & Current EventsReplies: 0Last Post: 30th Jun 2010, 06:51 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...