Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name FLickr Quick Links (by Andreas Schaefer) - TWEAK v.5 - 2017
- // @version 1.6
- // @date 2015-05-15
- // @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
- // @author Andreas Schaefer it.mensch@gmail.com
- // @include http*://*flickr.com/*
- // @exclude http*://services.addons.mozilla.org/*
- // @exclude http://www.flickr.com/html.gne
- // @exclude http://flickr.com/html.gne
- // @exclude http://www.flickr.com/photos/organize*
- // @exclude http://flickr.com/photos/organize*
- // @grant GM_getValue
- // @grant GM_setValue
- // ==/UserScript==
- // The customhtml holds the links, feel free to edit/expand to your liking
- if (window.top != window.self) //don't run on frames or iframes
- {
- return;
- }
- // TWEAK FOR MY STYLE :
- 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; \">" +
- // TWEAK FOR NO STYLE :
- //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; \">" +
- // MY ACCOUNT
- "<a href=https://www.flickr.com/account/>MyAccount</a> | " +
- // My PROFILE
- "<a href=https://www.flickr.com/people/bruno-decembre/>MyProfile</a> | " +
- // MAIL
- "<a href=https://www.flickr.com/mail>\u2709</a> | " +
- // FEEDS
- "<a href=https://www.flickr.com/?rb=1>FeedS</a> | " +
- // RA - MY RECENT ACTIVITY
- "<a href=/recent_activity.gne?days=1>RA</a> | " +
- // RA.CtPhot - MY CONTACTS - LAST POSTS
- "<a href=https://www.flickr.com/photos/friends>[RA.CTphotos]</a> | " +
- // CtCs - CONTACS
- "<a href=https://www.flickr.com/people/bruno-decembre/contacts/rev/one-way/>CtCs</a> | " +
- // FAVS INTERSTING
- "<a href=https://www.flickr.com/search/?w=faves&z=t&ss=2&ct=6&s=int>FavInt</a> | " +
- "<a href=https://www.flickr.com/photos/bruno-decembre/favorites/page620/>Fav620</a> | " +
- // AIDEfr / HelpUS - HELP FORUM US/FR
- "<a href=https://www.flickr.com/help/forum/fr-fr/>AIDEfr</a> | " +
- "<a href=https://www.flickr.com/help/forum/en-us/>HelpUS</a> | " +
- "<a href=https://www.flickr.com/help/forum/activity/?order=&days=30>LastDiscPost</a> | " +
- // MY POOL - PFO -
- "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/admin/pending>[PFOpend]</a> | " +
- "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/?thumb=1>PFO</a> | " +
- "<a href=https://www.flickr.com/groups_invite.gne?id=947672@N21&no_js=1>PFO-INVIT-old</a> | " +
- "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/admin/members/>PF-Mbers</a> | " +
- // "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/page144/?thumb=1>PFO.144</a> | " +
- // "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/page100/?thumb=1>PFO.100</a> | " +
- // "<a href=https://www.flickr.com/groups/portrait_faces_open_minded_/pool/page1380/>PFO.1380</a> | " +
- // MY POOL - CPF -
- "<a href=https://www.flickr.com/groups/the_cream_of_portraitfaces_/admin/pending>[CPFpend]</a> | " +
- "<a href=https://www.flickr.com/groups/the_cream_of_portraitfaces_/pool/?thumb=1>CPF</a> | " +
- // "<a href=/groups/the_cream_of_portraitfaces_/pool/page61/?thumb=1>CPF.61</a> | " +
- // "<a href=/groups/the_cream_of_portraitfaces_/pool/page55/?thumb=1>CPF.55</a> | " +
- "<a href=https://www.flickr.com/groups/the_cream_of_portraitfaces_/admin/members/>CPF-Mbers</a> | " +
- "<a href=http://www.flickr.com/groups_invite.gne?id=66063253@N00&no_js=1>CPF-INVIT-old</a> | " +
- "<a href=https://www.flickr.com/groups_invite.gne?id=66063253@N00>CPF-INVIT</a> | " +
- // "<a href=/groups/the_cream_of_portraitfaces_/pool/page100/>CPf.100</a> | " +
- // MY POOLS - PF -
- "<a href=https://www.flickr.com/groups/portrait_face/admin/pending>[PFpend]</a> | " +
- "<a href=https://www.flickr.com/groups/portrait_face/pool/?thumb=1>PF</a> | " +
- "<a href=https://www.flickr.com/groups/portrait_face/admin/members/>PF-Mbers</a> | " +
- // "<a href=https://www.flickr.com/groups/portrait_face/pool/page150/?thumb=1>Pf.150</a> | " +
- // "<a href=https://www.flickr.com/groups/portrait_face/pool/page300/?thumb=1>Pf.300</a> | " +
- //"<a href=https://www.flickr.com/groups/portrait_face/pool/page4000/>Pf.4000</a> | " +
- // MY POOL - TopS - TOP SECRET
- // WRONG for Numbers Of Favs In Pools: "<a href=https://www.flickr.com/groups/texas_chainsaw_mascara_/?thumb=1>TopS</a> | " +
- "<a href=https://www.flickr.com/groups/texas_chainsaw_mascara_/pool/?thumb=1>TopS</a> | " +
- "<a href=https://www.flickr.com/groups_invite.gne?id=397180@N20>TopS-INVIT</a> | " +
- // POOL REZERVED ZONE
- // "<a href=https://www.flickr.com/groups/reservedzone/pool/>RZ</a> | " +
- // POOL PRIVATE or PB DESTRICTED
- //"<a href=https://www.flickr.com/groups/743252@N23/pool/>DsZ</a> | " +
- // APPS
- // BROKEN 2014 - LURVELY - PB AUTH -
- // "<a href=http://www.lurvely.com/index.php?show=youlurve&lal=1>LuR</a> | " +
- // BROKEN 2014 - FLICKRFAVR - PB AUTH
- // "<a href=http://flickrfavr.com/?frob=72157623149881138-04b8e5a5a17b9800-364859>FFavr</a> | " +
- // BROKEN 2014 - FLICKFAVER - TOTALY
- // "<a href=http://www.flickfaver.com/dashboard>FFaver</a> | " +
- // BROKEN 2014
- // "<a href=http://contactswhohavefaved.appspot.com/>FavCct</a> | " +
- // BROKEN 2014 - DEEP DIVE - PB AUTH - Work in progress
- // "<a href=http://deepdive.mezo.com/flickr/easy>DDe</a> | " +
- // BROKEN 2014 - FFFFLCKR - PB AUTH
- // "<a href=http://fffflckr.com/>ffFav</a> | " +
- // BROKEN 2014 - FLICKRANDOM - TOTALY (END)
- // "<a href=http://www.krazydad.com/gustavog/FlickRandom.pl?userfavs=15064538@N00>FavRand</a> | " +
- // BROKEN 2014 - FavEXPLORER - TOTALY (END???)
- // "<a href=http://www.tafoni.net/flickr/favorites/index.php?of=decembre>FavEXPL</a> | " +
- // BROKEN 2014 - Not Yet Flickr Favorites - TOTALY (END???)
- // "<a href=http://paurian.com/cgi-bin/notYetFlickrFavorites.cgi?user=decembre&taglimit=0&sort=relevance&related=true&thumblimit=500>NotYFv</a> | " +
- // BROKEN 2014 - CONTACTCROSSING - TOTALY (END)
- //"<a href=http://krazydad.com/gustavog/ContactCrossing.pl/ContactCrossing.pl?user1=15064538@N00&next=31>CtCros</a> | " +
- "<a href=http://www.youtube.com/my_favorites>YrT</a> | " +
- // POOL - DEVs - F.Hack / Fcd
- "<a href=https://www.flickr.com/groups/flickrhacks/discuss/>F.Hack</a> | " +
- "<a href=http://code.flickr.com/>Fcd</a> | " +
- // "<a href=https://www.flickr.com/groups/flickrpipes/discuss/>F.Pipes</a> | " +
- // "<a href=https://www.flickr.com/groups/api/discuss/>FApi</a> | " +
- // "<a href=https://www.flickr.com/groups/flickrideas/discuss/>F.IDea</a> | " +
- // FAVORIS from USERS :
- "<a href=https://www.flickr.com/photos/plasticam/favorites/>fav-MfL</a> | " +
- "<a href=https://www.flickr.com/photos/21172551@N00/favorites/>fav-BrT</a> | " +
- "<a href=https://www.flickr.com/photos/56297792@N00/favorites/>fav-CeP</a> | " +
- "<a href=https://www.flickr.com/photos/yuriy_k/favorites/>fav-Yuk</a> | " +
- // HELP EDIT - Some HTML is OK
- "<a href=https://www.flickr.com/html.gne?tighten=0&type=reply>HTML is OK</a> | " +
- // ID
- "<a href=http://idgettr.com/>ID</a> | ";
- "</div>";
- var allspans = new Array();
- // DECEMBRE TWEAK - OK - AVR 2015
- allspans = document.getElementsByClassName('gn-wrap');
- if (allspans.length == 0) {
- allspans = document.getElementsByClassName('global-nav-content');
- }
- // TEST GLOBAL not working
- /*
- allspans = document.getElementsByClassName('global-nav-view');
- if (allspans.length == 0) {
- allspans = document.getElementsByClassName('global-nav-container');
- }
- */
- // DECEMBRE TWEAK for PHOTO STREAM
- /*
- if (allspans.length == 0) {
- allspans = document.getElementsByClassName('global-nav-container');
- }
- */
- // DECEMBRE TWEAK - OK - 2017 - SETS / FAVORITS /POOL PAGES
- if (allspans.length == 0) {
- allspans = document.getElementsByClassName('global-nav-view');
- }
- // DECEMBRE TWEAK - OK - 2017 - FAVORITS PAGES
- if (allspans.length == 0) {
- allspans = document.getElementsByClassName('fluid-subnav');
- }
- allspans[0].innerHTML += customhtml;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement