Hiroto, javascript fix of ASC.

Request: Copy page info movement to above the question.

I saw a post you had written little JavaScript for injection in a page of ASC via GreaseMonkey.  I use Firefox 47.0 as my web browser.

Hiroto (follow-up question)

I was wonder if you wanted to write JavaScript a little more.

On a multi-page publication, it's a big pain to have to scroll to the bottom, so you can switch to the next or last page.   I was hoping you might be able to copy this info over the question.  I rather it be copied then moved, but the approach is better than letting the news of movement were it is.

To be clear, this is the stuff I want to copied.

If the thread is a page, an indication should be placed there instead.  an only "page,"page 1 of 1"etc.

Thanks in advance,

R

PS. Maybe this could be done via css.  Move the relative place changed to another.

Hello

The easiest would be to locate the browser of paging to the upper right of the port view by CSS.

The following will move the first browser of paging to the upper right of the Harbor View screen. It will stay there and can be annoying in another sense, though.

@-moz-document
    domain(communities.apple.com),
    domain(discussions.apple.com),
    domain(discussionsjapan.apple.com),
    domain(discussionskorea.apple.com),
    domain(discussionschinese.apple.com)
{
    @media screen {
        .j-thread .jive-thread-messages .j-pagination:first-child {
            position: fixed !important;
            top: -30px !important;
            right: 0px !important;
        }
    }
}

In regards to the javascript solution, it would be possible, but not easy. Not enough time for that time to spare...

Good luck

H

Tags: Using Support Communities

Similar Questions

  • 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

  • FW Drop Shadow problem

    I created a website at FWCS3 and when I put a background behind it (in DWCS3), drop shadow effects that I do not work with all colors other than white.  Can someone give some advice?  If I use another color for the background shading looks terrible, like a grayish color please help.

    What you need to do is to save your images as a png with transparency files... Then the shadow will look at all the horizons of the color.

    This does not work in IE and below without a javascript fix.

    There are many articles and how the web and png alpha transparency on who is here

    http://www.komodomedia.com/blog/2007/11/CSS-PNG-image-fix-for-IE/m

  • Simple PLATFORM detect script?

    I hope there is a simple solution for that - I operational requirement before Monday.

    I built two versions of a simple site: one stupid version for cel phones/blackberrys, etc., a sensitive version for regular ol ' Mac and PC. The version of cel is the default page. One of the computers is in a subfolder.

    Rather than enter a complex script that will endeavour to take account of all types of pocket which could hit the site, it seems it should be easy to detect for Mac & PC with javascript simply and deliver them accordingly in the subfolder. Handhelds should ignore just javascript and stay where they are... right?

    I'm not a javascript person, though - so if anyone has a simple script that does this, I would be very grateful.

    Also, is my hypothesis on the handhelds simply ignoring javascript fix, or will they choke on it and does not make the page?

    Thank you very much!

    A few responses:

    http://www.hand-interactive.com/resources/detect-mobile-JavaScript.htm

    Includes a file to include downloadable javascrript. Then, just make a call to DetectMobileLonger() which returns a Boolean value. If it is false, redirect.

    Works fine now.

  • cannot enable javascript after trying all the fixes listed for version 25

    After auto upgrade of worm to worm 25 24, javascript stopped working in firefox and will not allow. Have tried every fix I could find in the forum more deleting java and reload, removing all plugins except java, cleaning registry of all references to firefox and reload it and many others. No work. My Internet Explorer and Chrome work very well on all sites and gmail where firefox will not. Suggestions more. Thanks in advance. I have Windows Ultimate on AMD dual core with 4 GB of memory. Worked well with firefox before version 24 update.

    To avoid confusion:

    JavaScript is embedded in Firefox, so if it is not working properly then there's something blocking JavaScript.

    This can be an extension or your security software.

    You can check the javascript.enabled pref on the topic: config page.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • Says I have javascript disabled, it is not how to fix it?

    After updating firefox is unable to get the links to work. The symbol S I normally click to give permission is no longer in my toolbar. Went to check updates to add ons and it tells me that my javascript is turned off. When I check under options, contained, it shows box enable javascript is checked. I can't find anything that tells me how to solve this problem.

    This is because the NoScript add-on has been uninstalled by Firefox 7.0.
    You just need to manually reinstall.

    There is a bug in Firefox 7.0 that is supposed to be fixed in 7.0.1:
    Each add-on which was an update on hold (NoScript has been updated just before the release of Firefox 7.0) 'disappear' from the list of add-ins.

    https://Bugzilla.Mozilla.org/show_bug.cgi?id=680802

  • JavaScript seems to be disabled in your browser... You must have javascript enabled in your browser to use the features of this site... How can I fix it

    JavaScript seems to be disabled in your browser... You must have javascript enabled in your browser to use the features of this site... How can I fix it

    Clear your NoScripts modules.

    Nancy O.

  • How can I fix a javascript error when opening from Dreamweaver?

    DW CS6 has recently started having 2 JavaScript errors when opening the application and at least 1 additional JavaScript error when you use the Insert Picture command.  Can anyone provide some tips about fixing this problem?

    DW-error2.JPG

    DW-error1.JPG

    DW-error3.JPG

    This will help-

    Dreamweaver FAQ index

    Look at the first number.

  • How to fix the Application JavaScript error?

    Hello

    I use two screens monitors and often drag a tab and drop it onto the other screen to get a new window. in 60 to 80%, I get an error in the JavaScript Application: [TypeError: can't access dead object] this error pops up sometimes when I start FF and restore my previous session with a few windows. If I use two windows, i.e. one of them is unusable, but the other works.
    I use Ubuntu 14.04 and 38 FF

    Best regards
    Daniel

    In the past, there was an addon drag-and - déposer that caused this error. Do you have something similar installed?
    What is recommended when an add it throws this error is to contact the developer:

    If there is no add ons, try a new profile to see if there is a corruption of minor:

  • I am not able to access any Web site that uses javascript. How can I fix it?

    I can't access any Web site that is running of javascript. How to change this behavior in FireFox?

    Removed the boxes to check to enable/disable JavaScript and load images automatically "Options > content.

    A few extensions you can watch:

  • Using Firefox under Ubuntu, I often get a Javascript error message that says error evalinSandbox: SyntaxError:syntax. How can I fix?

    It happens on most, but not all, pages I visit. After you close the error message, another pops up saying "error: syntax error." Close this window to display the initial error again and the process repeats five or six times. Finally, windows will stop popping up and I'll be able to visit the Web site, but whenever I go to a different Web page error messages again. I've updated Firefox and Ubuntu for the latest versions.

    Hello, this error message is typically caused by the social Fixer addon & can be resolved by updating to the latest version available at http://socialfixer.com/blog/category/releasenotes/

  • I get a #101 Javascript error in Firefox on my Windows 7 PC. It makes impossible to use Firefox! How can I fix?

    JavaScript error preveny = ts me using Firefox!

    I finally had to remove all the evidence of Firefox and import bookmarks etc to Chrome. Then do a new download of Firefox 15 and (so far) the problem is not re-appeared. I have no idea what was causing the error, but it came from the home page has been loaded.

    Thanks to those who took the time to help! One of the reasons why I used Firefox and its predecessors for 25 years!

  • When I run Firefox I get this error: [JavaScript Application] Exc in ev handl: TypeError: this.oRoot.enable is not a function. How can I fix?

    This problem started all of a sudden, and I need to close the error message for the Firefox browser may start.

    I have the latest version of JavaScript.

    Please upgrade to the latest version of Mozilla Firefox.

  • Firefox 4.0 Windows 7 a site looks good in Solution Explorer, but the menu and submenu appears wrong with Firefox. JavaScript is enabled. How to fix?

    I made a website and it seems fine in Internet Explorer with the Windows 7 operating system. When viewing with Firefox main menu and submenus look bad and the submenus are not usable because they appear on top of the main menu. How can I fix it?

    As a starting point, I recommend the more liberal DOCTYPE (that I listed above).

    position of cor - el shows a change at one of scripts on your site so that the number of pixels is followed by the letters "px" (Firefox requires measurement units, in this case, the pixels).

  • How can I fix this behavior JavaScript/Ajax 'funny '?

    Hi all!

    I have this kind of funny problem or, well, strange results...
    The problem is almost solved tho, but it's just this strange behavior that I can't solve.

    You can see what I mean here:
    http://Apex.Oracle.com/pls/Apex/f?p=9949:101:1370355978553401
    Username: visitor
    Password: visitor

    Connect first, and then change the URL to access the 24 page (or just click on 'Web platform', then from the submenu, click on 'meals and the models', and then in the custom menu on the left click on 'Show models'.

    If you are finished, click one of the links in the report.
    You will see that all of a sudden, the whole page seems to be shown within another region (region named "Menu2", under the normal menu region).
    It's like... A page in a page. Pageception (creation... Pageception... Get it?).

    Now, all this is happening WITHOUT refreshing. Yes, I want it to be dynamic. My question is:
    How can I change my code in such a way that it does NOT display the entire page 24 inside this region menu2? I want to display a popup, not a page in a page...

    My code to do so is my Page attributes. In the JavaScript tab, I have the following code for the popup, and inside, you will find the code for these values in the elements of the page as well:
    $( function(){
      $('#ModalForm').dialog(
       {
         modal: true,
         autoOpen: false,
         width: 500,
         height: 350,
         buttons:{ Calculate: function(){calculateTotal();},
                   Close: function(){closeForm();}         
       }
      });
    });
    
    function openForm(pFoodTemplateId, pMealTypeId)
    {
    var getone = new htmldb_Get('shiny',&APP_ID., null, 24); // initialize get 
    getone.add('P24_TEMPLATEID', pFoodTemplateId);
    getone.add('P24_MEALID', pMealTypeId);
    gReturn = getone.get();
    getone = null;
    
    $('#ModalForm').dialog('open');
    }
    
    function closeForm()
    { $('#ModalForm').dialog('close');}
    
    $(document).ready(function() 
        {$('a.temppop').click(function() {openForm();});
    });
    "Brilliant" is the name of the ID in my region 'menu2 '.

    In which case I'm not clear (which I guess, since I'm in a rush):
    I have 2 page elements that get the value of foodtemplateid and mealtypeid of the selected line. The URL of the link column in my report is:
    javascript: openForm(#FOODTEMPLATEID#, #MEALTYPEID#); 
    So, in a nutshell, item: P24_TEMPLATEID Gets the value of the foodtemplateid that corresponds to the selected line and article: P24_MEALID Gets the value of the mealtypeid that corresponds to the selected line.

    Thank you for your time. I really appreciate it.


    Apex version: 4.1.1.00.23

    Hello

    I would create the application on the application MODEL of source process

    HTP.PRN('OK');
    

    And change the JavaScript

    var getone = new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=DUMMY",&APP_PAGE_ID.); // initialize get
    

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

Maybe you are looking for

  • New double tactility of Libretto W100

    We just bought the new Libretto W100 with Panel double touch screen, but we do not think very well with the 'sensitivity' of the 'touch': sometimes we touch the screen and nothing happens, but if you touch slightly more strong that works like the 'do

  • iOS 9 rename the worksheet

    How can I rename a worksheet in numbers? No matter what I see my spreadsheet appear as "empty". How can I give it a real name?

  • How to print the jobes username printed by printer usingnetwork

    Please how to print the user name on paper printed for each print job printed paper

  • want laptop to original state

    I am trying to clean my laptop to its original do I need a drive from State to do or do it go online?

  • Can't reinstall windows vista

    I can start my computer but nothing happens, the screen remains black all the time until the computer turns off it self. When I try to clean reinstall my computer a diagnostic tool memory never end and then turns it self after a while. Can someone pl