Add pagination to the top of the screen messages page - new and improved
I have a phase beta Javascript that puts a third set of pagination and icons located at the top right of the screen CSA post web page information.
Here is the web page with my improvement Linc Davis is not nearly enough recognition :
If it was not easy for me to code, it must not be easy for you to install.
Installation:
(1) install GreaseMonkey in Firefox. GreaseMonkey does not work in other browsers like Chrome, but I have not tried.
How to install improved pagination
(2) add the javascript code of
http://pastebin.com/raw/9MBCkakf
R
PS. Hiroto has a solution too: Hiroto, javascript fix for CSA.
Hello
Here's my javascript which now includes the cloning of pagination in header. The pagination_in_header() of service as well as the relevant rules of style injected by CSSStyleSheet.insertRule () does the job. You can adjust the positioning of the cloned by CSSRule element defined in javascript.
FC.
Document Object Model (DOM) level 2 Style specification
https://www.w3.org/TR/DOM-level-2-style/
// ==UserScript== // @name ASC thread content view (d2) // @namespace bubo-bubo/gmscripts // @description ASC - disable jquery animation, initially show all replies, hide rollup solved answer in page 2 or later, clone pagination navigator in header. // @grant unsafeWindow // @run-at document-end // @include https://discussions.apple.com/* // @include https://discussionsjapan.apple.com/* // @include https://discussionskorea.apple.com/* // @include https://discussionschinese.apple.com/* // @include https://communities.apple.com/* // @version 0.2.1 // ==/UserScript== var _debug = 0; var $ = unsafeWindow.jQuery; var watchdog1, watchdog2, watchdog3; var watch_interval = 300; // [ms] var re_thread = new RegExp('^https://[^/]+/thread/'); var re_thread_or_message = new RegExp('^https://[^/]+/(thread|message)/'); // disable jquery animation (globally) $.fx.off = true; // supplementary styles for pagination nagivator cloned in header (.thread-container-wrapper) // pagination navigator document.styleSheets[0].insertRule( '.thread-container-wrapper .j-pagination.top {\ position: absolute !important;\ top: -10px !important;\ right: 0px !important;\ }', 0); // loading gear icon document.styleSheets[0].insertRule( '.thread-container-wrapper .j-loading-big {\ position: absolute;\ top: -6px;\ left: 0;\ margin-left: -60px;\ z-index: -1;\ }', 0); // modify thread content view behaviour (in post-load phase) window.onload = function() { // register event listeners window.addEventListener('unload', function(e) { if (_debug) console.log('unload is observed'); stop_watchdog(watchdog1); stop_watchdog(watchdog2); stop_watchdog(watchdog3); window.removeEventListener('_locationchange', _locationchange_handler, true); window.removeEventListener(e.type, arguments.callee, true); }, true); window.addEventListener('_locationchange', _locationchange_handler, true); function _locationchange_handler(e) { if (_debug) console.log('_locationchange is observed'); var href = window.location.href; if ( href.match(re_thread) ) { setTimeout(show_all_replies, 100); } if ( href.match(re_thread_or_message) ) { setTimeout(hide_solved_p2, 100); setTimeout(pagination_in_header, 100); } } // _locationchange watch dog var prev_href = ''; watchdog1 = setInterval( function() { // watch for location to change var curr_href = window.location.href; if (curr_href != prev_href) { if (_debug) console.log('_locationchange is issued'); window.dispatchEvent(new Event('_locationchange')); prev_href = curr_href; } }, watch_interval); }; function show_all_replies() { window.addEventListener('_helpfuldisplay', function(e) { if (_debug) console.log('_helpfuldisplay is observed'); $('.helpful-all-switch li.helpful').addClass('inactive').removeClass('active').hide(); $('.helpful-all-switch li.all-replies').addClass('active').removeClass('inactive').show(); $('#helpful-container').hide(); $('.all-replies-container').show(); window.removeEventListener(e.type, arguments.callee, true); }, true); watchdog2 = setInterval( function() { // watch for helpful container to appear if (_debug) console.log('watchdog (for helpful container) is active : ' + watchdog2); if ($('#helpful-container').css('display') != 'none') { if (_debug) console.log('_helpfuldisplay is issued'); window.dispatchEvent(new Event('_helpfuldisplay')); stop_watchdog(watchdog2); } }, watch_interval); setTimeout(stop_watchdog, 3000, watchdog2); } function hide_solved_p2() { var u = window.location.href; var re = /[?&]start=([0-9]+)/; var m = re.exec(u); var p = m ? m[1] : 0; if (_debug) console.log('current start post numebr = ' + p); var div = $('.j-answer-rollup.recommended-answers.span-full-width'); if (!div) { return; } p > 0 ? div.hide() : div.show(); } function pagination_in_header() { window.addEventListener('_pagereday', function(e) { if (_debug) console.log('_pagereday is observed'); var pg = $('.all-replies-container .j-pagination.top'); if (pg) { $('.thread-container-wrapper .j-pagination.top').remove(); pg.clone(true).appendTo($('.thread-container-wrapper')); } window.removeEventListener(e.type, arguments.callee, true); }, true); watchdog3 = setInterval( function() { // watch for reply container opacity to be 1 (which is .5 while loading) if (_debug) console.log('watchdog (for page ready) is active : ' + watchdog3); if ($('.all-replies-container').css('opacity') == 1) { if (_debug) console.log('_pagereday is issued'); window.dispatchEvent(new Event('_pagereday')); stop_watchdog(watchdog3); } }, watch_interval); // setTimeout(stop_watchdog, 5000, watchdog3); } function stop_watchdog(dog) { clearInterval(dog); if (_debug) console.log('watchdog is inactive : ' + dog); }
Tested with Greasemonkey 3.9 and Firefox 45.3.0esr OS X 10.6.8.
All the best,
Hiroto
Tags: Using Support Communities
Similar Questions
-
How to set a header on the screen what scrolling doesnot and rest set up?
I created a custom field for the title. When I add it to the screen, that there are no fixed to the upper part.
If I add this field to setTitle(), it gets fixed but there is a white spot on the horizontal line under the header on the top field?
How can I solve this problem?
tried u setbanner?
-
Mute icon in the center of the screen does not move and does not remove
Mute icon in centerl of the screen does not move and I can't remove it. It does not seam to meet what I did.
Try below before he came.
Restore point:
http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/
Do Safe Mode system restore, if it is impossible to do in Normal Mode.
Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.
Try a restore of the system once, to choose a Restore Point prior to your problem...
Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
http://www.windowsvistauserguide.com/system_restore.htm
Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.
See you soon.
Mick Murphy - Microsoft partner
-
Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizontally, which makes the pages of Mail of Hotmail impossible. I have connected since using the Explorer MSFT and it works very well. This problem occurs only on the page of Mail of Hotmail Live not on the home page or other.
Could you please let me know if there is a problem with Firefox, or if you have any advice on how to restore the appearance of Hotmail in Firefox?This has happened
Just once or twice
== I'm compiling an email in Hotmail Live
-
Pointer is frozen on the screen whenever I press and hold the CTRL key to select individual files, photos etc.
* original title - mouse pointer freezes *.
What happened since I bought my laptop with Windows 7. I tried my machine manufacturer and they don't have any idea. It's very annoying to have my pointer freeze and close the lid of the laptop to thaw it.
-
How to change the screen on my new monitor ratio?
Original title: report of the screen
How can I change my ratio of the screen for a new monitor, I bought?
Right click on an empty space on your desktop, then...
Properties-> (tab) settings->
Then move the cursor in the box "Screen Resolution."HTH,
JW -
How can I put gadgets on the screen as a clock and calendar?
Original title: survey
How can I put the gadgets on the screen as a clock and calendar
See if it helps:
Windows Sidebar and gadgets (overview)
http://Windows.Microsoft.com/is-is/Windows-Vista/Windows-Sidebar-and-gadgets-overview -
Download previous versions of Premiere Pro? The most recent one doesn't work on my computer. The screen keeps flashing black and white.
Hello
You can see the following link to find out how to download a previous version of creative cloud apps.
-
How we split the screen for different horizontal and vertical divisions
Hello
How we split the screen for different horizontal and vertical divisions. I can't use panelSplitter because I need fixed screen and not the division which is movable/sliding. I tried inlineframe, but which fails because you cannot use forms, other trees components... :(
so I would like to know how to do division without panelSplitter.
Thanks in advance,
JyothiHi Jyothi,
If you set the panelSplitter attribute disabled to true, the delimiter becomes permanent/mobile no.
Kind regards
Amélie Chan -
Original title: Please help me
When I try to import an mp3 file for the background music for my videos I get the following message: C:\Documents and Music\Karaoke.mp3 Documents\My owner could not be imported. The selected file is not valid or is corrupted. but before a few years, I used this then all files was import but now this errors can help u answer me please
When I try to import an mp3 file for the background music for my videos I get the following message: C:\Documents and Music\Karaoke.mp3 Documents\My owner could not be imported. The selected file is not valid or is corrupted. but before a few years, I used this then all files was import but now this errors can help u answer me please
=====================================
MP3 files can be problematic in Movie Maker...
Best bet would be to convert the files to the. WMA
format before you import into Movie Maker.There are many converters available on the net... the
the following link is an example:(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Format Factory (freeware)
http://www.videohelp.com/tools/Format_Factory
(the 'direct link' is faster)
(the file you want to download is: > FFSetup295.zip<>
(FWIW... installation..., you can uncheck
('all' boxes on the last screen)
(Windows XP / Vista / 7)First... after the download and installation of Format
Factory... you can open the program and
left click on the toolbar, the "Option" button and
"Select an output folder to" / apply / OK.
(this is where you find your files after they)
are converted)Drag and drop your music files on the main screen...
Select "while"WMA"/ OK...
Click on... Beginning... in the toolbar...
That should do it...
-
I have a mac pro 3.1. How can I transfer the system to a new and bigger drive?
I have a mac pro 3.1. How can I transfer the system to a new and bigger drive? The old drive is much too small.
I'm not familiar with your model computer, but there are several ways to do so. If the computer can accommodate multiple disks, you can install the new drive next to the former. If she does not accept another disk, you can in these external adapters for about $30, which allow you to attach a bare drive to a computer with USB. Then, you clone the internal drive to the new. Cloning is a special form of the copy. It copies all files including startup system files so that your new drive is essentially identical to the first.
Double clone - http://www.bombich.com/software/ccc.html
SuperDuper - http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html (shareware)
IBackup - http://www.grapefruit.ch/iBackup/index.html (free)
The restore function of disk utility included in directions of OS X. alarm - http://discussions.apple.com/message/8799711#8799711 (a former post but can still work).
Clone the old drive to the new, then install a new one.
-
Original title: outlook can duplicate the same messages from yesterday, and I can't delete them.
I use outlook express for my e-mail yesterday same emails keep coming, I tried to remove them, but can't everytime I open outlook I get the same
The other post:I opened outlook express the same messages from yesterday, continue to repeat every time error 0x800CCC0F had no new messages and I can't delete these messagesHi glendamcmillan,
You did it all change hardware or software on your computer before this problem?
You can follow this link & check if the problem persists:
Hope the helps of information.
-
Cannot access the server message coming up and cannot convert files
Cannot access the server message coming up and can't convert the files. Works on my desktop, but not at home.
ER
Is it ExportPDF?
-
Why the error message is created, and the statement may not run properly?
Why the error message is created, and the statement may not run properly?
SQL> select sql_handle, plan_name, creator from dba_sql_plan_baselines where sql_text='select*from hr.jobs where min_salary>10000'; select sql_handle,plan_name,creator from dba_sql_plan_baselines where sql_text='select*from hr.jobs where min_salary>10000' * ERROR at line 1: ORA-00932: inconsistent datatypes: expected - got CLOB
It is true that it is the problem of syntax. Change the increased as follows, the increased can run successfully:
SQL> select sql_handle,plan_name,creator from dba_sql_plan_baselines where sql_text like 'select*from hr.jobs where min_salary>10000';
Edited by: jetq may 3, 2010 19:26
-
The small CC icon at the top of the screen is grey and if I click on it, open a blank window, before, I saw everything add on my computer with CC, update etc.
You use mac or windows?
use cleaning tool please uninstall desktop cloud application creative uses the Adobe Creative Cloud cleaning tool to solve installation problemshttps://helpx.adobe.com/creative-cloud/help/uninstall-remove-app.html
and download apps download Adobe Creative Cloud again via - | Adobe Creative Cloud free trial
Maybe you are looking for
-
Typing in the bar URL causes Firefox hang
Firefox started to hang whenever I type in the URL bar. Firefox starts normally, but this problem will invariably occur shortly after it has finished loading. It seems that I am able to prevent hanging if I resize the window of Firefox. However, the
-
Qosmio G30-128: movie HD DVD hangs when the menu is displayed
Hello Planet Earth (HD DVD) to order from amazon and was hopeful that she would be executed on my new laptop. Shame on me!The Toshiba player works well until the menu when it crashes.After some research on googled around and especially looking at the
-
CR1000 Campbell communicate to LabView 8.6
Dear OR engineer. I want to read the data from a Campbell CR1000 datalogger, and I found this topic (link at the bottom) is useful and perhaps the solution I want. But I can't read Spanish. Can someone help me in English? Thanks and regards, http:
-
When I try to send an e-mail using Windows, I get the error message shows: account: POP. Server: SMTP; Protocol: SMTP; Port: 25; Safe: No; Socket error: 11101; Error number: 0X800CCCOD.
-
How can I convert a .mp4 file to a .wav file?
What is the difference between a .mp4 and .wav file? How can I convert a .mp4 file to a .wav file?