// SZ 2025-11-30 — override SMF expandPages for "..." pagination function expandPages(spanEl, base_link, first_page, last_page, per_page) { try { var per = parseInt(per_page, 10) || 1; // Try to derive the real maximum page count by inspecting the pagination links. var maxPage = 1; var container = spanEl && spanEl.closest ? spanEl.closest(".pagelinks") : null; if (container) { var links = container.querySelectorAll("a.nav_page"); var maxStart = 0; links.forEach(function (a) { var href = a.getAttribute("href") || ""; // Match the last . segment, e.g. topic=15206.7650 var m = href.match(/\.([0-9]+)(?:$|[^0-9])/); if (m) { var n = parseInt(m[1], 10); if (!isNaN(n) && n > maxStart) maxStart = n; } }); if (maxStart > 0) maxPage = Math.floor(maxStart / per) + 1; } // Fallback to SMF-provided last_page if DOM inspection failed. if (!maxPage || maxPage < 1) { var last = parseInt(last_page, 10); maxPage = Math.floor(last / per) + 1; if (!maxPage || maxPage < 1) maxPage = 1; } var input = prompt("Go to page (1-" + maxPage + "):"); if (input === null) return; var page = parseInt(input, 10); if (!page || page < 1 || page > maxPage) return; var start = (page - 1) * per; if (start < 0) start = 0; var url = base_link; // base_link may be an HTML string contain an tag; try to extract href try { var tmp = document.createElement("div"); tmp.innerHTML = base_link; var a = tmp.querySelector("a"); if (a && a.getAttribute("href")) { url = a.getAttribute("href"); } } catch (err) { url = base_link; } // Replace common SMF patterns with the computed offset if (url.indexOf("%1$d") !== -1) { url = url.replace("%1$d", start); } else if (url.indexOf(";start=") !== -1) { url = url.replace(/;start=\d+/, ";start=" + start); } else if (/\.0(?!\d)/.test(url)) { url = url.replace(/\.0(?!\d)/, "." + start); } window.location.href = url; } catch (e) { // fail silently } }

RANDOM FACTS

Started by DJ Boredom, Jun 8, 2009 05:12 PM

Previous topic - Next topic

1 Guest

Elija2

Quote from: JetThehawk on Jun 10, 2009 04:08 PM
Weegeekill was a guy on the chatbox who said he was going to hack me, but i messed up his IP a lot

How did you mess up his IP? @.@

Dracoslythe

FACT:

for every post on this topic, I kill one kitten.
Signature



Dark Tails

Quote from: Dracosaurus on Jun 10, 2009 04:10 PM
FACT:

for every post on this topic, I kill one kitten.
Lolz

there goes one

Dracoslythe

Signature



Elija2

FACT:

Every time I touch myself, I save one kitten and donate 10 pesos to a starving Mexican kid.

Dracoslythe

Quote from: Elija2 on Jun 10, 2009 04:14 PM
FACT:

Every time I touch myself, I save one kitten and donate 10 pesos to a starving Mexican kid.
I very thoroughly enjoyed those pesos.
I bought a Taco Bell taco with the newest donation.
Signature



Elija2

Quote from: Dracosaurus on Jun 10, 2009 04:16 PM
I very thoroughly enjoyed those pesos.
I bought a Taco Bell taco with the newest donation.

You'd better have enjoyed that taco, because that's the last time I'm going to touch myself for an hour.

JetTheHawk

Quote from: Elija2 on Jun 10, 2009 04:10 PM
How did you mess up his IP? @.@
I will not tell you....


Quote from: Chris Hansen on Jun 10, 2009 04:12 PM
Lolz

there goes one
lolz Draco killed like  right now
Signature
NO SIGNATURE

Hakudamashi

Everytime I frown,a Mexican gets swine flu  :)
Signature
OR ELSE!
Compliments to our Goddess for this piece of superspecialawesome!
DO NOTCLICK!
m'kay

JetTheHawk

Quote from: windlessusher on Jun 10, 2009 04:28 PM
Everytime I frown,a Mexican gets swine flu  :)
That's not something to be happy about Wind.
Signature
NO SIGNATURE

Hakudamashi

Quote from: JetThehawk on Jun 10, 2009 04:32 PM
That's not something to be happy about Wind.
I'm trying not to frown
Signature
OR ELSE!
Compliments to our Goddess for this piece of superspecialawesome!
DO NOTCLICK!
m'kay

HereAndThere


Dark Tails

Quote from: Elija2 on Jun 10, 2009 04:14 PM
FACT:

Every time I touch myself, I save one kitten and donate 10 pesos to a starving Mexican kid.
and another
Quote from: Dracosaurus on Jun 10, 2009 04:16 PM
I very thoroughly enjoyed those pesos.
I bought a Taco Bell taco with the newest donation.
and another
Quote from: Elija2 on Jun 10, 2009 04:19 PM
You'd better have enjoyed that taco, because that's the last time I'm going to touch myself for an hour.
and another
Quote from: JetThehawk on Jun 10, 2009 04:21 PM
I will not tell you....

lolz Draco killed like  right now
yet another
Quote from: windlessusher on Jun 10, 2009 04:28 PM
Everytime I frown,a Mexican gets swine flu  :)
one more
Quote from: JetThehawk on Jun 10, 2009 04:32 PM
That's not something to be happy about Wind.
so many dead kittens
Quote from: windlessusher on Jun 10, 2009 04:43 PM
I'm trying not to frown
why frown, dead kittens is a happy occasion.
Quote from: jeexx on Jun 10, 2009 07:12 PM
:( your sad i tell ya sad  :'(
why so serrious?  (another one bites the dust)


:3 just died

HereAndThere

Quote from: Chris Hansen on Jun 10, 2009 08:41 PM
and anotherand anotherand anotheryet anotherone moreso many dead kittenswhy frown, dead kittens is a happy occasion.why so serrious?  (another one bites the dust)


:3 just died
FACT:chris hansen starts to look gay in my eyes now

Dark Tails

Quote from: jeexx on Jun 10, 2009 08:42 PM
FACT:chris hansen starts to look gay in my eyes now
http://www.youtube.com/watch?v=B_NV5OI5XUU