SHOW:
|
|
- or go back to the newest paste.
1 | - | // Flickr PM TWEAKED - 2017 |
1 | + | // Flickr PM TWEAKED - 2022.03 (OK PHOT page - (NO Archives - POOL Square) |
2 | ||
3 | // (c) 2005-2013 Stephen Fernandez - Excellatronic Communications | |
4 | ||
5 | // Disclaimer | |
6 | // ========== | |
7 | // Please note that this software comes with no warranty whatsoever, any usage of this script is at your own risk, | |
8 | // i cannot be held responsible for anything bad that happens regarding usage of this script. | |
9 | ||
10 | // Description | |
11 | // =========== | |
12 | // This is a Greasemonkey (see http://www.greasespot.net for more info) user script. The script adds a icons for mail, profile, favourites, archive, flickr scout, flickr DNA and the | |
13 | // list of the users photos ordered by "interestingness" next to next to usernames in flickr forums,photo pages + | |
14 | // recent_activity and photo_comments pages. It also adds a flickr mail popup function, which lets you send a flickrmail | |
15 | // directly from the page where you click the mail link. | |
16 | ||
17 | // Installation | |
18 | // ============ | |
19 | // | |
20 | // To install, you need FireFox http://www.mozilla.org/firefox | |
21 | // and the firefox extension called Greasemonkey: http://www.greasespot.net/ | |
22 | // Install the Greasemonkey extension then restart Firefox and revisit this script. | |
23 | // Under Tools, there will be a new menu item to "Install User Script". | |
24 | // Accept the default configuration and install. | |
25 | // | |
26 | // To uninstall, go to Tools/Manage User Scripts, | |
27 | // select "flickrPM", and click Uninstall. | |
28 | ||
29 | // DONATE | |
30 | // ====== | |
31 | // If you wish to thank me for all the hard work i have put into writing/testing/supporting this script, | |
32 | // and would like to support further updates and bug fixes, you can send me a few pounds/dollars etc | |
33 | // via PayPal, my paypal donation link can be found here http://steeev.freehostia.com/donate/ | |
34 | ||
35 | // Whats New | |
36 | // ========= | |
37 | // v4.1.1 30/07/13 fixed fpm links on group discussion pages | |
38 | // v4.1.0 24/07/13 fixed fpm links on main photostream and profile pages, fixed flickr mail popup (for firefox) | |
39 | // v4.0.2 24/03/11 fixed for Firefox 4 | |
40 | // v4.0.1 03/02/11 fixed cramping of fpm info bar on photo pages | |
41 | // v4.0.0 05/08/10 fixed for photos with multi page comments | |
42 | // v3.9f 05/08/10 fixed mail sending function (thanks Laramie Coyote!) | |
43 | // v3.9e 04/08/10 preliminary fix for new photo page, needs a bit more tweaking (doesnt work on multi page photo comments), but basics are working | |
44 | // v3.9d 18/06/10 fixed script for Opera | |
45 | // fixed links on people search page | |
46 | // v3.9c 12/02/10 fixed script for GC4 | |
47 | // v3.9b 24/01/10 fixed userlinks for curated image owners on gallery pages | |
48 | // v3.9a 17/12/09 fixed mail popup | |
49 | // v3.9 16/10/09 added "RE" relationship link, that lets you change your relationship with that user, i.e become a contact/friend etc | |
50 | // renamed links to 2 letters each for consistency | |
51 | // v3.83 15/09/09 added fpm functionality to gallery pages | |
52 | // v3.82 13/05/09 added error check for a user sending mail too fast | |
53 | // v3.81 07/04/09 added flickrpm to "people who favourited this photo page" | |
54 | // v3.8 01/04/09 added joined date and number of items to mail popup, also added staff note for flickr staff | |
55 | // v3.73 30/03/09 replaced flickrriver.com link with link to darckr.com. added flickrpm links to admin pool pending page | |
56 | // v3.72 06/03/09 added pm icons/links to contacts list page and also group admin (members/moderators) pages | |
57 | // v3.71 21/02/09 script fixed to work on individual flickr mail pages | |
58 | // v3.7 19/02/09 updated script to work with new site changes (contacts page, photo page, activity page) also replaced flickr leech link with flickr river link | |
59 | // v3.63 15/11/08 updated INT link to point to new service provided by http://flickr.com/drayde | |
60 | // v3.62 08/07/08 flickrpm mail popup no longer reports an error when sending mail if you are on international version of the site | |
61 | // v3.61 06/06/08 flickrpm now works on forum search page, no longer display fpm links for deleted users, | |
62 | // flickrmail popup now also displays users real name and location if they have them listed in their account | |
63 | // v3.55 02/6/08 flickrpm now works on search pages again, and now also on the allsizes page | |
64 | // v3.54 28/5/08 fixed userid getting code, for cases where user doesnt have a buddyicon | |
65 | // v3.53 24/4/08 popup window doesnt scroll to top of page anymore, fixed mail popup, not displaying correctly over videos on photostream page | |
66 | // v3.52 21/5/08 added link to flickr leech, fixed browser resizing issue, fixed popup window links styles, added donation link | |
67 | // v3.5 14/3/08 fixed mail sending part of the code, which was broken due to GM 0.7 security update | |
68 | // v3.41 20/6/07 switched flickr inspector link with a link to the new flickr dna service | |
69 | // v3.4 08/6/07 optimised some of the code (using regex instead of multiple split functions) | |
70 | // v3.33 02/5/07 fixed mail popup bug - clicking mail link on first poster to a thread, popped up wrong fmail address | |
71 | // v3.32 21/4/07 fixed fpm to work on the new help forum, also added some excludes to stop script running on pages it doesnt need to | |
72 | // v3.31 27/3/07 fixed a bug in the mail sending code, it would cut the message short if it had an ampersand in it | |
73 | // v3.3 21/12/06 added fpm functionality to sent+received flickrmail messages + also to the profile page | |
74 | // v3.22 8/8/06 added preview function in the mail popup | |
75 | // v3.21 31/7/06 fixed textarea width for flickrmail popup + added FPM to /contacts/ pages + /search/ pages | |
76 | // v3.2 25/7/06 added FPM links to header of photostream pages | |
77 | // v3.1 24/7/06 fixed minor bug, the pm toolbar is no longer displayed in recent_activity or photo_comments pages nexty to your own comments | |
78 | // v3.0 21/7/06 I added FPM to recent_activity+photo_comments pages also added Flickr Mail Popup function to let you Flickr Mail users directly from the same page. | |
79 | // v2.6 14/7/06 I added a link to Flickr Inspector | |
80 | // v2.5 14/7/06 I added a link to Scout | |
81 | // v2.41 17/5/06 I fixed bug where first post in forum didnt get the links | |
82 | // v2.4 17/5/06 I fixed it for Flickr Gamma, cheers Scragz for the style tip btw! | |
83 | // v2.3 16/4/06 I added a link to go to the list of the users photos ordered by Interestingness | |
84 | // v2.2 17/8/05 I changed the included URLs so the script would work with the new Group URLs format | |
85 | // v2.1 27/7/05 I added a new icon for users photo archive by date taken | |
86 | // v2.0 09/6/05 Pedro fixed a bug and added some extra functionality (extra icons, usernames now link to photos again, removed pink popup) | |
87 | // v1.4 31/5/05 I got rid of question mark link for profile, instead changed username link to goto profile. | |
88 | // v1.3 29/5/05 I added a profile link | |
89 | // v1.2 28/5/05 initial public release | |
90 | ||
91 | // Credits | |
92 | // ======= | |
93 | // Bug fix plus a little extra functionality supplied by Pedro: http://flickr.com/photos/ppPedro | |
94 | // Some of the Icons were encoded by jrhyley: http://flickr.com/photos/jrhyley | |
95 | // Thanks Guys! :D | |
96 | ||
97 | ||
98 | // ==UserScript== | |
99 | - | // @name flickrPM (TWEAKED 2017) HTTPS |
99 | + | // @name flickrPM (TWEAK 2020) - 2021.02 PB POHOT page |
100 | - | // @description - Tweak ICON Base64 - verify BROKEN 2017 (new Archives) - Adds icons for mail, profile, favourites, Scout, Interestingness, photo archive and "change relationship" next to usernames in forums and on individual photo pages. |
100 | + | // @description fav Justified - fLUIDr / HIVE PB - Tweak ICON Base64 - verify BROKEN 2017 (new Archives) - Adds icons for mail, profile, favourites, Scout, Interestingness, photo archive and "change relationship" next to usernames in forums and on individual photo pages. |
101 | // @version 4.1.1 - 30th July 2013 | |
102 | // @namespace http://steeev.f2o.org/flickr/ | |
103 | // @author Stephen Fernandez aka Steeev http://steeev.freehostia.com http://flickr.com/steeev with some additional code from Pedro Vieira http://flickr.com/photos/ppPedro | |
104 | ||
105 | // @include http*://*flickr.com/* | |
106 | ||
107 | - | // @exclude http*://www.flickr.com/groups?* |
107 | + | |
108 | - | // @exclude http*://www.flickr.com/groups/* |
108 | + | |
109 | ||
110 | // @grant none | |
111 | ||
112 | // ==/UserScript== | |
113 | ||
114 | /* | |
115 | // VOIR EXLUDE | |
116 | http*://www.flickr.com/groups?* | |
117 | http*://www.flickr.com/groups/* | |
118 | */ | |
119 | ||
120 | (function() { | |
121 | ||
122 | var fpmVersion="4.1.1"; | |
123 | //var FPMStartTime=new Date(); | |
124 | ||
125 | if (typeof unsafeWindow != 'undefined') | |
126 | win=unsafeWindow; | |
127 | else if (typeof contentWindow !='undefined') | |
128 | win=contentWindow; | |
129 | else | |
130 | win=window; | |
131 | ||
132 | var aaa=document.getElementsByTagName('a'); | |
133 | for (i=0;i<aaa.length;i++) | |
134 | if(aaa[i].href.match(/logout\.gne/)) { | |
135 | var magic_auth_hash_cookie=aaa[i].href.match(/logout\.gne\?magic_cookie=(.+)/)[1]; | |
136 | break; | |
137 | } | |
138 | aaa=null; | |
139 | ||
140 | // setup a listener for multi page comments | |
141 | function fpmInsertedNodeDomHandler(event) { | |
142 | if(event.target.nodeName=='OL') | |
143 | fpmlinks_newphotopage(); | |
144 | } | |
145 | ||
146 | // if we are on the new photopage, start listening | |
147 | if (document.getElementById('button-bar')) { | |
148 | document.addEventListener("DOMNodeInserted", fpmInsertedNodeDomHandler, false); | |
149 | } | |
150 | // END listener code | |
151 | ||
152 | ||
153 | if (typeof(GM_addStyle)=='undefined') | |
154 | function GM_addStyle(css) { | |
155 | var head, style; | |
156 | head = document.getElementsByTagName('head')[0]; | |
157 | if (!head) { return; } | |
158 | style = document.createElement('style'); | |
159 | style.type = 'text/css'; | |
160 | style.textContent = css; | |
161 | head.appendChild(style); | |
162 | } | |
163 | ||
164 | GM_addStyle("a.fpmLink {text-decoration:none; vertical-align:middle } a.fpmLink:hover {color: #FFA6FE}"); | |
165 | ||
166 | if (!document.getElementsByClassName) { | |
167 | var getElementsByClassName = function (classname,tagname) { | |
168 | if(win.Y.U.Dom.getElementsByClassName) | |
169 | return win.Y.U.Dom.getElementsByClassName(classname,tagname); | |
170 | else | |
171 | return false; | |
172 | } | |
173 | } | |
174 | else { | |
175 | var getElementsByClassName = function (classname,tagname) { | |
176 | return document.getElementsByClassName(classname,tagname); //firefox 3 has this function built in | |
177 | } | |
178 | ||
179 | } | |
180 | ||
181 | //alert('do we get here'); | |
182 | ||
183 | // BEGIN Flickr Mail Popup code | |
184 | ||
185 | win.FMPgrabusername = function(userid) { | |
186 | ||
187 | hostname=location.href.split('/')[2]; | |
188 | apiurl="http://" + hostname + "/services/rest/?method=flickr.people.getInfo&api_key=9d179414c5491bb965d03dab476a0ef8&user_id="+userid; | |
189 | p = new XMLHttpRequest(); | |
190 | p.open("GET", apiurl, false); | |
191 | p.send(null); | |
192 | if (p.responseXML) { | |
193 | //alert(p.responseText) | |
194 | username=p.responseText.split("\<username\>")[1].split("\<\/")[0]; | |
195 | if(p.responseText.match('<realname>')) | |
196 | realname=p.responseText.split("\<realname\>")[1].split("\<\/")[0]; | |
197 | else | |
198 | realname=''; | |
199 | if(p.responseText.match('\<location\>')) | |
200 | ulocation=p.responseText.split("\<location\>")[1].split("\<\/")[0]; | |
201 | else | |
202 | ulocation=''; | |
203 | ||
204 | try { // in case they dont have a first upload date publically available | |
205 | var firstdate=p.responseText.split("\<firstdate\>")[1].split("\<\/")[0]; | |
206 | } | |
207 | catch(e) { | |
208 | var firstdate = "n/a"; | |
209 | } | |
210 | ||
211 | var itemcount=p.responseText.split("\<count\>")[1].split("\<\/")[0]; | |
212 | var flickrstaff= 0; //p.responseText.split("isadmin=\"")[1].split("\"")[0]; | |
213 | } | |
214 | else | |
215 | alert('Error retrieving users name'); | |
216 | return username + ':~:' + realname + ':~:' + ulocation + ':~:' + firstdate + ':~:' + itemcount + ':~:' + flickrstaff; | |
217 | ||
218 | } | |
219 | ||
220 | win.flickrmailpopup=function (e) { | |
221 | //alert (userid); | |
222 | e.preventDefault(); | |
223 | e.stopPropagation(); | |
224 | //console.log(e.target.parentNode.getAttribute('data-userid')); | |
225 | userid=e.target.parentNode.getAttribute('data-userid'); | |
226 | username=win.FMPgrabusername(userid); | |
227 | win.dspFMPEmailForm (userid,username); | |
228 | //win.FMPscrolltop=win.pageYOffset; //document.body.scrollTop; | |
229 | win.FMPscrolltop=win.getScrollTop(); | |
230 | ||
231 | //scroll(0,0); | |
232 | return false; // not really needed but oh well | |
233 | } | |
234 | ||
235 | /* this was for adding the popup function to the mail menu item in the buddy icon menu, but it doesnt work anymore so comenting out | |
236 | pmmlink=document.getElementById('personmenu_mail_link'); | |
237 | if(pmmlink) | |
238 | pmmlink.setAttribute('onclick',"return flickrmailpopup(this.getAttribute('href').split('=')[1]);"); | |
239 | */ | |
240 | if (!document.getElementById('emaildiv')) { | |
241 | emailDiv = document.createElement('div'); | |
242 | emailDiv.setAttribute('id','emaildiv'); | |
243 | emailDiv.style.position = 'absolute'; | |
244 | emailDiv.style.overflow = 'visible'; | |
245 | emailDiv.style.width = '450px'; | |
246 | emailDiv.style.padding = '10px'; | |
247 | emailDiv.style.margin = '4px'; | |
248 | emailDiv.style.left = (1*document.body.clientWidth-450)/2 + 'px'; | |
249 | emailDiv.style.display = 'none'; | |
250 | emailDiv.style.border = '2px solid #000'; | |
251 | emailDiv.style.background = '#ffffff'; | |
252 | //emailDiv.style.zIndex = 1000; | |
253 | GM_addStyle("#emaildiv { z-index:99999999; }"); | |
254 | } | |
255 | ||
256 | win.FMPprocessform = function(dform,preview) { | |
257 | ||
258 | win.FMPsendmail(document.getElementById('dauserid').value, document.getElementById('dausername').value, magic_auth_hash_cookie, document.getElementById('dasubjectPMid').value, document.getElementById('damessagePMid').value, preview); | |
259 | ||
260 | } | |
261 | ||
262 | // new function because old code to get scrolltop didnt work any more for some reason | |
263 | win.getScrollTop = function() { | |
264 | if(typeof pageYOffset!= 'undefined'){ | |
265 | return pageYOffset; | |
266 | } | |
267 | else{ | |
268 | var B= document.body; | |
269 | var D= document.documentElement; | |
270 | D= (D.clientHeight)? D: B; | |
271 | return D.scrollTop; | |
272 | } | |
273 | } | |
274 | ||
275 | win.dspFMPEmailForm = function (userid,username) { | |
276 | var dausername = username.split(':~:')[0]; | |
277 | if (username.split(':~:')[1]) | |
278 | realname=" Real Name: <b>" + username.split(':~:')[1] + '</b> '; | |
279 | else | |
280 | realname=''; | |
281 | ||
282 | if (username.split(':~:')[2]) { | |
283 | var theloc= username.split(':~:')[2]; | |
284 | var locmap='<font size="-2">( <a class="poplnk" title="See this location in Google Maps" target="_blank" href="http://maps.google.com/maps?f=q&hl=en&q=' + (encodeURIComponent(theloc+ ' (' + dausername + '\'s Home Town)')) +'">GM</a> / <a class="poplnk" title="See this location in Google Earth" target="_blank" href="http://steeev.freehostia.com/flickr/go2ge2.php?address=' + encodeURIComponent(theloc) + '&details=' + encodeURIComponent(dausername + "s Home Town") + '">GE</a> )</font>'; | |
285 | var ulocation=" Location: <b>" + theloc + '</b> ' + locmap; | |
286 | // locmap='<font size="-2"><a title="See this location in Google Maps" target="_blank" href="http://maps.google.com/maps?f=q&hl=en&q=' + (encodeURIComponent(hometownstripped+ ' (' + username + '\'s Home Town)')) +'">GM</a> / <a title="See this location in Google Earth" target="_blank" href="http://steeev.freehostia.com/flickr/go2ge2.php?address=' + encodeURIComponent(hometownstripped) + '&details=' + encodeURIComponent(username + "s Home Town") + '">GE</a></font>' | |
287 | } | |
288 | else | |
289 | ulocation=''; | |
290 | ||
291 | if(username.split(':~:')[3]!='n/a') { | |
292 | var joindate = new Date(username.split(':~:')[3]*1000) + ''; | |
293 | var joindatehuman=joindate.split(' ')[2] + ' ' + joindate.split(' ')[1] + ' ' + joindate.split(' ')[3]; | |
294 | } | |
295 | else | |
296 | joindatehuman='n/a'; | |
297 | ||
298 | var itemcount = username.split(':~:')[4]; | |
299 | var flickrstaff = username.split(':~:')[5]; | |
300 | ||
301 | if (flickrstaff=='1') { | |
302 | var usermessage='<b>A note from '+ dausername + ':</b><br/>Hi. I work here. Staff get a ton of FlickrMail, and it's not that we don't care, only that your message might be overlooked (by that I mean <i>not read</i>).<br/><br/>If you need help with something, the best thing to do is send an email directly to our trained support staff through <a class="poplnk" href="/help/website/#7"><b>Help by Email</b></a>. You might also like to have a look in our <a class="poplnk" href="/help/forum/">Help Forum</a> for your answer. Thanks.'; | |
303 | var previewclass='Preview'; | |
304 | } | |
305 | else if (userid=='36521957871@N01') { | |
306 | var usermessage='<b>A note from Steeev:</b><br/>Hi, I wrote this script, along with many other useful Flickr Greasemonkey scripts, available at <a class="poplnk" href="http://steeev.freehostia.com/flickr/"><b>http://steeev.freehostia.com/flickr</b></a>. I hope you like them, and if you do like them, please make a <a class="poplnk" href="http://steeev.freehostia.com/donate/"><b>donation</b></a> to show your appreciation. The more donations I get the more likely I am to further develop and support my scripts.<br/><br/>If you are having problems with this script or any of my other scripts, please search the <a class="poplnk" href="/groups/flickrhacks/"><b>Flickr Hacks group</b></a> first, before contacting me, as its quite possible your problem has come up and been answered before.<br><br>If you have found a bug in one of my scripts, then let me know, and please give as much details as possible, such as browser version, gm version, script version etc'; | |
307 | var previewclass='Preview'; | |
308 | } | |
309 | else { | |
310 | var usermessage=''; | |
311 | var previewclass=''; | |
312 | } | |
313 | ||
314 | emailDiv.innerHTML = "<style>span.sfhead { font-weight:bold; font-size: x-large } span.sfhead2 {font-weight:bold; font-size: large; color:#F52887} a.poplnk {text-decoration:none} a.poplnk:hover {color: red !important} </style><a title='Close Window' onclick='this.parentNode.style.display=\"none\";document.body.scrollTop=FMPscrolltop;return false;' href='javascript:;'><img style='float: right; position: relative; margin: 0; padding: 0; border:0px !important; vertical-align: top;' src='http://flickr.com/images/window_close_grey.gif'/></a>" + | |
315 | "<span class='sfhead'><b>FlickrPM Mail</b></span>" + " <a class='poplnk' title='Check for updates' href='http://steeev.site50.net/flickr/flickr.pm.htm'>v" + fpmVersion + "</a> by <b><a title='View steeevs photostream' class='poplnk' target=_new href='http://flickr.com/photos/steeev'>Steeev</a></b> " + makeLinks('36521957871@N01') + "<p>" + | |
316 | "<span class='sfhead2'>Send a Flickr Mail to this User</span><p>" + | |
317 | "<form name=frmsendmess id=pmsendmessid>To: <span id='pmusernamediv'><b>" + dausername + '</b>' + realname + ulocation + "</span><br>" + | |
318 | "<span id='usertrivia'><br>First upload: <b>" + joindatehuman + "</b> Uploaded: <b>" + itemcount + "</b> items<br></span>"+ | |
319 | "<div id='prvwspan' class='" + previewclass + "'>" + usermessage + "</div>" + | |
320 | //"<span id='sgspanid'></span>" + | |
321 | "<input type='hidden' id='dauserid' name='dauserid' value=" + userid + ">" + | |
322 | "<input type='hidden' id='dausername' name='dausername' value=" + encodeURIComponent(dausername) + ">" + | |
323 | "<br>Subject<br><input name='dasubject' id='dasubjectPMid' style='width:440px' tabindex='100'>" + | |
324 | "<br>Message<br><textarea name='damessage' id='damessagePMid' style='width:440px' rows='8' tabindex='102'></textarea><br>" + | |
325 | ||
326 | //"<input title='Saving the message will let you reuse it as a message template next time.' name=chksavemess type=checkbox value='true' id=chksavemessid>Save Message " + | |
327 | "<br><p style='text-align:center;'><input onclick='FMPprocessform(this.parentNode.parentNode,\"PREVIEW\");return false;' name='btnpreviewmess' class='Butt' type='button' value='PREVIEW'> or <input onclick='FMPprocessform(this.parentNode.parentNode,\"NOPREVIEW\");return false;' name='btnsendmess' class='Butt' type='button' value='SEND' tabindex='103'></p> </form><p/>" + | |
328 | "<span id='mailstatusPM'></span>" + | |
329 | "<p align='center'>If you appreciate Steeev's <a class='poplnk' href='http://steeev.freehostia.com/flickr/'>Flickr GM Scripts</a>. Please make a <a class='poplnk' href='http://steeev.freehostia.com/donate'>donation</a> :)</p>" + | |
330 | "<span><span style='float:left'><a class='poplnk' target=_new href='http://steeev.site50.net/flickr/flickr.pm.htm'>Help? / Discuss</a></span><span style='float:right'><a class='poplnk' href='javascript:;' onclick='document.getElementById(\"emaildiv\").style.display=\"none\";document.body.scrollTop=FMPscrolltop;return false;'>Close</a></span></span>"; | |
331 | emailDiv.style.display='block'; | |
332 | emailDiv.style.top=win.getScrollTop() + 'px'; // pageYOffset; //document.body.scrollTop; // scrolltop doesnt seem to work with the new photo page layout | |
333 | ||
334 | GM_addStyle(".Preview {border: 1px solid #ddd; background-color: #f5f5f5; padding: 10px; font-size: 12px;}"); | |
335 | ||
336 | } | |
337 | ||
338 | if (document.getElementById('candy_nav_button_bar')) | |
339 | document.getElementById('candy_nav_button_bar').appendChild(emailDiv); | |
340 | else | |
341 | document.body.appendChild(emailDiv); | |
342 | ||
343 | ||
344 | win.FMPsendmail=function(userid, username, mcookie, subject, message, preview) { | |
345 | if(!subject || !message) { | |
346 | alert('Please enter a Subject and a Message before clicking Send'); | |
347 | return false; | |
348 | } | |
349 | if (preview=='PREVIEW') { | |
350 | win.previewcode='&preview=PREVIEW'; | |
351 | } | |
352 | else | |
353 | { | |
354 | //scroll(0,0); | |
355 | // commenting the next line out is useful for debugging flickr mail manager :) | |
356 | document.getElementById('pmsendmessid').style.display='none'; | |
357 | document.getElementById('mailstatusPM').innerHTML="<b>Mail Status:</b> Sending Mail... <img src='http://flickr.com/images/pulser2.gif'/><p/>"; //"<div id='" + userid + "'><font color=blue>" + username + "</font> :</div>"; | |
358 | win.previewcode=''; | |
359 | } | |
360 | ||
361 | ||
362 | ///////// UPDATED: 14-3-2008 ////////////// | |
363 | //BEGIN post using plain old xmlhttprequest | |
364 | /////////////////////////////////////////// | |
365 | /* | |
366 | checkresponse = function(evt) { | |
367 | if (!win.previewcode) { | |
368 | if (evt.target.responseText.match('<p class="Confirm">')) //('Your message has been sent.')) | |
369 | document.getElementById('mailstatusPM').innerHTML="<b>Mail Status:</b> Mail has been sent to <b>" + decodeURIComponent(username).split("\:\~\:")[0] +'</b><p/>'; | |
370 | else { | |
371 | document.getElementById('mailstatusPM').innerHTML="<b>Mail Status:</b> Mail send has failed<p/>"; | |
372 | if(evt.target.responseText.match('<p class="Problem">')) | |
373 | document.getElementById('mailstatusPM').innerHTML+=("<p class='Problem'>" + evt.target.responseText.split('<p class="Problem">')[1].split('</div>')[0]); | |
374 | //if(evt.target.responseText.match('Slow down, partner')) | |
375 | // document.getElementById('mailstatusPM').innerHTML+="You have been blocked by this user"; | |
376 | } | |
377 | } | |
378 | else { | |
379 | if (evt.target.responseText.match('<div class="Preview">')) //('<h3>Preview your message</h3>')) | |
380 | document.getElementById('prvwspan').innerHTML=evt.target.responseText.split('<div class="Preview">')[1].split('</div>')[0]; | |
381 | else | |
382 | document.getElementById('prvwspan').innerHTML="<b>Preview:</b> Sorry theres been an error displaying the preview.<p/>"; | |
383 | } | |
384 | } // end function checkresponse | |
385 | */ | |
386 | pdata='magic_cookie=' + mcookie + '&reply=&done=1&to_nsid=' + userid + '&subject=' + encodeURIComponent(subject) + '&message=' + encodeURIComponent(message) + win.previewcode; | |
387 | hostname=location.href.split('/')[2]; | |
388 | req = false; | |
389 | try { | |
390 | req = new XMLHttpRequest(); | |
391 | } | |
392 | catch(e) { | |
393 | req = false; | |
394 | } | |
395 | ||
396 | req.onreadystatechange = function () { | |
397 | if( req.readyState != 4 ) { return; } | |
398 | if (!win.previewcode) { | |
399 | if (req.responseText.match('<p class="Confirm">')) //('Your message has been sent.')) | |
400 | document.getElementById('mailstatusPM').innerHTML="<b>Mail Status:</b> Mail has been sent to <b>" + decodeURIComponent(username).split("\:\~\:")[0] +'</b><p/>'; | |
401 | else { | |
402 | document.getElementById('mailstatusPM').innerHTML="<b>Mail Status:</b> Mail send has failed<p/>"; | |
403 | if(req.responseText.match('<p class="Problem">')) | |
404 | document.getElementById('mailstatusPM').innerHTML+=("<p class='Problem'>" + req.responseText.split('<p class="Problem">')[1].split('</div>')[0]); | |
405 | //if(evt.target.responseText.match('Slow down, partner')) | |
406 | // document.getElementById('mailstatusPM').innerHTML+="You have been blocked by this user"; | |
407 | } | |
408 | } | |
409 | else { | |
410 | if (req.responseText.match('<div class="Preview">')) //('<h3>Preview your message</h3>')) | |
411 | document.getElementById('prvwspan').innerHTML=req.responseText.split('<div class="Preview">')[1].split('</div>')[0]; | |
412 | else | |
413 | document.getElementById('prvwspan').innerHTML="<b>Preview:</b> Sorry theres been an error displaying the preview.<p/>"; | |
414 | } | |
415 | ||
416 | req.onreadystatechange = null; | |
417 | req = null; | |
418 | }; | |
419 | ||
420 | //req.onload=checkresponse; // response handler function (defined above) | |
421 | if(req) { | |
422 | req.open("POST", 'http://' + hostname + '/messages_write.gne', true); | |
423 | req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); | |
424 | ||
425 | req.send(pdata); | |
426 | } | |
427 | ///////////////////////////////////////// | |
428 | //END post using plain old xmlhttprequest | |
429 | ///////////////////////////////////////// | |
430 | ||
431 | return false; | |
432 | } | |
433 | ||
434 | // END Flickr Mail Popup code | |
435 | ||
436 | ||
437 | // BEGIN Flickr PM Code | |
438 | ||
439 | ||
440 | /* icons copied from jrhyleys (http://www.rhyley.org/gm/FlickrMail.user.js) */ | |
441 | // ICOM PRof - PB 2021.02 | |
442 | /* | |
443 | iconmail = '<img src="data:image/gif;base64,R0lGODlhDQAKAMQAAAAAAP////j4+O3t7ebm5uHh4czMzKqqqqOjo5ycnJOTk4qKioSEhHp6empqamJiYllZWf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABEALAAAAAANAAoAQAVIYOQ4UFk6TcNEj2K8MMw8kDAMiU0oQ2GUgtzApnMBB4ebgkBIvGgIgXQ6ndVwxMGO8LsSDgqBAkHwAZMFZtmwMDxYqbh8EQkBADs=" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: middle;" width="13" height="10">'; | |
444 | iconprof = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACD0lEQVQ4jU2TP48URxTEf/WmZ/eOO+2BfEiAkJwhIUfoQCIgcebv6S9i2alTB06QCACd0Mlr4budnZl+RdCNobN+/afqVdXT1dULw4AxIgEBYAtkAOQAJW0XiAoMiEqxWwkCMEgIoaFQLTJGFGKsB7KuWAYPoAUzUKQgXRvy18PxjNuTJ9zsXjGd/sj53Vsu//mDzeE9kFhGjCRJ4RtpjAAzl3NuHvzM/uIlGRumk6dUBU8//NpbEqnsLdApK3sL5jA+5Hj6mLPzHZsBjnNB/91HHjDtXpMnKFCBIC0ESGJcPzPk1LhZ2Ct4wkrUa500EZ12Qw+M2czXPLj5HfZ/83lOyu07dv/+yfdLBNJAmOgCtuIynHPcPsLAuhwwMEbguMe8echS7mNMKjGmNOka+qIz9j+84bh7xhQXTONjlDBtn8CjX2D5CU97Tq9/Y1w+QXOhfSGbdTzj7vI16+4Z0wLLKqgmh3vExXPmzXN095F5/xfb+VOPlQck/R+iIYJw9GA1pdIwrea4mjEEboEyJgIDSWoghy0lCmtCzVYHkwnHFW4XWBLsQG6gYYwNYVBdOS3CMquT7itI2JAJiZFOuvBBQeqmgKgc1sqsNkBusevxbfOyHUZqGbv1tQVJnWy4clkOHDiwZkVWn8QVk5QImPdsj9edfkFXV6/cnhegokxQITEowW1CUGADJAr1toMv3Z0W62ZdZV4AAAAASUVORK5CYII=" width="18" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: top;" height="19">'; | |
445 | */ | |
446 | - | icondarckr = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACeElEQVQ4jSXTPW+dRRBA4TO7+37ca5trOyEIKkACRBEpIiBRUkJFy2/kB9AiOkSJIECHBIpEBHHij/fu7szOULg67dMc+fSTp+EJAIrDEAgx9g8PcAmtNbgS/KojInhkJCkSiZBE8QSJwBFkSjz58inP33vBkMDMyGPgYdjLjd0fK9e/XOMepBQYThEyEcrl4YKTbx5xdX7LIqf0XslFMBN0QHlwyvjcGY+C9MPMGIMphCI+WHYrfD3DubAsO1wGc5ppmpCcSH1iTIZb4/SDS9SP6Pd3jHCSJXj/iw/Zdh21I8kHZ+sF5/sD57sD+2nHfl2Y08wqhZwzy0cr8i6IBGWdC7+f/Yb0PWbGTe/spsq87ilFWMZCa41XbORc8HaHUVg+O1D/fE0pDxdu4padG6rKOilHr6SemOeVk3LGlGdyWbmuL4kxEQzKg4LsJ8rtyQ2lZNwhpcJITjWnRAUSaYJZFqw0St7hpTKNwHKhvAHF3ZA0kxAiFPFTcKUKhG0YHaIQDMw67k7TCqboGJTd8UAfnTLPiEwkdzSc7M7mFVdIwDBneMdrpQ+j90q5mSj8owzvZAlSSkSBmYnuRgRYdFwDC8XaYPM7ogb826lVKWbO2y/eZLsQSIKMhGMQgfoRU2A0Nm1oq5gP9FiRn5WJlQLO6x9vSe8s5JMTkEF3Q/t9R2807WirdD1CTMjzzPJ3IkiUIKGtsv8uU79q6FuB2hFRRZux9YYOI7qhrsz/GfNPMx6FhFGCQSZz92ojvq2Uj0Eezwxx1CqqikbA0VieTSx/LYgIwL0gcX9VJuPh+K+Qnm1wMSFnheLB/mqGWwecSAJDCBmICP8DGv6MviaItvgAAAAASUVORK5CYII=" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: top;" width="18" height="18">'; |
446 | + | |
447 | ||
448 | // TWEAK ICON : ARCHIVES - BASE 64 | |
449 | - | iconflriv = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB6klEQVQ4jZ2TMWhTYRSFz3uN0UTFGqSWLorE4mCFSC10VcgkOAii4lJwEJ2EOogIgiCCiOggooObm9CpoBEVQelQKbpYFOJSikORYJrm5b17z3FIIm1eC9IDF/7hno/73//8gST06vZ7hQSGJB0mFZL6TqF6p5xhb2/QC7j1lsMCHkgqO5UhBafg5ExivProVH5mQ8CNih0FUHGq0DayYxbMCaeixHju+dldUynA5HQrHwBfXCo6BXcBEgCiERPugpEwYy02jkxdHFgAgEyX1Er8DKViu1EoDfXhfCmHXDbAp58xnnz8gyghzNlvrisArgNA2AWstOxEIzI0ogSgYeJYDrvzIbZlAhw/uBXj+7ag3kw6FZe7vn8TLDeTQWd7zB07Q+SzwZrlDmwPUG/GMBfcWVgP8Ms6S/uxIlSXYhzYkwUAOIU383UsN5M2gFxKA6LklTkvGAlz4dKLRUyM96OQ78PLuRrezdfhThgFSq9TrzB6t5qPjZ+NPOTehnSeDkbBO2dSvxFgpPawtJjKQfHmtyOJsWLUQNfga/MQATjdfDw6vW6QAGDv5Nf9ifG+OU+Synp7ZFL6AOFa8nRsdnV/CtBV7vLsoFPDpEIJVQAL/mws9RcgCeV7c6EkbKZCYFWaNqENr/C/+guj2Z5MzkOhuQAAAABJRU5ErkJggg==" style="float: none; margin: 0; padding: 0; margint-top: 3px; vertical-align: middle;" width="18" height="18">'; |
449 | + | |
450 | iconcont = '<b>?</b>' | |
451 | // TWEAK ICON : darckr - BASE 64 | |
452 | icondarckr = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACeElEQVQ4jSXTPW+dRRBA4TO7+37ca5trOyEIKkACRBEpIiBRUkJFy2/kB9AiOkSJIECHBIpEBHHij/fu7szOULg67dMc+fSTp+EJAIrDEAgx9g8PcAmtNbgS/KojInhkJCkSiZBE8QSJwBFkSjz58inP33vBkMDMyGPgYdjLjd0fK9e/XOMepBQYThEyEcrl4YKTbx5xdX7LIqf0XslFMBN0QHlwyvjcGY+C9MPMGIMphCI+WHYrfD3DubAsO1wGc5ppmpCcSH1iTIZb4/SDS9SP6Pd3jHCSJXj/iw/Zdh21I8kHZ+sF5/sD57sD+2nHfl2Y08wqhZwzy0cr8i6IBGWdC7+f/Yb0PWbGTe/spsq87ilFWMZCa41XbORc8HaHUVg+O1D/fE0pDxdu4padG6rKOilHr6SemOeVk3LGlGdyWbmuL4kxEQzKg4LsJ8rtyQ2lZNwhpcJITjWnRAUSaYJZFqw0St7hpTKNwHKhvAHF3ZA0kxAiFPFTcKUKhG0YHaIQDMw67k7TCqboGJTd8UAfnTLPiEwkdzSc7M7mFVdIwDBneMdrpQ+j90q5mSj8owzvZAlSSkSBmYnuRgRYdFwDC8XaYPM7ogb826lVKWbO2y/eZLsQSIKMhGMQgfoRU2A0Nm1oq5gP9FiRn5WJlQLO6x9vSe8s5JMTkEF3Q/t9R2807WirdD1CTMjzzPJ3IkiUIKGtsv8uU79q6FuB2hFRRZux9YYOI7qhrsz/GfNPMx6FhFGCQSZz92ojvq2Uj0Eezwxx1CqqikbA0VieTSx/LYgIwL0gcX9VJuPh+K+Qnm1wMSFnheLB/mqGWwecSAJDCBmICP8DGv6MviaItvgAAAAASUVORK5CYII=" style="float: none; min-width: 18px !important; margin: 0; padding: 0; border:0px !important; vertical-align: top;" width="18" height="18">'; | |
453 | ||
454 | // TWEAK ICON : FLICKRIVER - flriv - TEST IMG | |
455 | iconflriv = '<img src="https://external-content.duckduckgo.com/ip3/flickriver.com.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
456 | // TWEAK ICON : flriv - BASE 64 | |
457 | //iconflriv = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB6klEQVQ4jZ2TMWhTYRSFz3uN0UTFGqSWLorE4mCFSC10VcgkOAii4lJwEJ2EOogIgiCCiOggooObm9CpoBEVQelQKbpYFOJSikORYJrm5b17z3FIIm1eC9IDF/7hno/73//8gST06vZ7hQSGJB0mFZL6TqF6p5xhb2/QC7j1lsMCHkgqO5UhBafg5ExivProVH5mQ8CNih0FUHGq0DayYxbMCaeixHju+dldUynA5HQrHwBfXCo6BXcBEgCiERPugpEwYy02jkxdHFgAgEyX1Er8DKViu1EoDfXhfCmHXDbAp58xnnz8gyghzNlvrisArgNA2AWstOxEIzI0ogSgYeJYDrvzIbZlAhw/uBXj+7ag3kw6FZe7vn8TLDeTQWd7zB07Q+SzwZrlDmwPUG/GMBfcWVgP8Ms6S/uxIlSXYhzYkwUAOIU383UsN5M2gFxKA6LklTkvGAlz4dKLRUyM96OQ78PLuRrezdfhThgFSq9TrzB6t5qPjZ+NPOTehnSeDkbBO2dSvxFgpPawtJjKQfHmtyOJsWLUQNfga/MQATjdfDw6vW6QAGDv5Nf9ifG+OU+Synp7ZFL6AOFa8nRsdnV/CtBV7vLsoFPDpEIJVQAL/mws9RcgCeV7c6EkbKZCYFWaNqENr/C/+guj2Z5MzkOhuQAAAABJRU5ErkJggg==" style="float: none; margin: 0; padding: 0; margint-top: 3px; vertical-align: middle;" width="18" height="18">'; | |
458 | ||
459 | // TWEAK ICON : PhotoMedvekoma - BASE 64 | |
460 | iconPhotoMedvekoma = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACdklEQVQ4jT2Ty25jVRBFV9V53Httt5N2oNNiAkKIBCSU//8UEEJpQIqgQzu24/s4jzoMDD3YqlFJe6+qLd9/d9dEBHFgNCqVECOmxs3NDeM4klJifp3xGmil0YWeZVrw3uNVFREh1cQwDNz/dEff94RVx+l0QkTw6jmdThw+Hnl6emJJE8N6TU4Jj4dqlbdfvOXh4QECdF3H4XxgtRmopZFTYrVesxlWdEPk98c/OM9HVDy+tELXd3zz7de4oIRVh5mx3W5JKQEZxKM4Ssq8++odoo3H3z4ADe+Ccv/jHTgh1YxWZbPZkJthgDiHwoXDnHHiudpdc7Xfs9/v0dYaOWcAzAwzo5SCE+F6u2W72RBjxImy2+0YhoEYI+/f36Iq+NWbDXNOxKEjpYTR6LoBcQ0zI8aIqoI1SinUmnFOeHN9RaWhcIE2jhMxdgzDQEqJtBSsQq0V1UssAFX9rPV6jYcGNNQrS15wndLHnlJnUjacOcwM5TJFHPM84UWpKePNGiB47/Dek1JCRAjBcT6fcc7RWkOaknOmlguncVloDXSaJqZpuuQE+r4nxsiyZELoyLliBvM8cz6fmaaJWivH45GUEt4qdHFAmuDEYaWxlIQ6ZRxH+O+Eac6kOeGcZxkn9p8O1NJQy4Vff/6FaVyIoafVhjShpIqVxjwunA6vzONMKZW6VJ4/fuLw8kLwHh99xzIt/Pn4gVXsGNY9SymIvziotWJmUBvj6ZWcK68vB6jgg0fufrhvZgaAiLD7csft7S3GZfF/PsuUeD0cmedEzQVVpbWGxwRpeqmzGc9//c3++R/iEAkhfGYwn2dCCJRUL19bGqrKvw5HfeV77HvrAAAAAElFTkSuQmCC" style="float: none; margin: 0; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="11" height="11">'; | |
461 | ||
462 | // TWEAK ICON : BigHugeLabs - BASE 64 | |
463 | iconBigHugeLabs = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADEklEQVQ4jSXQS2tcVQDA8f8595x779w7M500aZpMYiW2EVKtbdVuRFe6E+lKRaigu279BMUvoHsRC2IXPqBoloKC4EItlgRN29TQ2NC8OpnOzJ3HfZyHC38f4Sd+3f7Mn5u7TCOaZZDvsfboa/qjTWLVQCCYmB5F1cO6CucNFphrXeKF9rvMpGcQw6Lj1/du0m6eY3N/FYlFBQkjMyTwlsoOGRQdtNQECKyvsK5AyBor7bcR3nu/21/n1sPPqesmWqY47zic/EsiNQLol12k0VSlAWEJQ48XJcZXqNxk3D34gUQcwxYhpS3JywwlNEQBRpRoU6fIJQut8yil2On+gdR9CpEj7+yvUoz7FLnA+5hQHSfWJ6hMwGAwhkpTFJ7AafYOtlhefIWXT1/BmohI1pA7nd+wNqQZL3Lm5GtM1U8g5JiZxinSeJ7RsAIvuHc74+OPvuXHX24wP7VCpJrUghQlrUIHDRanL2AY8M3N66ze2GDlwjQfXH0LIRXeODY27nLUeYJ3gs7wAc5XSKeQeEVNt2jV22zt3CKaXOTS+Tf4/qu/WL+9SaA0aa3B5fcv8umXH/Ls2WXWtr+jFiu6jwtUIDQCAQhClXD9i0843Mtw3mOtQwhBo94gSWLycsLhYI0oEiAVUaSRUklyMyAbH3B26XXeu/oS86dS3nzneZ578WkkAUoFxHFEs5GSJjGBkjjn6XVzxE8b13yRQxhM8czsqwhp2H3yJ3k1opvtE4eagXjEfLqE9xbrDNaVjMcT7m/sohCOWhxz1Nvm960t6vFJrCvIqx61sEaSRIQsgPd47/HeYa1j685j2u0FpHUFInDU6xFh6MjNLs4POFZPSFINwqGEwnmL8xZrDff/3qfVOs5YPIXKykNqtmR/tEskNGnYJFISIR3Om/+DPThn6R5lPHzQYXZ2FhkvI+Y0qha1yUb/IJwBQkaTIT6UZL2MJI3JJxXjYUnWn1BvhSydXqQ0SyTzIe3GDOIw2/Q/37uGcBZsiPARQkiqwqG0whiH1gFSCrxR5OUyaXuaU80mDd3gPy3GdpOqQdLZAAAAAElFTkSuQmCC" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: top;" width="18" height="18">'; | |
464 | ||
465 | // TWEAK ICON : BigHugeLabsFAvs - BASE 64 | |
466 | iconBigHugeLabsFAvs = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADDElEQVQ4jV3QS2hcZQDF8f9938k88prSaV5NG4ySQrSCK5UiglvFnStB3AmCO8GFLouL7t0JuhS3XdhKbSJElFgbU9JHTGqamcx07syd+5x773e/z0UQqWd7OL/F0aLMU1V7BikF7eAOh94Gpu6Qy4xXlj7AMep4vo9hSBzLpuLW0HUdITOEzNC64Z5K8iFt/xeirIMsx4zGHXQUllnnpYUPSbPziKkmssihyCEYcXG+gSRDn6mc58jbJIl90iRDlAWaqFPX1ilSjc2/rlKWj9B0HataQ1fwwsIcdXeWSXcO/WHvJmmcMeU+jyEaZLFF0Jfcun6Xtfl3cbQKD06uI0uPcbBNDYlt20gpUUqhP/G2mZu+zM6dXb74+HsG/RhDN3CrBt1glyI1GQvBOE1QxgQVDfI8J4oi0jTFzMsAKUuEAD/oYlkmi4tnmV/MyFWHstAwOjrTmweMP3oNqwzxPA/P86jVamg/3PtMlZlFzVkgzroUZYjhFti6TRiF9NoZKzdbvLw1x9833qcZ+7SPj9nf36fZbGLW3BZe8YiTqE3VruFOOIDNYBDg90sq85dYvT2ivtNFPOhyoA1oHxywt7dHq9XCXJ69wuP+BgiXIFNoKiGNcyyzxuziOhfzSVo7QwypkX91i99etxg8vM/h4SGBP0KTUqoD7yf+OPqGMi+Y2nBZvzqNk1pouoFZwkSqA5DpktgsUbKkRLF5po+mlFIAYxHS9rfpDY9wn6xw4fO7NDY6aGj8Px0z5triPbbO+f8BAEEUcZILphqT+N5t7C//ZPla/5nx79NDPln9lZHIqLou5r+FH4Z0i5Ja1UQpQZwdk8cdwHoGaAgH40yTep5R1fVTIEoSjgvJhBMRRI+xq5fojXtcviFQmBxdyehcSHjx2wbLYYVX6y2C1RmKID8FknQMzgS5VhBKHacsOOu9SbX3HT9/2mf/jSEDb8TWvM07X6/wdvEcnbfWeDpMTz9QSjEKA0bJCfG4TVoMkD+eEJ+LSJZG5OIpSSSIQw1T6KztLmG8t0J3eJ9/AFvurWXl/wIIAAAAAElFTkSuQmCC" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: top;" width="18" height="18">'; | |
467 | ||
468 | // TWEAK ICON : GaGaLabsINT - BASE 64 | |
469 | iconGaGaLabsINT = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADLklEQVQ4jU2PSWwbVQCGv3nvjT22s9pZSbDjhKRLiFI2FSmQUlGhIJAQFzgA4oDgwgH1wIkLEkLigABx4AJCnHogAnURhQNwqEBlESoibWjaOgvOZjvuON5mPOOZx6Ei4rv/n77fmHvzjMaQ1Fd/Z7R+jR7pYQB+EGBKhdYhodZ4vo/WYCpFLhyEux/A6kuj3N0cqneEjp3fkKrFxn4Vv91Gh5qYFcVxW2AYBEEbIQQDqSQd4RZO5wKNzWVUpC+NaxdIqpDS7QqnX3uJoF5ldavA6uY2UghGB/sxPMVz353GzMX5aPodLhVuEb/rMEprkFaCetPlmYXHefqR4ziVMgAYgIZb+W1eff1T3qrNYGBwrHY/l2MOfrOCkNEEZlc/dA1yaCJLqVzGD8KDMUA7CNgI8nxofMDN6SUuxr4h1BC6VVTgOQjTIkxNcuOfTd775HO2i3s89tAxXnjyBIcyI1z49ldOqEc5z3mscQd3K4GM92ImelCBW8Vr2Di1Oq4jeePFZ/l5KUetkGdpNc/qTpHyYg/n9OKdnAtQO/IlX2HjlvPI4fueeDsrd5mJ7ZHNjnHy1AKJ1AgnZyeQUrJbKHH2yiW29Q6mNsmQQR/f4K+uFdqpKZSVHGG/0mRhMs34yCB2/iZDukEY+HSZgudPzXH0njE+PnMO47LBPPMMJ7sp1308bw0B0OjM8suazfLKCsOWweRQCosQAdRrVY5kR5lKD/MfPywX0cOzWIMTCKe4ht/c57o5zR/lCL6MABCJxXE1NEWEMAj5P05nBr9ZwS3kELGBLCoSwyPCsnkvF//eQ0hJteEQi0Rpt1rslG201gcCQ0giiSTR/iyitbeOXysiIjFUNMbZFYfN/QY9HXG8Zo3beyXGh/op2dUDQei7hG0PrUOMB195X8tECoTAkApDKKxrixxONCmUbeRWgs/CL7ixvkXaH2OAAYrxOruddXJ9Nkp1JGk3K1C4wlPZDSyjTbm3Sa7YyfW1TeR6N56OMsEkADY2ZhPSbpyaaqBapTW0IXj34T/JuC2EMtgXmh8jA0xn5vj6+5+Y96c42qdR4s6FeLfkqjGDmn2ZfwE1k2aOA5eZ9AAAAABJRU5ErkJggg==" style="float: none; margin: 0; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="14" height="11">'; | |
470 | ||
471 | // TWEAK ICON : FickRHive - BASE 64 | |
472 | //iconFickRHive = '<img src="http://flickrhivemind.net/favicon.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
473 | iconFickRHive = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADUklEQVQ4jQXBzWscZQDA4d/MvLOzM7Ob/TDZzYZtTbRJa7WV1CAaTME2llqikUawiFqJFykIoVL/AcGeFQ+exPqBXqyQ4kEQPWghiNp81CRVkwaTbbZpNt3NzmY+dmZen0fJZPMyV+yiq7uI1ZHmxvXf6Os/wPPnJvjhu2scHTzG1S++5OChwxw6Mkimu5NEUuGrjz4h1jVU9AStlkupsxtDGBhGkr8Xl9HRWJz9i9XlW4Shz6lXXmbyvSl6egp8+9nnKKrKyZOjiKQhcBoNIg0eHxxkaeEmU5cu8ubkJKtLy7x1/jzzN+d4ZuxFZn6/wceXL2OaSZ584QzHnnoaxl9/TRZ7ytJOZaSdy0srnZafXrki/TiWbRlJGUnZjqU8MTYurWxRWqmcHH1pQs7tNuWH099L5Z33P5CWLrg2Pc3Q0BM429v8+uNPVKsVQCKlytsXp7j69TecffUcpLJcePcSUheEKIhsVw/FzjxvXNhHeX8Z0zA4OjyMCyRQiVU4fvoM4xNnGRkZYanWROoW7baHqglEAvCjkI1/bhN7AW7gYxs2f679RymbRTeTFPoPkk/b3PMC9vZcRNImjGN0LUaEakAkfbbvbSJU8OOQFaeJq8YU8p2kc3mcpo+3r0y1dh/X9UhZHcRBmyiOEZEf4Tsehm5g2CYaMVvVO9yanaXWVcBOZdBtm9KD3dhmB5sbFdx8F6GUBIGGGkZt7u/U8H2fUJFoqoapm/Q9dIBTz57AazWp363SbjmUS0V2Gw1c36PebLDjNBB7nksUtNmp1Rg6PszgY0dIBCHdfb305DMM9D/M3Pw8RcuimNCp79RotppE7QihqAjPcTASCZKWiQRK+8uYms7MwgIdlsXgo48w9twoSHCCgCgIaHt7xFIBFETQcghbGqqM+eP6DOvr6+RyD9Db24uu66xVNlmrbHB4YIBWfRcrmaS6UUFRFKSqILa2tkgnLQyhcWd1lTDwWNlbZPbnX8iWCtj5PLlMltAN2LxbxWk61Gs7YOiksxmEpqrsOQ5xHGMkEyhxRDZjU9+pE0chStjGSAiWF+ZxGi0UoSIVSGGQMUxEJCVtzwMJkQq3/13BMk3QBdq2iu+6VCsbFErdSEVFCcBKd6AkBMI2+R8HE3uqfSN/PAAAAABJRU5ErkJggg==" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: top;" width="15" height="18">'; | |
474 | ||
475 | // TWEAK ICON : FluidR BASE 64 | |
476 | //iconFluidR = '<img src="http://www.fluidr.com/favicon.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
477 | ||
478 | iconFluidR = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACFElEQVQ4jcWTu04rQRBEz+zMesYILPGwQF4RkDhZIT4AZEGERIYI+J37J+SkiICEABIyRIggMA9ZliwCI+9j2JlZknsXiAluZx10VXV1l7i5uan5RUW/GQZQ3xvvPff394zHY/r9PkmSAPD29sZoNGJxcZFer0cURQghfgKcn59zenrKdDrFOUdd12xtbdHv9xmNRnjv8d6jtWYwGLC9vf0FcHJywsXFBQDGGLz3LC0tkSQJ7+/vaK0JIZDnOXmec3Z2xng85ujoCHV3d8fl5SVaa+I4BsA5x+bmJkophBBEUYS1llarRQiBEALX19ekaYqcn5//M5lMMMbQbrcxxrCyskKv1yOEgDEGpRQhhAa8qiqccxRFgXp5eWFubg6tNUop4jhmbW0NIQRaa6SUOOcwxlCWJXVd45zDOcdwOEQppZBSEscx7XabhYUFOp0OdV03TkspsdY2BocQGqBoY2Pj6yR/pWZZxmw2o6oqrLVYa5lMJmRZRpZlFEWBtZb19XWinZ2dhuXfbmVZAlBVFd57Pj4+eH19ZTabURQFZVlSliV7e3tEaZqyu7tLCKGR55wjz/OG6fb2ljzPf7Dv7++TpilKCMHh4SHdbperqyustdR1jZSS5eVlHh4eeH5+ptVqIaWk0+lwfHzMwcEBAOJ7mLz3PD09MZ1OSZKEbrcLwHA45PHxkdXVVdI0/fHK4r+n8RMZsSWomCz/CQAAAABJRU5ErkJggg==" style="float: none; margin: 0; padding: 0px; vertical-align: top;" width="15" height="18">'; | |
479 | ||
480 | // TWEAK ICON : LfVR (forum:http://forum.phun.org/forum.php) ??? | |
481 | iconLfVR = '<img src="http://www.fluidr.com/favicon.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
482 | ||
483 | // TWEAK FALSH ICON :FFFFlckkR ???? | |
484 | //iconFFFFlckkR = '<img src="http://www.fluidr.com/favicon.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
485 | ||
486 | // TWEAK ICON :FFFFlckkR | |
487 | //iconFFFFlckkR = '<img src="http://fffflckr.com/favicon.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
488 | iconFFFFlckkR = '<img src="data:image/gif;base64,R0lGODdhEAAQAOcAAAEBAb6cF7i4uExCHJl9C0NDQ/PFEkM8IiUlJZ2dnem+E////3xpHZSUlCopJNivEB8ZAnt7e+np6XR0dHBbCGxsbNKqD6+QGRQQADUxI2NjY4xyCllOIMqkDaaJGSYiFNvb21tbW/bIE2dYHzIyMlRKIbW1tV5RH+G3EYx1HAoIAph+GjUtDdPT08GeF+3AEkxDITEuJIZwHFtPHxMTE3BfHUtLS5R7G8zMzBwcHM+qFqKiojo1Izs7O6qLFCsrK4FqEXpnHCgiDLybGGxcHsahDqKGGuTk5NKsFVBCCmJPCT45IygnJGJVHxwbFPPz86yOGpV6C8unFj80DNyyDrGRFpuBGhoUAg0NDaGDC15RIMWhFsfHx1dXV6qqqiYkHOS6E9yzEwgGAHNiHoJtHdewFrOTGJF4F3ZhDRUTDiwnEjszEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsAAAAAAGAAAAAY94yrhfdYdwEAGAAAANQR5AAAdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIgAkQNylAAAAPd4AAUAGACMAHMCTxIoABh21HbQKhsAIJRwAAEDcgAAAHKUgPecAyMAGHeL4IvfpQAAdwAAAAAAAAAAAPggAJMAGHbRxhj4IMbtALd20QAAAIj//xjAA8AApgCmGAAAGAAAAPgAAAAY9wAAQAAAAOQAAAAY9wAAAAAAAAAAAAAAAAAAAAAMAAIAAAAAAAABAfhcAAAAGAAAAJEAAJf4AAAFLCwAAAAAEAAQAAAIXQARCBxIsKCIgggJHkyYUAQABAsZChSRwwBEBAsSKBwowsDBgwta3BDxESIAETJqXJzIcSFJliybQHTpcuAYEUFc8LgoQoHPn0CDRpTIkahBoxuRwlRKsqnTp00DAgA7" style="float: none; margin: 0; padding: 0px; border:1px solid gold !important; vertical-align: middle;" width="19" height="15">'; | |
489 | ||
490 | // TWEAK ICON :FavExplo - BASE 64 (Globe Blue + Arrow) | |
491 | //iconFavExplo = '<img src="http://con-tech-gr.blogspot.com/favicon.ico" style="float: none; margin-right : 3px; padding-bottom:3px !important; padding: 0; border:0px !important; vertical-align: middle;" width="12" height="11">'; | |
492 | iconFavExplo = '<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADS0lEQVQ4jQXBbWhVZQDA8f/znHPuOffce7dhe5G7jVqLMIlNzb1QQiQp9sH8YGBREcQKsj4YFNoHqxFF4gj7EpkU6ZegF4JsKIqw0mlrVEKO1ch5t3Kvd7u789x7zznPOefp9xNXR8e1aRpEiUcoTXy7jhv/FTl+5isWyx6gyOeyHHruWTY3t9BoWohYUdEehm0gfh8b1UpalKXLxNwy7586xUo1JOXWIWOBjMCOQ+LKAi1Zg0MDL9B1XyeGApEIzLKREEjJvpcOYja0gZXBTTchXINYJAQywgoFY8MXaAJ0HCBkxF83p/FViFm0NzAzO4dtORgSqpZE1KchY9AkLQYPPMPeR+/n5cGPuXx9nJJXIlldYerHs5QLBaQZNjA09Bm1jEPJ8okyPm6wwkd793Nt6B3u6Wxn/5FjnJ2cpIhLXMtgRQ3sfvpFlp0s5m+zN1nyKmhDkrez2Gs+V859iRfC16PjHPvmO2IjjROmkV4VYaWp2jVurde4MruEyO85oOfm5nFzWT54e5A9W7fz3okTnJ//B9/Oko4c/NUKKqyg/Dskfgl8H1RMPt+OuVpcwI4DHuvs4okd23nr0y+4MF0gSeqJfYuiqGLmIFrzwKgh0OhYYUgoLhYQ7pZHtFSSmT9/5vEnX6WQKEqmRrg2GRUiJ6f4948RrBR4QL6nj0gJDO3ikEba7W14qYTnDx9lammCUqkA3jJ6vUhUq9DS0cGmnp3cCRIMwAkDbEMSC016411w8qcRPaW1prtX092veahPG9v6dfPDu/WRT07rea31ba113eZ+PaO1drbs0LKrT9PVr9/94aI2e3ONNFYTGvwAkXJJ6RwPdLQz/O3n+KHPrl37mF4oUks53L11J0JngJDWZpsHO5sxVShQ6z6LN67jRxCIEOwUrxz9kHOXRlirraHiGGllINIIXcYx4M2Dh7EDB7Nmx0zcnmLs+1/xwoiJ2TkuXr1MJaqBtMDKgYBEhAhDkYotrFDR3dqKrQJMrUqAxbaeXv6enefM8Hkq1RDMDIQRmDVQCtNIs3FDC2+8NsCmtlYcqTBVhBi79osWQqCJUbFBYLlM3Frg+MnTLJY9okTR2lTP6wNP0XVvO06iMIRJJU4wLIf/AROBjQatzZQsAAAAAElFTkSuQmCC" style="float: none; margin: 0; padding: 0px; border:1px solid gold !important; vertical-align: middle;" width="15" height="15">'; | |
493 | ||
494 | // TWEAK ICON : PortFotoLio | |
495 | iconPortFotoLio = '<img src="data:image/gif;base64,R0lGODdhEAAQAOcAAB8fH91sDrS0tEsyHmxsbL5dEplOFf7+/lRRTz4tH+zs7E1KR5ycnP9uAI1WKjRBSoRJGOLi4jAwMGhAG4uLi/V0DHlVOv94Btzc3NF0LZ9dK9TU1IGBgfR7E1NBM2NjY8rKyi85QOV1HSIoLZh1Wv9+EikkIVY4HHNzc/x0C1xcXFY/LaysrCYwOMXFxYVGFn9cQMNgEUNDQ1hGOPWMPextDf+BDfX19T8uICAlMF5QRv+FGHprX5KCd59kN/aCIOx4ITcmH6xWFGM6GpZNFZSUlDs7OpZeM8JcDaKiontDGFg1Gv97DEItHtZgCHx8fEI1LoJRLCIiIkNJTeJwD6FRFcNfEeh0HJxeMJBZLodjSWRXTIBFGKRkNDw1L/+DFjAnITc5PS0tLfWCKf+CIlRUVP50BUpKSm49GeJqDuxzDT1ES104HCw2PKFfLD03MZ9RFYFeQ51lOpBfOkM2MDM8RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsAAAAAAGAAAAAY94yrhfdYdwEAGAAAANQR5AAAdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAkQCW7AAAAPd4AAcAGACMAABcXxIoABh21HbQKhsAIN9YAAEAlgAAAJbsWPecACMAGHeL4IvfpQAAdwAAAAAAAAAAAPggAJMAGHbRxhj4IMbtAAB20QAAAKL//wocABwDggOCCgAAGAAAAPgAAAAY9wAAQAAAAOQAAAAY9wAAAAAAAAAAAAAAAAAAAAAMAAIAAAAAAAABAfhcAAAAGAAAAJEAANFIAAAAmCwAAAAAEAAQAAAIkAClCBQ4gUmKFEMGKhQ4IIUZJhDNpKixUIqVFD4W0knBRGGTFEoqCjRjY2CKKyJNChySQqAMDBQERoggcEwFKRAFHjhzQMUBFhtuSNHRkqMUFAcEikk6MEHLnFJ2KhDwk0LSLS1ZusSgQmYRgSJKSjmZUmBLgR9DiiSp8KKIhSeMLmzIMWIKNWXZGERYtu/AgAA7" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: top;" width="18" height="18">'; | |
496 | ||
497 | function $x( xpath, root ) { | |
498 | var doc = root ? root.evaluate?root:root.ownerDocument : document; | |
499 | var got = doc.evaluate( xpath, root||doc, null, 0, null ), next; | |
500 | var result = []; | |
501 | while( next = got.iterateNext() ) | |
502 | result.push( next ); | |
503 | return result; | |
504 | } | |
505 | ||
506 | // ??? | |
507 | fpmlinks_newphotopage = function () { | |
508 | underphotonode = document.getElementById('photo-activity'); | |
509 | if (underphotonode) { | |
510 | cowners=underphotonode.getElementsByClassName('comment-block'); | |
511 | ccontents=underphotonode.getElementsByClassName('comment-owner'); | |
512 | for(x=0;x<cowners.length;x++) { | |
513 | buddyid=cowners[x].getAttribute('data-comment-nsid'); | |
514 | //ccontents[x].innerHTML=ccontents[x].innerHTML.replace('says:', makeLinks(buddyid) + 'says:'); | |
515 | blnks=document.createElement('span'); | |
516 | blnks.innerHTML=makeLinks(buddyid); | |
517 | blnks.setAttribute('style','font-weight:normal !important'); | |
518 | if(ccontents[x]) | |
519 | ccontents[x].parentNode.insertBefore(blnks,ccontents[x].nextSibling); | |
520 | } | |
521 | } | |
522 | } | |
523 | /* | |
524 | //attempt at optimising the function. doesnt seem to make that much difference. code is a lot clearer though | |
525 | ||
526 | grabuserid = function(text) { | |
527 | var buddyid; | |
528 | var icontest=text.match(/\/buddyicons\/([0-9]+@N[0-9]+)\.jpg/); | |
529 | if(icontest) | |
530 | buddyid=icontest[1]; | |
531 | else { | |
532 | var noicontest=text.match(/\/images\/buddyicon\.jpg\?([0-9]+@N[0-9]+)"/) | |
533 | if(noicontest) | |
534 | buddyid=noicontest[1]; | |
535 | } | |
536 | return (buddyid == null) ? 'undefined' : buddyid; | |
537 | } | |
538 | */ | |
539 | ||
540 | grabuserid = function(text) { | |
541 | //win.console.log(text + '\n'); | |
542 | buddyid = 'undefined'; | |
543 | if (text.indexOf('buddyicon.jpg') != -1) { // no proper icon | |
544 | buddiarr = text.split('buddyicon.jpg#'); | |
545 | if (buddiarr[1] != null) { | |
546 | buddyid = (buddiarr[1].split('"'))[0]; | |
547 | } | |
548 | } else { | |
549 | buddiarr = text.split('/buddyicons/'); | |
550 | if (buddiarr[1] != null) { | |
551 | buddyid = buddiarr[1].split('.jpg')[0]; | |
552 | } | |
553 | } | |
554 | if ((buddyid == 'undefined') || (buddyid == null)) { | |
555 | buddyid = (text.split('/'))[2]; | |
556 | - | iconlink = '[ <b>'; |
556 | + | |
557 | return (buddyid == null) ? 'undefined' : buddyid; | |
558 | } | |
559 | ||
560 | makeLinks = function(userid) { | |
561 | if (userid=='undefined' || userid=='l.yimg.com') | |
562 | return ' '; //[ User is no longer on Flickr ] | |
563 | ||
564 | - | //PROFILE : |
564 | + | // REMOVE BRACKET - 2018 |
565 | - | iconlink += '<a title="User Profile" href="https://www.flickr.com/people/' + userid + '/">' + iconprof + '</a> '; |
565 | + | iconlink = '. <b>'; |
566 | ||
567 | - | //RELATIONSHIP : |
567 | + | |
568 | - | // iconlink += ' <a class="fpmLink" title="View / Change Relationship" onclick=\"document.getElementById(\'emaildiv\').style.display=\'none\';icon_windowOpenFromLink(\'' + userid + '\'); return false;\" href=\"http://www.flickr.com/people/' + userid + '/relationship/\">RE</a> '; |
568 | + | |
569 | // iconlink += '<a title="Follow Steeev on Twitter" href="http://twitter.com/steeev/"><img alt="T" style="float: none; margin: 0; padding: 0; border:0px !important; vertical-align: middle;" width="15" height="16" src="http://farm4.static.flickr.com/3629/3403660323_11839590bb_o.gif"></a> '; | |
570 | ||
571 | - | // FLICKR APPS - 2017 revision : |
571 | + | |
572 | iconlink += '<a onclick="flickrmailpopup(\'' + userid + '\');return false;" title="Send a Message" href="http://www.flickr.com/messages_write.gne?to=' + userid + '">' + iconmail + '</a> '; | |
573 | - | // Flickr River (User Most Interesting) - [GOOD 2017 - ]: |
573 | + | |
574 | - | iconlink += '<a class="fpmLink" title="User Most Interesting (Flickr River)" href="http://www.flickriver.com/photos/' + userid + '/popular-interesting/">' + iconflriv+ '</a> '; |
574 | + | // USER ABOUT/PROFILE (ICON) - 2021 - PB ICON (chg by text) |
575 | // iconlink += '<a title="User Profile" href="https://www.flickr.com/people/' + userid + '/">' + iconprof + '</a> '; | |
576 | - | // DarckR (User Most Interesting) - [GOOD 2017 - ]: |
576 | + | iconlink += '<a title="User Profile" href="https://www.flickr.com/people/' + userid + ' "> ♙ </a> '; |
577 | - | iconlink += '<a class="fpmLink" title="User Most Interesting (Darckr)" href="http://darckr.com/username?sort=interestingness-desc&format=Small&username=' + userid + '">' + icondarckr + '</a> '; |
577 | + | // (double)USER CONTACT : |
578 | - | |
578 | + | // iconlink += '<a title="User Profile" href="https://www.flickr.com/people/' + userid + '/contacts">Uct</a> '; |
579 | ||
580 | - | iconlink += '<a class="fpmLink" title="User Info + Stats (DNA-BigHugeLabs)" href="http://bighugelabs.com/flickr/dna.php?username=' + userid + '">' + iconBigHugeLabs + '</a> '; |
580 | + | // DISABLE - RELATIONSHIP : |
581 | // iconlink += ' <a class="fpmLink" title="View / Change Relationship" onclick=\"document.getElementById(\'emaildiv\').style.display=\'none\';icon_windowOpenFromLink(\'' + userid + '\'); return false;\" href=\"http://www.flickr.com/people/' + userid + '/relationship/\">RE</a> '; | |
582 | ||
583 | - | iconlink += '<a class="fpmLink" title="User Favs By Me (Favorit-Finder)" href="http://bighugelabs.com/favorites.php?user1=' + userid + '">' + iconBigHugeLabsFAvs + '</a> '; |
583 | + | // DISABLE - 2018 - UiF - PB USERNAME need to find another way |
584 | // https://www.flickr.com/search/?user_id=15064538%40N00&sort=interestingness-desc&faves=1&view_all=1&text=peterschlyter | |
585 | //https://www.flickr.com/search/?user_id=15064538%40N00&sort=interestingness-desc&faves=1&view_all=1&text=60308264@N05 | |
586 | // realname | |
587 | // username | |
588 | ||
589 | //iconlink += '<a title="User Profile" href=" https://www.flickr.com/search/?user_id=15064538%40N00&sort=interestingness-desc&faves=1&view_all=1&text=' + userid + '">UiF</a> '; | |
590 | - | // PicSRR (User Most Interesting) LETTRE [GOOD 2017 - some litte pb for visualize shot - ]: |
590 | + | //iconlink += '<a title="User Profile" href=" https://www.flickr.com/search/?user_id=15064538%40N00&sort=interestingness-desc&faves=1&view_all=1&text=' + realname + '">UiF</a> '; |
591 | - | iconlink += '<a class="fpmLink" title="User Most Interesting (PicSSR)" href="http://picssr.com/photos/' + userid + '/popular-interesting/">PSi/F</a> '; |
591 | + | //iconlink += '<a title="User Profile" href=" https://www.flickr.com/search/?user_id=15064538%40N00&sort=interestingness-desc&faves=1&view_all=1&text=' + username + '">UiF</a> '; |
592 | ||
593 | - | // FlickRHive(500 photos per Pages / Size : 100) - [GOOD 2017 - ]: |
593 | + | |
594 | - | iconlink += '<a class="fpmLink" title="User (FlickrHive)" href="http://flickrhivemind.net/flickr_hvmnd.cgi?search_type=User&textinput=' + userid + '&search_type=Search+User&photo_number=500&photo_type=100&sort=Interestingness&page=1&tag_mode=">' + iconFickRHive + '</a>'; |
594 | + | |
595 | ||
596 | - | // FlickRHiveFAV(500 photos per Pages / Size : 100) - USERNAME ajouter : http://www.flickr.com/photos/ - [GOOD 2017 - ]: |
596 | + | |
597 | - | iconlink += '<a class="fpmLink" title="FAV (FlickrHive)" href="http://flickrhivemind.net/flickr_hvmnd.cgi?search_domain=Favorites&textinput=https://www.flickr.com/photos/' + userid + '+&search_type=Search+Favorites&photo_number=500&photo_type=100&sort=&page=1&tag_mode=&license=">' + iconFickRHive +'♡</a>'; |
597 | + | |
598 | //(LINK contact : http://www.flickr.com/people/carlosvisual/contacts/ - LINK photo : (http://www.flickr.com/photos/carlosvisual/)LETTRE "CT": | |
599 | iconlink += '<a class="fpmLink" title="CONTACT" href="https://www.flickr.com/people/' + userid + '/contacts/ ">[CT]</a> '; | |
600 | ||
601 | - | // FluidR (Fav Random) - [GOOD 2017 - OK]: |
601 | + | // PHOTOSTREAM USER |
602 | - | iconlink += '<a class="fpmLink" title="FluidR (User Fav Random)" href=http://www.fluidr.com/photos/' + userid + '/favorites/random">' + iconFluidR +'♡</a>'; |
602 | + | |
603 | - | // FluidR (User Most Interesting) - [NOT WORKING 2016 - ]: http://www.fluidr.com/photos/sylvain-emmanuel_p |
603 | + | |
604 | //// | |
605 | // 2022.03 - PHOTOSTREAM USER by intersting : | |
606 | // OTHER: https://www.flickr.com/search/?user_id=66422871%40N00&sort=interestingness-desc | |
607 | - | // FlickeFlu (User Favorites) LETTRE - [GOOD 2017 - ]: http://flickeflu.com/photos/favorites/15064538@N00 |
607 | + | iconlink += '<a title="User PhotoStream by intersting" href="https://www.flickr.com/search/?user_id=' + userid + '&sort=interestingness-desc">❤️PhoStR</a> '; |
608 | - | iconlink += '<a class="fpmLink" title="FlickeFlu (User Favorites)" href="http://flickeflu.com/photos/favorites/' + userid + '">FlU</a> '; |
608 | + | // iconlink += '<a title="User Favourites Search by intersting" href="https://www.flickr.com/search/?user_id=' + userid + '&faves=1&view_all=1&text=&sort=interestingness-desc">' + iconfave + '</a> '; |
609 | ||
610 | - | // FFFFlckkR (Fav Random) - [TEST 2017 - OK]: |
610 | + | /// |
611 | - | iconlink += '<a class="fpmLink" title="User (FFFFlckkR Fav Random)" href=http://fffflckr.com/#/' + userid + '>' + iconFFFFlckkR + '</a>'; |
611 | + | |
612 | // 2022 - PB ICON 2021.02 - RE ENABLE (ONLY for Others USERS - ARCHIVE USER (Direct Thumbnail) - Flickr (User ARCHIVES) SMALL: | |
613 | - | // PortFolio (User PhotoStream) - [TEST 2017 - OK] |
613 | + | // iconlink += '<a title="User Photo Archive (Small)" href="https://www.flickr.com/photos/' + userid + '/archives/date-taken/detail/?view=sm">ArCH</a> '; |
614 | // WITH ICON | |
615 | iconlink += '<a title="User Photo Archive (Small)" href="https://www.flickr.com/photos/' + userid + '/archives/date-taken/detail/?view=sm">' + iconarch + '</a> '; | |
616 | - | iconlink += '<a class="fpmLink" title="User Favs (PortFolio User Favs)" href=http://portfotolio.net/' + userid +'>' + iconPortFotoLio +'</a>'; |
616 | + | |
617 | ||
618 | // 2021.02 PB ICON - Flickr (User FAVORITES) VIEW Justified: (2019.08) | |
619 | iconlink += '<a title="User Favourites Justified" href="https://www.flickr.com/photos/' + userid + '/favorites/page1/?view=ju">❤️Ju</a> '; | |
620 | // iconlink += '<a title="User Favourites Justified" href="https://www.flickr.com/photos/' + userid + '/favorites/page1/?view=ju">' + iconfave + '</a> '; | |
621 | ||
622 | // 2021.02 PB ICON - Flickr (User FAVORITES) search by intersting : | |
623 | - | iconlink += '<a class="fpmLink" title="CONTACT" href="https://www.flickr.com/people/' + userid + '/contacts/ ">[CT]</a> '; |
623 | + | // ME : https://www.flickr.com/search/?user_id=15064538%40N00&faves=1&view_all=1&text=&sort=interestingness-desc |
624 | // OTHER: https://www.flickr.com/search/?user_id=129738991%40N02&faves=1&view_all=1&text=&sort=interestingness-desc | |
625 | iconlink += '<a title="User Favourites Search by intersting" href="https://www.flickr.com/search/?user_id=' + userid + '&faves=1&view_all=1&text=&sort=interestingness-desc">❤️Int</a> '; | |
626 | - | // FLICKR NEW - Flickr (User ARCHIVES) SMALL - NEW 2017: |
626 | + | // iconlink += '<a title="User Favourites Search by intersting" href="https://www.flickr.com/search/?user_id=' + userid + '&faves=1&view_all=1&text=&sort=interestingness-desc">' + iconfave + '</a> '; |
627 | - | // iconlink += '<a title="User Photo Archive (Small)" href="http://www.flickr.com/photos/' + userid + '/archives/date-taken/?view=sm">' + iconarch + '</a> '; |
627 | + | |
628 | - | // TO TEST (because is good at hand selection)- /archives/date-taken/detail/?view=sm |
628 | + | iconlink += 'Pools: '; |
629 | ||
630 | // MY POOLS: | |
631 | - | // Flickr (User FAVORITES) : |
631 | + | |
632 | - | iconlink += '<a title="User Favourites" href="https://www.flickr.com/photos/' + userid + '/favorites/">' + iconfave + '</a> '; |
632 | + | // IN POOL - PF |
633 | - | iconlink += '</b>] '; |
633 | + | //iconlink += '<a title="User Profile" href=" https://www.flickr.com/groups/portrait_face/pool/' + userid + '/?thumb=1">inPF</a> '; |
634 | iconlink += '<a title="InPF" href="https://www.flickr.com/groups/portrait_face/pool/' + userid + '/?thumb=1">inPF</a> '; | |
635 | iconlink += '>>'; | |
636 | // IN POOL - PF (LA) | |
637 | iconlink += '<a title="InPF L" href="https://www.flickr.com/groups/portrait_face/pool/' + userid + ' "> (LA)</a> '; | |
638 | ||
639 | iconlink += '-'; | |
640 | ||
641 | // IN POOL - PFO | |
642 | //iconlink += '<a title="User Profile" href=" https://www.flickr.com/groups/portrait_faces_open_minded_/pool/' + userid + '/?thumb=1">inPFO</a> '; | |
643 | iconlink += '<a title="inPFO" href=" https://www.flickr.com/groups/portrait_faces_open_minded_/pool/' + userid + '/?thumb=1"">inPFO</a> '; | |
644 | iconlink += '>>'; | |
645 | // IN POOL - PFO (LA) | |
646 | iconlink += '<a title="inPFO L" href=" https://www.flickr.com/groups/portrait_faces_open_minded_/pool/' + userid + ' "> (LA)</a> '; | |
647 | ||
648 | iconlink += '-'; | |
649 | ||
650 | // 2018 - IN POOL - PFM | |
651 | //iconlink += '<a title="User Profile" href=" https://www.flickr.com/groups/portrait_faces_open_minded_/pool/' + userid + '/?thumb=1">inPFO</a> '; | |
652 | iconlink += '<a title="inPFM" href="https://www.flickr.com/groups/portrait-faces-master-view/pool/' + userid + '/?thumb=1"?">inPFM</a> '; | |
653 | iconlink += '>>'; | |
654 | // 2018 - IN POOL - PFM (L) | |
655 | iconlink += '<a title="inPFM L" href="https://www.flickr.com/groups/portrait-faces-master-view/pool/' + userid + ' "> (LA)</a> '; | |
656 | ||
657 | iconlink += '-'; | |
658 | ||
659 | ||
660 | iconlink += 'Apps: '; | |
661 | ||
662 | // FLICKR APPS - 2018 revision : | |
663 | ||
664 | // Flickr River (User Most Interesting) - [GOOD 2021 - pb - ]: - 2021 - PB ICON (chg by text) | |
665 | iconlink += '<a class="fpmLink" title="User Most Interesting (Flickr River)" href="https://www.flickriver.com/photos/' + userid + ' ">RiV</a> '; | |
666 | // iconlink += '<a class="fpmLink" title="User Most Interesting (Flickr River)" href="https://www.flickriver.com/photos/' + userid + '/popular-interesting/">' + iconflriv + '</a> '; | |
667 | ||
668 | iconlink += '>'; | |
669 | // DarckR (User Most Interesting) - [GOOD 2021 - pb - ]: - 2021 - PB ICON (chg by text) | |
670 | - | // BEGIN fpm links to photostream and profile pages |
670 | + | iconlink += '<a class="fpmLink" title="User Most Interesting (Darckr)" href="http://darckr.com/username?sort=interestingness-desc&format=Small&username=' + userid + ' ">DaK</a> '; |
671 | // iconlink += '<a class="fpmLink" title="User Most Interesting (Darckr)" href="http://darckr.com/username?sort=interestingness-desc&format=Small&username=' + userid + '">' + icondarckr + '</a> '; | |
672 | ||
673 | // DISABLE - WORK but idon't use It | |
674 | // BigHugeLabs (DNA - USER Resume) - [GOOD 2017 - ]: | |
675 | // iconlink += '<a class="fpmLink" title="User Info + Stats (DNA-BigHugeLabs)" href="http://bighugelabs.com/flickr/dna.php?username=' + userid + '">' + iconBigHugeLabs + '</a> '; | |
676 | ||
677 | // DISABLE - WORK but I have too much Favs and it hang | |
678 | // BigHugeLabs (Favorit-Finder) : La 1ére fois, metre votre nom dans la 2éme case (ensuite ce n'est plus necessaire) - [PB too much FAVS 2015 - ] | |
679 | //iconlink += '<a class="fpmLink" title="User Favs By Me (Favorit-Finder)" href="http://bighugelabs.com/favorites.php?user1=' + userid + '">' + iconBigHugeLabsFAvs + '</a> '; | |
680 | ||
681 | // TEST - BigHugeLabs ( SCOUT User Explore) : | |
682 | //iconlink += '<a class="fpmLink" title="User on Explore Page (Flickr Scout-BigHugeLabs)" href="http://bighugelabs.com/flickr/scout.php?sort=position&year=0&username=' + userid + '">SC</a> '; | |
683 | // TEST - BigHugeLabs (Favorite Surfer: Browse favorite photos on Flickr) | |
684 | //iconlink += '<a class="fpmLink" title="Favorite Surfer: Browse favorite photos on Flickr (BigHugeLabs)" href="http://bighugelabs.com//surf.php?user=' + userid + '">Fs</a> '; | |
685 | ||
686 | //iconlink += '>'; | |
687 | // [BROKEN 2019 - TOTALY] | |
688 | //PicSRR (User Most Interesting) LETTRE [PB 2019 - some litte pb for visualize shot - ]: | |
689 | // iconlink += '<a class="fpmLink" title="User Most Interesting (PicSSR)" href="http://picssr.com/photos/' + userid + '/popular-interesting/">PSi/F</a> '; | |
690 | ||
691 | //iconlink += '>'; | |
692 | ||
693 | // [BROKEN 2019 - TOTALY]// | |
694 | - | datds[0].innerHTML+= ' <nobr>' + makeLinks (usid) + '</nobr>'; |
694 | + | // FlickRHive(500 photos per Pages / Size : 100) - [GOOD 2018 - ]: |
695 | //iconlink += '<a class="fpmLink" title="User (FlickrHive)" href="http://flickrhivemind.net/flickr_hvmnd.cgi?search_type=User&textinput=' + userid + '&search_type=Search+User&photo_number=500&photo_type=100&sort=Interestingness&page=1&tag_mode=">' + iconFickRHive + '</a>'; | |
696 | ||
697 | //iconlink += '>'; | |
698 | // DISABLE - FlickRHiveFAV(500 photos per Pages / Size : 100) - USERNAME ajouter : http://www.flickr.com/photos/ - [PB 2019 - ]: | |
699 | //iconlink += '<a class="fpmLink" title="FAV (FlickrHive)" href="http://flickrhivemind.net/flickr_hvmnd.cgi?search_domain=Favorites&textinput=https://www.flickr.com/photos/' + userid + '+&search_type=Search+Favorites&photo_number=500&photo_type=100&sort=&page=1&tag_mode=&license=">' + iconFickRHive +'♡</a>'; | |
700 | ||
701 | iconlink += '>'; | |
702 | // ICON + GLYPH ICON (FAV)- 2017 | |
703 | // RE ENABLE - FluidR (Fav Random) - [GOOD 2021 - pb - ]: - 2021 - PB ICON (chg by text) | |
704 | iconlink += '<a class="fpmLink" title="FluidR (User Fav Random)" href=http://www.fluidr.com/photos/' + userid + ' ">FluidR❤️</a> '; | |
705 | //iconlink += '<a class="fpmLink" title="FluidR (User Fav Random)" href=http://www.fluidr.com/photos/' + userid + '/favorites/random">' + iconFluidR +'♡</a>'; | |
706 | ||
707 | - | // galleries pages |
707 | + | // DISABLE - FluidR (User Most Interesting) - [NOT WORKING 2019 - ]: http://www.fluidr.com/photos/sylvain-emmanuel_p |
708 | //iconlink += '<a class="fpmLink" title="FluidR (User Most Interesting)" href=http://www.fluidr.com/photos/' + userid + '">'+ iconFluidR +'</a>'; | |
709 | ||
710 | //iconlink += '>'; | |
711 | // [BROKEN 2019 - TOTALY]// | |
712 | // DISABLE - FlickeFlu (User Favorites) LETTRE - [PB 2019 - ]: http://flickeflu.com/photos/favorites/15064538@N00 | |
713 | //iconlink += '<a class="fpmLink" title="FlickeFlu (User Favorites)" href="http://flickeflu.com/photos/favorites/' + userid + '">FlU</a> '; | |
714 | ||
715 | ||
716 | // [BROKEN 2019 - TOTALY]// | |
717 | // 2019 - DISABLE (ONLY PUB) - FFFFlckkR (Fav Random) - [TEST 2017 - OK]: | |
718 | //iconlink += '<a class="fpmLink" title="User (FFFFlckkR Fav Random)" href=http://fffflckr.com/#/' + userid + '>' + iconFFFFlckkR + '</a>'; | |
719 | ||
720 | // iconlink += '> '; | |
721 | // DISABLE - PortFolio (User PhotoStream) - [TEST 2019 - OK but no login] | |
722 | // http://portfotolio.net/bruno-decembre/favorites | |
723 | // exemple : iconlink += '<a class="fpmLink" title="FluidR (User Fav Random)" href=http://www.fluidr.com/photos/' + userid + '/favorites/random">' + iconFluidR +'♡</a>'; | |
724 | //iconlink += '<a class="fpmLink" title="User Favs (PortFolio User Favs)" href=http://portfotolio.net/' + userid +'>' + iconPortFotoLio +'</a>'; | |
725 | ||
726 | ||
727 | ||
728 | ||
729 | ||
730 | // BROKEN 2017 | |
731 | // LurVely (User Most Interesting) LETTRE - [GOOD 2015 - ]: :http://www.lurvely.com/photographer/15064538_N00/ | |
732 | //iconlink += '<a class="fpmLink" title="LurVely (User Most Interesting)" href="http://www.lurvely.com/photographer/' + userid + '">LuR</a> '; | |
733 | ||
734 | // BROKEN 2014 // | |
735 | // Tafoni) Favorites Explorer (User Favs) PB USERNAME - [BROKEN 2014 - TOTALY]: | |
736 | // http://www.tafoni.net/flickr/favorites/?of=molekularshik&all=y | |
737 | //disable iconlink += '<a class="fpmLink" title="Favs Explorer" href="http://www.tafoni.net/flickr/favorites/index.php?of=' + userid + '">' + iconFavExplo + '</a> '; | |
738 | ||
739 | ||
740 | // [BROKEN 2014 - TOTALY]// | |
741 | //(ALL Tafoni) REVERSE Favorites Explorer (User Favs) PB USERNAME - | |
742 | // http://www.tafoni.net/flickr/favorites/index.php?of=decembre&by=eduardoizq.tumblr.com&all=y | |
743 | //http://www.tafoni.net/flickr/favorites/index.php?of=decembre&by=eduardoizq.tumblr.com&all=y | |
744 | //http://www.tafoni.net/flickr/favorites/index.php?of=decembre&by=brookeshaden&all=y | |
745 | //http://www.tafoni.net/flickr/favorites/index.php?of=decembre&by=sol+exposure&all=y | |
746 | //disable iconlink += '<a class="fpmLink" title=" Revers Favs Explorer" href="http://www.tafoni.net/flickr/favorites/index.php?of=decembre&by=' + userid + '&all=y">' + iconFavExplo + '</a> '; | |
747 | // (Tafoni) Favorites Explorer - (NO)Problem buddtid - [BROKEN 2014 - TOTALY]: | |
748 | //disable iconlink += '<a class="fpmLink" title="View Favorites Explorer" href="http://www.tafoni.net/flickr/favorites/index.php?of=decembre&by=' + buddyid + '">Fe</a> '; | |
749 | ||
750 | // Photo.Medvekoma.net (User Favorites) - [BROKEN 2014 - TOTALY]: | |
751 | //disable iconlink += '<a class="fpmLink" title="User Favorites (Photo.Medvekoma.net)" href="http://photo.medvekoma.net/Favorites/' + userid + '">' + iconPhotoMedvekoma + '</a> '; | |
752 | ||
753 | // GagaLabs (User Most Interesting) - [BROKEN 2014 - TOTALY]: | |
754 | //disable iconlink += '<a class="fpmLink" title="User Most Interesting (GagaLabs)" href="http://apps.gagalabs.com/flickr/interestingby?id=' + userid + '">' + iconGaGaLabsINT + '</a> '; | |
755 | ||
756 | // PB - TEST (find by username) PB USERNAME - need to CHANGE ICON to BASE 64 | |
757 | // LfVR (User) | |
758 | //disable iconlink += '<a class="fpmLink" title="User (Lfvr)" href=http://webdev.yuan.cc/lfvr/flickr.proxy.php?method=flickr.people.findByUsername&username=">' + username + '>' + iconLfVR + '</a>'; | |
759 | ||
760 | // Flickr (View/Change Relationship) : | |
761 | //disable iconlink += '<a style="text-decoration:none" title="View/Change Relationship" href="http://www.flickr.com/relationship.gne?id=' + userid + '">' + iconcont + '</a> '; // onclick="_ge(\'person_hover\').hover_add_contact(); return false;" | |
762 | ||
763 | ||
764 | // REMOVE BRACKET - 2018 | |
765 | iconlink += '</b>. '; | |
766 | ||
767 | return iconlink; | |
768 | } | |
769 | win.makeLinks=makeLinks; // make the function available to other scripts too :) | |
770 | ||
771 | // BEGIN fpm links to photostream and profile pages - WORKING for USER COLLECTIONS but NOT PROFILE ??? | |
772 | function addfpmtophotostreamandprofileheader() { | |
773 | dasec=document.getElementsByClassName("cover-photo-holder"); | |
774 | // dasec=document.getElementsByClassName("avatar"); | |
775 | if(dasec[0]) { | |
776 | pmsp=document.createElement('span'); | |
777 | pmsp.style.position='absolute'; | |
778 | pmsp.style.left='0px'; | |
779 | pmsp.style.top='-15px'; | |
780 | pmsp.style.fontWeight='normal'; | |
781 | pmsp.style.fontSize= '11px'; | |
782 | dah1=document.getElementsByTagName('h1')[0]; | |
783 | buddyhtml=document.getElementsByClassName('sn-avatar')[0].innerHTML; | |
784 | bdid=grabuserid(buddyhtml).split('_')[0]; | |
785 | pmsp.innerHTML=makeLinks(bdid); | |
786 | dah1.appendChild(pmsp); | |
787 | } | |
788 | } // END Add fpm links to header of photostream pages | |
789 | ||
790 | /* ******************************** */ | |
791 | ||
792 | ||
793 | if (document.location.href.match('/photos/')) { | |
794 | if (document.location.href.match('/sizes/')) { | |
795 | datds=document.getElementsByClassName('Owner') | |
796 | usid=grabuserid(datds[0].getElementsByTagName('a')[0].innerHTML); | |
797 | datds[0].innerHTML+=makeLinks (usid); | |
798 | return; | |
799 | ||
800 | } | |
801 | ||
802 | ||
803 | /// TEST PHOTO PAGE - OK (Need CSS) | |
804 | // TEST QUERY CSS SELECTOR - NO | |
805 | // document.querySelectorAll("span.a, span.c"); | |
806 | // datds=document.querySelectorAll(".fluid.html-photo-page-scrappy-view .attribution-view .avatar[data-person-nsid*="@N"]"); | |
807 | /* | |
808 | else if (document.location.href.match('/photos/')) { | |
809 | // datds=document.getElementById('faves-right').getElementsByTagName('li'); | |
810 | datds=document.getElementsByClassName('attribution-view') ; | |
811 | for (i=0;i<datds.length;i++){ | |
812 | usid=grabuserid(datds[i].innerHTML); | |
813 | datds[i].innerHTML+=makeLinks(usid); | |
814 | } | |
815 | return; | |
816 | } | |
817 | */ | |
818 | // OK - PHOTO + SET - WORKING | |
819 | ||
820 | else if (document.location.href.match('/photos/')) { | |
821 | dah3s=document.getElementsByClassName('avatar person medium'); | |
822 | if(dah3s.length){ | |
823 | usid=dah3s[0].getAttribute('data-person-nsid'); | |
824 | dah3s[0].innerHTML +=makeLinks(usid); | |
825 | } | |
826 | ||
827 | } | |
828 | ||
829 | // TEST ALBUM (Originaly WORKING FOR SETS) - NOT WORKING - STRange work in Console | |
830 | else if (document.location.href.match('/albums/')) { | |
831 | dah3s=document.getElementsByClassName('avatar person medium'); | |
832 | if(dah3s.length){ | |
833 | usid=dah3s[0].getAttribute('data-person-nsid'); | |
834 | dah3s[0].innerHTML +=makeLinks(usid); | |
835 | } | |
836 | ||
837 | } | |
838 | ||
839 | // people who favourited this photo page | |
840 | else if (location.href.match(/\/[0-9]+\/favorites\/$/)) { | |
841 | datds=document.getElementById('faves-right').getElementsByTagName('li'); | |
842 | for (i=0;i<datds.length;i++){ | |
843 | usid=grabuserid(datds[i].innerHTML); | |
844 | datds[i].innerHTML+=makeLinks(usid); | |
845 | } | |
846 | return; | |
847 | } | |
848 | ||
849 | // galleries pages - PB | |
850 | else if (location.href.match(/\/galleries\//)) { | |
851 | //curated image owners | |
852 | datds=document.getElementsByClassName('curator_chunk'); | |
853 | for (i=0;i<datds.length;i++) { | |
854 | usid=grabuserid(datds[i].parentNode.parentNode.getElementsByClassName('curator_icon')[0].innerHTML); | |
855 | //win.console.log(usid); | |
856 | datds[i].getElementsByTagName('p')[1].innerHTML=datds[i].getElementsByTagName('p')[1].innerHTML+ ' ' + makeLinks(usid) ; | |
857 | } | |
858 | //commenters | |
859 | cowners=getElementsByClassName('HeyBuddy'); | |
860 | ccontents=getElementsByClassName('Comment'); | |
861 | for(x=0;x<cowners.length;x++) { | |
862 | buddyid=grabuserid(cowners[x].innerHTML); | |
863 | ccontents[x].innerHTML=ccontents[x].innerHTML.replace('says:', makeLinks(buddyid) + 'says:'); | |
864 | } | |
865 | ||
866 | ||
867 | } | |
868 | // Add fpm links to header of photostream pages | |
869 | addfpmtophotostreamandprofileheader(); | |
870 | ||
871 | // widget is section for owner of photo - only on old style photo page | |
872 | original = getElementsByClassName('Widget'); | |
873 | if (original[0]) { | |
874 | originalID = grabuserid(original[0].innerHTML); | |
875 | if (originalID != 'undefined') { | |
876 | aspan=document.createElement('span'); | |
877 | aspan.innerHTML=' ' + makeLinks(originalID); | |
878 | original[0].appendChild(aspan); | |
879 | } | |
880 | } | |
881 | /* | |
882 | // owner of photo on new photo page layout | |
883 | original=document.getElementsByClassName("flickr-user"); | |
884 | if (original[0]) { | |
885 | originalID = original[0].getAttribute('nsid'); | |
886 | if (originalID != 'undefined') { | |
887 | aspan=document.createElement('span'); | |
888 | aspan.innerHTML=makeLinks(originalID); | |
889 | //original[0].appendChild(aspan); | |
890 | document.getElementById('photo-story-attribution').parentNode.insertBefore(aspan,document.getElementById('photo-story-attribution').nextSibling) | |
891 | } | |
892 | } | |
893 | */ | |
894 | /* | |
895 | // TEST PHOTO PAGE - NOT WORKING | |
896 | // .medium[data-person-nsid$="@N04"] | |
897 | original=document.getElementsByClassName('medium'); | |
898 | if (original[0]) { | |
899 | originalID = original[0].getAttribute('data-person-nsid'); | |
900 | if (originalID != 'undefined') { | |
901 | aspan=document.createElement('span'); | |
902 | aspan.innerHTML=makeLinks(originalID); | |
903 | //original[0].appendChild(aspan); | |
904 | ||
905 | } | |
906 | } | |
907 | */ | |
908 | //old style photo comments | |
909 | underphotonode = document.getElementById('DiscussPhoto'); | |
910 | if (underphotonode) { | |
911 | cowners=getElementsByClassName('comment-owner'); | |
912 | ccontents=getElementsByClassName('comment-content'); | |
913 | for(x=0;x<cowners.length;x++) { | |
914 | buddyid=grabuserid(cowners[x].innerHTML); | |
915 | ccontents[x].innerHTML=ccontents[x].innerHTML.replace('says:', makeLinks(buddyid) + 'says:'); | |
916 | } | |
917 | } | |
918 | ||
919 | //new style photo comments | |
920 | fpmlinks_newphotopage (); | |
921 | ||
922 | // OK - ACTIVITY - WORKING | |
923 | ||
924 | } else if (location.href.match(/\/activity/) || location.href.match(/recent\_activity\.gne/) || location.href.match(/photos\_comments\.gne/)) { | |
925 | ||
926 | // BEGIN deal with new /activity/ page | |
927 | // WORKING (location.href.match(/\/activity/) | |
928 | wholist=document.getElementsByClassName('act-who'); | |
929 | for(x=0;x<wholist.length;x++) { | |
930 | buddyid=grabuserid(wholist[x].innerHTML); | |
931 | if(wholist[x].parentNode.getElementsByClassName('act-content').length) | |
932 | wholist[x].parentNode.getElementsByClassName('act-content')[0].innerHTML=wholist[x].parentNode.getElementsByClassName('act-content')[0].innerHTML.replace('said:', makeLinks(buddyid) + ' ' + 'said:'); | |
933 | else | |
934 | wholist[x].parentNode.innerHTML=wholist[x].parentNode.innerHTML.replace('added ', makeLinks(buddyid) + ' ' + 'added '); | |
935 | } | |
936 | // END deal with new /activity page | |
937 | ||
938 | if(location.href.match(/photos\_comments\.gne/)) { | |
939 | datds=getElementsByClassName("Who"); | |
940 | for(j=0;j<datds.length;j++) { | |
941 | buddyid = grabuserid(datds[j].innerHTML); | |
942 | datds[j].innerHTML += ' ' + makeLinks(buddyid); | |
943 | } | |
944 | } | |
945 | } | |
946 | ||
947 | // OK - CONTACTS PAGES - WORKING | |
948 | else if (location.href.match(/\/contacts/)) { | |
949 | ||
950 | ciconlist=document.getElementsByClassName("contact-list-bicon"); | |
951 | cnamelist=document.getElementsByClassName("contact-list-name"); | |
952 | for(x=0;x<ciconlist.length;x++) { | |
953 | //console.log(x); | |
954 | usid=grabuserid(ciconlist[x].innerHTML); | |
955 | lspan=document.createElement('span'); | |
956 | lspan.style.display='inline'; | |
957 | lspan.innerHTML=' ' + makeLinks(usid); | |
958 | theeh=cnamelist[x+1].getElementsByTagName('a')[0]; | |
959 | theeh.parentNode.insertBefore(lspan, theeh.nextSibling); | |
960 | ||
961 | } | |
962 | // TEST CONTACTS 2 NOT WORK - - https://www.flickr.com/people/59474022@N04/contacts/ | |
963 | /* | |
964 | else if (location.href.match(/\/contacts/)) { | |
965 | ||
966 | ciconlist=document.getElementsByClassName("PeopleResults"); | |
967 | cnamelist=document.getElementsByClassName("Who>p>a"); | |
968 | for(x=0;x<ciconlist.length;x++) { | |
969 | //console.log(x); | |
970 | usid=grabuserid(ciconlist[x].innerHTML); | |
971 | lspan=document.createElement('span'); | |
972 | lspan.style.display='inline'; | |
973 | lspan.innerHTML=' ' + makeLinks(usid); | |
974 | theeh=cnamelist[x+1].getElementsByTagName('a')[0]; | |
975 | theeh.parentNode.insertBefore(lspan, theeh.nextSibling); | |
976 | ||
977 | } | |
978 | */ | |
979 | // TEST CONTACTS USERS PAGE | |
980 | // https://www.flickr.com/people/66926995@N03/contacts/ | |
981 | // END TEST | |
982 | ||
983 | } | |
984 | ||
985 | // FORUM / HELP | |
986 | else if (location.href.match(/flickr\.com\/help\/forum\//) || location.href.match(/flickr\.com\/groups\//)) { | |
987 | ||
988 | if(location.href.match("\/admin\/") && document.getElementById('MemberList')) { | |
989 | dah3s=document.getElementById('MemberList').getElementsByTagName('tr'); | |
990 | for(i=1;i<dah3s.length;i++) { | |
991 | usid=grabuserid(dah3s[i].getElementsByTagName('td')[0].innerHTML); | |
992 | dah3s[i].getElementsByTagName('td')[1].innerHTML=dah3s[i].getElementsByTagName('td')[1].innerHTML.replace('</a>','</a> '+makeLinks(usid)); | |
993 | } | |
994 | } | |
995 | // ADMIN PHOTO - 2021.02 - NOT WORK - https://www.flickr.com/groups/portrait-faces-master-view/admin/pending | |
996 | if(location.href.match("\/admin\/pending")) { | |
997 | dah3s=document.getElementsByClassName('gPendWho'); | |
998 | for(i=0;i<dah3s.length;i++) { | |
999 | usid=grabuserid(dah3s[i].getElementsByTagName('a')[0].innerHTML); | |
1000 | dah3s[i].innerHTML += '<br> ' + makeLinks(usid); | |
1001 | } | |
1002 | } | |
1003 | ||
1004 | // 2018 - TEST CONTACTS USER PAGE - NOT WOKING | |
1005 | // https://www.flickr.com/people/24312830@N05/contacts/ | |
1006 | /* | |
1007 | if(location.href.match("\/contacts\/")) { | |
1008 | dah3s=document.getElementsByClassName('Who'); | |
1009 | for(i=0;i<dah3s.length;i++) { | |
1010 | usid=grabuserid(dah3s[i].getElementsByTagName('a')[0].innerHTML); | |
1011 | dah3s[i].innerHTML += '<br> ' + makeLinks(usid); | |
1012 | } | |
1013 | } | |
1014 | ||
1015 | */ | |
1016 | ||
1017 | ||
1018 | // WORKING | |
1019 | // we must be in a forum/group | |
1020 | // add pm icon to first post (special case) | |
1021 | if (document.getElementById('DiscussTopic')) { | |
1022 | dagoodstuff = document.getElementById('DiscussTopic'); | |
1023 | firstpostid = grabuserid(dagoodstuff.getElementsByClassName("Who")[0].innerHTML); | |
1024 | //firstpostid = grabuserid(dagoodstuff.innerHTML); | |
1025 | if (firstpostid == 'undefined') | |
1026 | return; | |
1027 | //dagoodstuff.getElementsByTagName('table')[0].getElementsByTagName('td')[1].getElementsByTagName('h4')[0].innerHTML = dagoodstuff.getElementsByTagName('table')[0].getElementsByTagName('td')[1].getElementsByTagName('h4')[0].innerHTML.replace('says:', makeLinks(firstpostid) + 'says:'); | |
1028 | getElementsByClassName('Said')[0].getElementsByTagName('h4')[0].innerHTML = getElementsByClassName('Said')[0].getElementsByTagName('h4')[0].innerHTML.replace('says:', makeLinks(firstpostid) + 'says:'); | |
1029 | } | |
1030 | else | |
1031 | return; | |
1032 | // add pm icon to replies | |
1033 | var tables = document.getElementsByTagName('table'); | |
1034 | for (i=0, l=tables.length; i<l; i++) { | |
1035 | if (tables[i].className == 'TopicReply') { | |
1036 | var tds = tables[i].getElementsByTagName('td'); | |
1037 | for (var j=0, xl=tds.length; j<xl; j++) { | |
1038 | if (j%2 == 0) { | |
1039 | buddyid = grabuserid(tds[j].innerHTML); | |
1040 | //unsafeWindow.console.log(buddyid); | |
1041 | } else { | |
1042 | if (buddyid != 'undefined') { | |
1043 | tds[j].getElementsByTagName('h4')[0].innerHTML = tds[j].getElementsByTagName('h4')[0].innerHTML.replace('says:', makeLinks(buddyid) + 'says:'); | |
1044 | } | |
1045 | } | |
1046 | } | |
1047 | } | |
1048 | } | |
1049 | } | |
1050 | ||
1051 | else if (location.href.match(/flickr\.com\/people/)) { | |
1052 | addfpmtophotostreamandprofileheader() | |
1053 | /* | |
1054 | budtd=getElementsByClassName('Buddy'); | |
1055 | usid=grabuserid(budtd[0].innerHTML); | |
1056 | inftd=document.getElementsByTagName('h1')[0]; | |
1057 | inftd.innerHTML=inftd.innerHTML + " <span style='font-weight:normal;font-size:11px'>" + makeLinks(usid) + "</span>"; | |
1058 | */ | |
1059 | } | |
1060 | /* | |
1061 | else if (location.href.match("messages_sent_read")) { | |
1062 | dah3s=document.getElementsByTagName('h3'); | |
1063 | for (i=0;i<dah3s.length;i++) | |
1064 | if(dah3s[i].innerHTML.match('buddyicons')){ | |
1065 | usid=grabuserid(dah3s[i].innerHTML); | |
1066 | dah3s[i].innerHTML=dah3s[i].innerHTML+ " <span style='font-weight:normal;font-size:11px'>" + makeLinks(usid) + "</span>"; | |
1067 | } | |
1068 | } | |
1069 | else if (location.href.match("messages_read")) { | |
1070 | dah3s=document.getElementsByClassName('clearfix'); | |
1071 | if(dah3s[0].innerHTML.match('buddyicons')){ | |
1072 | usid=grabuserid(dah3s[0].innerHTML); | |
1073 | dah3s[0].innerHTML+= " <span style='font-weight:normal;font-size:11px'>" + makeLinks(usid) + "</span>"; | |
1074 | } | |
1075 | } | |
1076 | */ | |
1077 | ||
1078 | // MAIL - OK | |
1079 | else if (location.href.match(/\/mail\//)) { | |
1080 | dah3s=document.getElementsByClassName('flickr-user flickrmail-to'); | |
1081 | if(dah3s.length){ | |
1082 | usid=dah3s[0].getAttribute('nsid'); | |
1083 | dah3s[0].innerHTML += "<br/><span style='font-weight:normal;font-size:11px'>" + makeLinks(usid) + "</span>"; | |
1084 | } | |
1085 | } | |
1086 | else if (location.href.match(/\/search\//)) { | |
1087 | if(location.href.match(/\/groups\//) || location.href.match(/\/forum\//)) { | |
1088 | if(!location.href.match('&m=pool')) { | |
1089 | datds=document.getElementsByTagName('td'); | |
1090 | for (i=0;i<datds.length;i++) | |
1091 | if(datds[i].getAttribute('class')=='Who') { | |
1092 | usid=grabuserid(datds[i].innerHTML); | |
1093 | datds[i+1].getElementsByTagName('b')[0].innerHTML=datds[i+1].getElementsByTagName('b')[0].innerHTML.replace('says:', ' ' + makeLinks(usid) + 'says:'); | |
1094 | } | |
1095 | } | |
1096 | else { | |
1097 | datds=document.getElementsByClassName('PicFrom'); | |
1098 | for (i=0;i<datds.length;i++) { | |
1099 | usid=grabuserid(datds[i].innerHTML); | |
1100 | datds[i].getElementsByTagName('b')[0].innerHTML += ' ' +makeLinks(usid); | |
1101 | } | |
1102 | ||
1103 | } | |
1104 | } | |
1105 | else if (location.href.match(/\/search\/people\//)) { | |
1106 | datds=document.getElementsByTagName('td'); | |
1107 | for (i=0;i<datds.length;i++) | |
1108 | if(datds[i].getAttribute('class')=='Icon') { | |
1109 | usid=grabuserid(datds[i].innerHTML); | |
1110 | datds[i+1].getElementsByTagName('div')[0].innerHTML= datds[i+1].getElementsByTagName('div')[0].innerHTML + makeLinks(usid); | |
1111 | } | |
1112 | } | |
1113 | else { | |
1114 | datds=getElementsByClassName('ListBuddyIconThings'); // must be a photo search... | |
1115 | for (i=0;i<datds.length;i++) | |
1116 | { | |
1117 | usid=grabuserid(datds[i].innerHTML); | |
1118 | datds[i].parentNode.getElementsByTagName('h3')[0].getElementsByTagName('small')[0].innerHTML += ' ' + makeLinks(usid); | |
1119 | } | |
1120 | ||
1121 | ||
1122 | } | |
1123 | ||
1124 | } | |
1125 | ||
1126 | ||
1127 | //var FPMEndTime=new Date(); | |
1128 | //var FPMExecutionTime=FPMEndTime-FPMStartTime; | |
1129 | //document.body.appendChild(document.createTextNode('FlickrPM Execution Time = ' + FPMExecutionTime + 'ms')); | |
1130 | ||
1131 | // END Flickr PM Code | |
1132 | ||
1133 | })(); |