Advertisement
decembre

GM - FLickr Quick Links (by A. Schaefer) - TWEAK v.5 - 2017

Aug 16th, 2016
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name          FLickr Quick Links (by Andreas Schaefer) - TWEAK v.5 - 2017
  3. // @version       1.6
  4. // @date          2015-05-15
  5. // @description    - DEC 2016 - for styles HTTPS and MAIL ICON BROKEN 2014 + TWEAK PHOTO Page - Stream AVR 2015 - CLEAN03 - adds handy links to the top of the Flickr page
  6. // @author        Andreas Schaefer it.mensch@gmail.com
  7.  
  8.  
  9. // @include     http*://*flickr.com/*
  10.  
  11. // @exclude     http*://services.addons.mozilla.org/*
  12.  
  13. // @exclude         http://www.flickr.com/html.gne
  14. // @exclude         http://flickr.com/html.gne
  15. // @exclude         http://www.flickr.com/photos/organize*
  16. // @exclude         http://flickr.com/photos/organize*
  17. // @grant       GM_getValue
  18. // @grant       GM_setValue
  19. // ==/UserScript==
  20. // The customhtml holds the links, feel free to edit/expand to your liking
  21.  
  22. if (window.top != window.self)  //don't run on frames or iframes
  23. {
  24.     return;
  25. }
  26.  
  27. // TWEAK FOR MY STYLE :
  28. var customhtml = "<div style=\"position: absolute !important; top: -2px; left: 0px;  margin-left: 180px !important; px;height: 15px; color: #999999; z-index: 99; width: auto !important; font-size:10px; text-align: center; white-space: nowrap !important; outline: 1px solid gray;  \">" +
  29.  
  30. // TWEAK FOR NO STYLE :
  31. //var customhtml = "<div style=\"position: absolute !important; top: -3px; left: 0px; margin-left: -260px !important; color: #999999; z-index: 99; width: auto !important; font-size:10px; text-align: left; white-space: nowrap !important; outline: 1px solid gray; \">" +
  32.  
  33. // MY ACCOUNT
  34.   "<a href=https://www.flickr.com/account/>MyAccount</a> | " + 
  35.  
  36. // My PROFILE
  37.   "<a href=https://www.flickr.com/people/bruno-decembre/>MyProfile</a> | " +
  38.  
  39. // MAIL
  40.   "<a href=https://www.flickr.com/mail>\u2709</a> | " +
  41.  
  42. // FEEDS
  43.   "<a href=https://www.flickr.com/?rb=1>FeedS</a> | " +
  44.  
  45. // RA - MY RECENT ACTIVITY
  46.   "<a href=/recent_activity.gne?days=1>RA</a> | " +
  47.  
  48. // RA.CtPhot - MY CONTACTS - LAST POSTS
  49.   "<a href=https://www.flickr.com/photos/friends>[RA.CTphotos]</a> | " +
  50.  
  51. // CtCs - CONTACS  
  52.   "<a href=https://www.flickr.com/people/bruno-decembre/contacts/rev/one-way/>CtCs</a> | " +
  53.  
  54. // FAVS INTERSTING
  55.   "<a href=https://www.flickr.com/search/?w=faves&z=t&ss=2&ct=6&s=int>FavInt</a> | " +
  56.   "<a href=https://www.flickr.com/photos/bruno-decembre/favorites/page620/>Fav620</a> | " +
  57.  
  58. // AIDEfr / HelpUS - HELP FORUM US/FR
  59.   "<a href=https://www.flickr.com/help/forum/fr-fr/>AIDEfr</a> | " +
  60.   "<a href=https://www.flickr.com/help/forum/en-us/>HelpUS</a> | " +
  61.   "<a href=https://www.flickr.com/help/forum/activity/?order=&days=30>LastDiscPost</a> | " +
  62.  
  63. // MY POOL - PFO -
  64.   "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/admin/pending>[PFOpend]</a> | " +
  65.   "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/?thumb=1>PFO</a> | " +
  66.   "<a href=https://www.flickr.com/groups_invite.gne?id=947672@N21&no_js=1>PFO-INVIT-old</a> | " +
  67.   "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/admin/members/>PF-Mbers</a> | " +
  68. //  "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/page144/?thumb=1>PFO.144</a> | " +
  69. //  "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/page100/?thumb=1>PFO.100</a> | " +
  70. //  "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/page1380/>PFO.1380</a> | " +
  71.  
  72. // MY POOL - CPF -
  73.   "<a href=https://www.flickr.com/groups/the_cream_of_portraitfaces_/admin/pending>[CPFpend]</a> | " +
  74.   "<a href=https://www.flickr.com/groups/the_cream_of_portraitfaces_/pool/?thumb=1>CPF</a> | " +
  75. //  "<a href=/groups/the_cream_of_portraitfaces_/pool/page61/?thumb=1>CPF.61</a> | " +
  76. //  "<a href=/groups/the_cream_of_portraitfaces_/pool/page55/?thumb=1>CPF.55</a> | " +
  77.    "<a href=https://www.flickr.com/groups/the_cream_of_portraitfaces_/admin/members/>CPF-Mbers</a> | " +
  78.   "<a href=http://www.flickr.com/groups_invite.gne?id=66063253@N00&no_js=1>CPF-INVIT-old</a> | " +
  79.   "<a href=https://www.flickr.com/groups_invite.gne?id=66063253@N00>CPF-INVIT</a> | " +
  80. //  "<a href=/groups/the_cream_of_portraitfaces_/pool/page100/>CPf.100</a> | " +
  81.  
  82. // MY POOLS - PF -  
  83.   "<a href=https://www.flickr.com/groups/portrait_face/admin/pending>[PFpend]</a> | " +
  84.   "<a href=https://www.flickr.com/groups/portrait_face/pool/?thumb=1>PF</a> | " +
  85.   "<a href=https://www.flickr.com/groups/portrait_face/admin/members/>PF-Mbers</a> | " +
  86. //  "<a href=https://www.flickr.com/groups/portrait_face/pool/page150/?thumb=1>Pf.150</a> | " +
  87. //  "<a href=https://www.flickr.com/groups/portrait_face/pool/page300/?thumb=1>Pf.300</a> | " +
  88.   //"<a href=https://www.flickr.com/groups/portrait_face/pool/page4000/>Pf.4000</a> | " +
  89.  
  90. // MY POOL - TopS -  TOP SECRET
  91. // WRONG for Numbers Of Favs In Pools:  "<a href=https://www.flickr.com/groups/texas_chainsaw_mascara_/?thumb=1>TopS</a> | " +
  92.   "<a href=https://www.flickr.com/groups/texas_chainsaw_mascara_/pool/?thumb=1>TopS</a> | " +
  93.   "<a href=https://www.flickr.com/groups_invite.gne?id=397180@N20>TopS-INVIT</a> | " +
  94.    
  95. // POOL REZERVED ZONE  
  96. //  "<a href=https://www.flickr.com/groups/reservedzone/pool/>RZ</a> | " +
  97.  
  98. // POOL PRIVATE or PB DESTRICTED
  99.    //"<a href=https://www.flickr.com/groups/743252@N23/pool/>DsZ</a> | " +
  100.  
  101. // APPS
  102.      
  103. // BROKEN 2014 - LURVELY - PB AUTH -
  104.     // "<a href=http://www.lurvely.com/index.php?show=youlurve&lal=1>LuR</a> | " +
  105. // BROKEN 2014 - FLICKRFAVR - PB AUTH
  106.    // "<a href=http://flickrfavr.com/?frob=72157623149881138-04b8e5a5a17b9800-364859>FFavr</a> | " +
  107. // BROKEN 2014 - FLICKFAVER - TOTALY
  108.    // "<a href=http://www.flickfaver.com/dashboard>FFaver</a> | " +
  109. // BROKEN 2014
  110.    // "<a href=http://contactswhohavefaved.appspot.com/>FavCct</a> | " +
  111. // BROKEN 2014 - DEEP DIVE - PB AUTH - Work in progress
  112.    // "<a href=http://deepdive.mezo.com/flickr/easy>DDe</a> | " +
  113. // BROKEN 2014 - FFFFLCKR - PB AUTH
  114.    // "<a href=http://fffflckr.com/>ffFav</a> | " +
  115. // BROKEN 2014 - FLICKRANDOM - TOTALY (END)
  116.    // "<a href=http://www.krazydad.com/gustavog/FlickRandom.pl?userfavs=15064538@N00>FavRand</a> | " +
  117. // BROKEN 2014 - FavEXPLORER - TOTALY (END???)
  118.    // "<a href=http://www.tafoni.net/flickr/favorites/index.php?of=decembre>FavEXPL</a> | " +
  119.  
  120. // BROKEN 2014 -  Not Yet Flickr Favorites - TOTALY (END???)
  121.    // "<a href=http://paurian.com/cgi-bin/notYetFlickrFavorites.cgi?user=decembre&taglimit=0&sort=relevance&related=true&thumblimit=500>NotYFv</a> | " +
  122. // BROKEN 2014 - CONTACTCROSSING - TOTALY (END)
  123.    //"<a href=http://krazydad.com/gustavog/ContactCrossing.pl/ContactCrossing.pl?user1=15064538@N00&next=31>CtCros</a> | " +
  124.   "<a href=http://www.youtube.com/my_favorites>YrT</a> | " +
  125.  
  126.  
  127.    
  128.  // POOL - DEVs - F.Hack / Fcd
  129.   "<a href=https://www.flickr.com/groups/flickrhacks/discuss/>F.Hack</a> | " +
  130.    "<a href=http://code.flickr.com/>Fcd</a> | " +
  131.  // "<a href=https://www.flickr.com/groups/flickrpipes/discuss/>F.Pipes</a> | " +
  132.  
  133.  // "<a href=https://www.flickr.com/groups/api/discuss/>FApi</a> | " +
  134.  // "<a href=https://www.flickr.com/groups/flickrideas/discuss/>F.IDea</a> | " +
  135.  
  136. // FAVORIS from USERS :  
  137.   "<a href=https://www.flickr.com/photos/plasticam/favorites/>fav-MfL</a> | " +
  138.   "<a href=https://www.flickr.com/photos/21172551@N00/favorites/>fav-BrT</a> | " +
  139.   "<a href=https://www.flickr.com/photos/56297792@N00/favorites/>fav-CeP</a> | " +
  140.   "<a href=https://www.flickr.com/photos/yuriy_k/favorites/>fav-Yuk</a> | " +
  141.  
  142. // HELP EDIT - Some HTML is OK
  143.  "<a href=https://www.flickr.com/html.gne?tighten=0&type=reply>HTML is OK</a> | " +
  144.  
  145. // ID
  146.   "<a href=http://idgettr.com/>ID</a> | ";
  147.   "</div>";
  148.  
  149. var allspans = new Array();
  150. // DECEMBRE TWEAK - OK - AVR 2015
  151. allspans = document.getElementsByClassName('gn-wrap');
  152. if (allspans.length == 0) {
  153.     allspans = document.getElementsByClassName('global-nav-content');
  154. }
  155.  
  156. // TEST GLOBAL not working
  157. /*
  158. allspans = document.getElementsByClassName('global-nav-view');
  159. if (allspans.length == 0) {
  160.     allspans = document.getElementsByClassName('global-nav-container');
  161. }
  162. */
  163.  
  164.  // DECEMBRE TWEAK for PHOTO STREAM
  165. /*
  166. if (allspans.length == 0) {
  167.     allspans = document.getElementsByClassName('global-nav-container');
  168. }
  169.  
  170. */
  171.  
  172.  // DECEMBRE TWEAK - OK - 2017 - SETS / FAVORITS /POOL  PAGES
  173.  
  174. if (allspans.length == 0) {
  175.     allspans = document.getElementsByClassName('global-nav-view');
  176. }
  177.  // DECEMBRE TWEAK - OK - 2017 - FAVORITS  PAGES
  178.  if (allspans.length == 0) {
  179.     allspans = document.getElementsByClassName('fluid-subnav');
  180. }
  181.  
  182. allspans[0].innerHTML += customhtml;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement