Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:
- function myRadFunction() {
- var domain2Dirty = $('.sub').html();
- var domain2Dirty2 = domain2Dirty.substring(13);
- var indexURLEnd = domain2Dirty2.indexOf('"');
- var domain2 = domain2Dirty2.substring(0,indexURLEnd);
- alert(domain2);
- /*$.get("http://getpocket.com/unread", function(data){
- alert($('.favicon').attr('domain'));
- });*/
- /*RETURNS CORRECTLY FROM OLD READING LIST (../unread)
- alert($('.favicon').attr('domain')); --> DOMAIN
- alert($('.item').html()); --> TITLE
- */
- }
- if (!($ = window.jQuery)) {
- script = document.createElement( 'script' );
- script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
- script.onload=myRadFunction;
- document.body.appendChild(script);
- }
- else {
- myRadFunction();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement